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 })); }
public static Validator <T> SetUpLength <T>(this Validator <T> validator, int equal, NullValueLength nullValueLength) { return(validator.SetUp(new LengthValidator(equal) { NullValueLength = nullValueLength })); }