public static StringValidator IsOneOf(this StringValidator validator, string[] possibles) { validator.Possibles = possibles; return(validator); }
public static StringValidator StartsWith(this StringValidator validator, char start) { validator.Begining = start; return(validator); }
public static StringValidator Matches(this StringValidator validator, Regex pattern) { validator.RegexPattern = pattern; return(validator); }
public static StringValidator LengthIsExactly(this StringValidator validator, int length) { validator.ExactLength = length; return(validator); }