Ejemplo n.º 1
0
 public ValidNameAttribute()
 {
     _onlyOneEntityValidator = new OnlyOneAttribute {
         ErrorMessage = "cannot contain more than one {0}"
     };
     _cannotBeNotApplicable = new CannotBeNotApplicableAttribute {
         ErrorMessage = "cannot be Not Applicable"
     };
     _cannotContainNumbers = new CannotContainNumbersAttribute {
         ErrorMessage = "cannot contain numbers"
     };
 }
 public ValidNameAttribute()
 {
     _onlyOneEntityValidator = new OnlyOneAttribute { ErrorMessage = "cannot contain more than one {0}" };
     _cannotBeNotApplicable = new CannotBeNotApplicableAttribute { ErrorMessage = "cannot be Not Applicable" };
     _cannotContainNumbers = new CannotContainNumbersAttribute { ErrorMessage = "cannot contain numbers" };
 }