Ejemplo n.º 1
0
 public static Task <IEnumerable <ValidationResult> > GetValidationResultsAsync(this IEnumerable <IRule> businessRules)
 {
     return(IRuleExtensions.GetValidationResultsAsync(businessRules, null));
 }
Ejemplo n.º 2
0
 /// <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));
 }
Ejemplo n.º 3
0
 public static IEnumerable <ValidationResult> GetValidationResults(this IRule businessRules)
 {
     return(IRuleExtensions.GetValidationResults(new [] { businessRules }, null));
 }
Ejemplo n.º 4
0
 public static IEnumerable <ValidationResult> GetValidationResults(this IEnumerable <IRule> businessRules)
 {
     return(IRuleExtensions.GetValidationResults(businessRules, string.Empty));
 }