public void CreateNewRule_ShouldNotCreateDuplicates()
{
this.mockRuleFactory.Setup(m => m.CreateNewRule(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string[]>(), It.IsAny<string>(), It.IsAny<decimal?>(), It.IsAny<bool>()))
.Returns(new MatchingRule(this.mockBucketRepo) { And = true, BucketCode = TestDataConstants.CarMtcBucketCode, Description = "Test Description" });
var newRule = this.subject.CreateNewRule(" ", " ", new string[] { }, null, null, true);
Assert.AreEqual(1, this.subject.MatchingRules.Count());
}