예제 #1
0
 public static ITry <Region, INonEmptyEnumerable <Error> > Create(string value)
 {
     return(ValidationExtensions.ValidateString(value, minLength: 0, maxLength: 50, regex: ".*[^\\s].*").Map(v => new Region(v)));
 }
 public static ITry <AdditionalAddressDetail, INonEmptyEnumerable <Error> > Create(string value)
 {
     return(ValidationExtensions.ValidateString(value, minLength: 1, maxLength: 255, regex: ".*[^\\s].*").Map(v => new AdditionalAddressDetail(v)));
 }
예제 #3
0
 public static ITry <Login, INonEmptyEnumerable <Error> > Create(string value)
 {
     return(ValidationExtensions.ValidateString(value, minLength: 1, maxLength: 15, regex: "^[0-9A-Za-z]{15}$").Map(v => new Login(v)));
 }