예제 #1
0
        public ForClassElseEndIf <T, ENDIF> MustPassRule(IRule <T> rule)
        {
            Expression <Func <T, T> > expression = t => t;

            _rulesEngine.RegisterRule <T, T>(rule, expression, expression);
            _lastRule = rule;
            return(this);
        }
예제 #2
0
 public SetupClassElseEndIf <T, R, ENDIF> MustPassRule(IRule <R> rule)
 {
     _rulesEngine.RegisterRule(rule, _expression, _expression);
     _lastRule = rule;
     return(this);
 }