private void AddValidationRulesToValidatable() { var isBiggerThanZero = new IsBiggerThanZero <float> { ErrorMessage = UiText.DOG_NEED_A_GOOD_PRICE }; var haveAName = new HaveAName <string> { ErrorMessage = UiText.DOG_NEED_A_NAME }; _name.AddValidationRule(haveAName); _price.AddValidationRule(isBiggerThanZero); }
public HaveANameTests() { _rule = new HaveAName <string>(); }