コード例 #1
0
        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
            });
        }
コード例 #2
0
 protected ArgumentValidator(ArgumentValidations <T> validations)
 {
     this.Validations = validations;
 }
コード例 #3
0
 public PredicateArgumentValidator(ArgumentValidations <T> validations)
     : base(validations)
 {
 }
コード例 #4
0
 public NotValidations(ArgumentValidations <T> parentValidations)
 {
     this.ParentValidations = parentValidations;
 }