예제 #1
0
 protected override void CopyInternal(Rule r)
 {
     base.CopyInternal(r);
     ValidationStrategy = ((PredefinedValidationRule)r).ValidationStrategy.Copy();
 }
예제 #2
0
        internal bool IsRuleSuppressed(Rule rule)
        {
            var s = rule.IsRuleSuppressed(_rule);

            return(s);
        }
예제 #3
0
 public static Rule WithException <TException>(this Rule rule, string message,
                                               BrokenRuleSeverity severity, string owner)
     where TException : Exception
 {
     return(WithException <Rule, TException>(rule, message, severity, owner));
 }
예제 #4
0
 public RuleEvaluationContext(Rule rule)
 {
     _rule   = rule;
     _prev   = Current;
     Current = this;
 }