Exemple #1
0
 public void Fail(IRule rule, object instance, BrokenRuleReason reason)
 {
     _callbacks.ForEach(c => c(rule, instance, reason));
 }
Exemple #2
0
 /// <summary>
 /// Add a reason for the <see cref="IRule"/> being broken
 /// </summary>
 /// <param name="reason"><see cref="BrokenRuleReason">Reason</see></param>
 public void AddReason(BrokenRuleReason reason)
 {
     _reasons.Add(reason);
 }