public void SetUp() { theRules = new AccessorRules(); a1 = accessor(x => x.Prop1); a2 = accessor(x => x.Prop2); a3 = accessor(x => x.Prop3); theRules.Add(a1, new RequiredFieldRule()); theRules.Add(a3, new EmailFieldRule()); theRules.Add(a3, new GreaterThanZeroRule()); theSource = new AccessorRulesFieldSource(theRules); }
public void SetUp() { theRules = new AccessorRules(); a1 = accessor(x => x.Prop1); a2 = accessor(x => x.Prop2); a3 = accessor(x => x.Prop3); theRules.Add(a1, new RequiredFieldRule()); theRules.Add(a3, new EmailFieldRule()); theRules.Add(a3, new GreaterThanZeroRule()); theSource = new AccessorRulesFieldSource(theRules); }