예제 #1
0
        private void InitializeInterceptorBeingBuilt(LambdaExpression expression)
        {
            var callRule = new ExpressionCallRule(expression);

            Fake.AddRule(callRule);
            this.RuleBeingBuilt = callRule;
        }
예제 #2
0
        private void InitializeRuleBeingBuilt(LambdaExpression expression)
        {
            var callRule = this.expressionRuleFactory.Invoke(expression);

            Fake.AddRule(callRule);
            this.RuleBeingBuilt = callRule;
        }