Ejemplo n.º 1
0
 public static ICollection<RuleResult> AddInfo(this ICollection<RuleResult> results, Rule rule, string message)
 {
     var result = new RuleResult(rule, RuleResultType.Info, message);
     results.Add(result);
     return results;
 }
Ejemplo n.º 2
0
 public SaveException(RuleResult error)
     : this(error.Message)
 {
     FirstError = error;
     if (Errors == null) { Errors = new[] { error }; }
 }