public void AddBrokenRuleTest()
        {
            PrivateObject param0 = new PrivateObject((ValueObjectBase) CreateValueObjectBase());
            ValueObjectBase_Accessor target = new ValueObjectBase_Accessor(param0); // TODO: Initialize to an appropriate value
            BusinessRule businessRule = new BusinessRule("Prop1","Test1"); // TODO: Initialize to an appropriate value

            target.AddBrokenRule(businessRule);

            Assert.IsNotNull(target._businessRules);
            Assert.AreEqual(1, target._businessRules.Count);
            Assert.AreEqual("Prop1", target._businessRules[0].Property);
            Assert.AreEqual("Test1", target._businessRules[0].Rule);
        }
Exemple #2
0
 protected void AddBrokenRule(BusinessRule businessRule) => _brokenRules.Add(businessRule);
 protected void AddBrokenRule(BusinessRule businessRule)
 {
     _businessRules.Add(businessRule);
 }