Beispiel #1
0
 public static Validator <T> SetUpLength <T>(this Validator <T> validator, int minimum, int maximum, IntervalValidatorType lengthValidatorType, NullValueLength nullValueLength)
 {
     return(validator.SetUp(new LengthValidator(minimum, maximum, lengthValidatorType)
     {
         NullValueLength = nullValueLength
     }));
 }
Beispiel #2
0
 public static Validator <T> SetUpLength <T>(this Validator <T> validator, int equal, NullValueLength nullValueLength)
 {
     return(validator.SetUp(new LengthValidator(equal)
     {
         NullValueLength = nullValueLength
     }));
 }