Beispiel #1
0
 public static ITry <InvoiceNumber, INonEmptyEnumerable <Error> > Create(string value)
 {
     return(ValidationExtensions.ValidateString(value, minLength: 1, maxLength: 50, regex: ".*[^\\s].*").Map(v => new InvoiceNumber(v)));
 }
Beispiel #2
0
 public static ITry <AdditionalAddressDetail, INonEmptyEnumerable <Error> > Create(string value)
 {
     return(ValidationExtensions.ValidateString(value, minLength: 1, maxLength: 255, regex: ".*[^\\s].*").Map(v => new AdditionalAddressDetail(v)));
 }
Beispiel #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)));
 }
 public static ITry <Description, INonEmptyEnumerable <Error> > Create(string value)
 {
     return(ValidationExtensions.ValidateString(value, minLength: 1, maxLength: 512, regex: ".*[^\\s].*").Map(v => new Description(v)));
 }