public static ArgumentValidator <T> Create(ArgumentValidations <T> validations, Func <T, bool> predicate, string description) { Guard.IsNotNull(validations, "validations"); Guard.IsNotNull(predicate, "predicate"); Guard.IsNotNullOrEmpty(description, "description"); return(new PredicateArgumentValidator(validations) { Validation = predicate, DescriptionField = description }); }
protected ArgumentValidator(ArgumentValidations <T> validations) { this.Validations = validations; }
public PredicateArgumentValidator(ArgumentValidations <T> validations) : base(validations) { }
public NotValidations(ArgumentValidations <T> parentValidations) { this.ParentValidations = parentValidations; }