public void NewPropertyRule_WithInvalidRuleName_ThrowsArgumentException() { var abstractRuleCollection = new CustomerRuleCollection(); var stringRuleCollection = new StringRuleCollection(); abstractRuleCollection.NewPropertyRule(() => stringRuleCollection.StringEmptyPropertyRule).WithProperty(c => c.FirstName); }
public StringRuleAttributeDefinitionView(AttributeDefinition AttributeDefinition) : base(AttributeDefinition) { RuleCollection = new StringRuleCollection(); }
public void NewRule_WithInvalidRuleName_ThrowsArgumentException() { var abstractRuleCollection = new CustomerRuleCollection (); var stringRuleCollection = new StringRuleCollection (); abstractRuleCollection.NewRule ( () => stringRuleCollection.StringEmptyRule ).When ( c => c.FirstName == null ); }