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); }
public SetupClassElseEndIf <T, R, ENDIF> MustPassRule(IRule <R> rule) { _rulesEngine.RegisterRule(rule, _expression, _expression); _lastRule = rule; return(this); }