public static Task <IEnumerable <ValidationResult> > GetValidationResultsAsync(this IEnumerable <IRule> businessRules)
 {
     return(IRuleExtensions.GetValidationResultsAsync(businessRules, null));
 }
 /// <summary>
 /// Asynchronously invokes the rule
 /// </summary>
 /// <returns>
 /// List of validation results if the rule fails execution
 /// </returns>
 /// <param name="businessRules">An enumerable list of rule to execute</param>
 public static Task <IEnumerable <ValidationResult> > GetValidationResultsAsync(this IRule businessRule)
 {
     return(IRuleExtensions.GetValidationResultsAsync(businessRule.ToArray(), null));
 }
Beispiel #3
0
 public static IEnumerable <ValidationResult> GetValidationResults(this IRule businessRules)
 {
     return(IRuleExtensions.GetValidationResults(new [] { businessRules }, null));
 }
Beispiel #4
0
 public static IEnumerable <ValidationResult> GetValidationResults(this IEnumerable <IRule> businessRules)
 {
     return(IRuleExtensions.GetValidationResults(businessRules, string.Empty));
 }