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

            return(s);
        }
Exemplo n.º 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));
 }
Exemplo n.º 4
0
 public RuleEvaluationContext(Rule rule)
 {
     _rule   = rule;
     _prev   = Current;
     Current = this;
 }