public ValidationResult IsValid2(T subject) { var leftResult = leftValidator.IsValid2(subject); var rightResult = rightValidator.IsValid2(subject); return(new AndValidationResult(leftResult, rightResult)); }
public ValidationResult IsValid2(T subject) { var leftResult = leftValidator.IsValid2(subject); if (leftResult.Result) { return(new OrValidationResult(leftResult)); } var rightResult = rightValidator.IsValid2(subject); return(new OrValidationResult(leftResult, rightResult)); }