예제 #1
0
 protected ValidationResult ValidationSucces()
 {
     CurrentResult = new ValidationResult(true);
     return(CurrentResult);
 }
예제 #2
0
 protected ValidationResult ValidationFailed(string message)
 {
     CurrentResult = new ValidationResult(false, message);
     return(CurrentResult);
 }
예제 #3
0
 protected ValidationResult CannotBeNull()
 {
     CurrentResult = new ValidationResult(false, "Value cannot be null or empty");
     return(CurrentResult);
 }