public void AreSavedTo <T1, T2, T3, T4>(Expression <Func <T1> > memberAccessExpression1, Expression <Func <T2> > memberAccessExpression2, Expression <Func <T3> > memberAccessExpression3, Expression <Func <T4> > memberAccessExpression4)
        {
            var assignTolocalVariable = ExpressionConverter.ConvertMemberAccessFuncsToAssignmentActionBlock(memberAccessExpression1, memberAccessExpression2, memberAccessExpression3, memberAccessExpression4);

            _mockToArrange.Setup(_moqExpressionCastToOriginalType).Callback(assignTolocalVariable);
        }
        public void AreSavedTo <T1, T2, T3, T4, T5, T6, T7, T8, T9>(Expression <Func <T1> > memberAccessExpression1, Expression <Func <T2> > memberAccessExpression2, Expression <Func <T3> > memberAccessExpression3, Expression <Func <T4> > memberAccessExpression4, Expression <Func <T5> > memberAccessExpression5, Expression <Func <T6> > memberAccessExpression6, Expression <Func <T7> > memberAccessExpression7, Expression <Func <T8> > memberAccessExpression8, Expression <Func <T9> > memberAccessExpression9)
        {
            var assignTolocalVariable = ExpressionConverter.ConvertMemberAccessFuncsToAssignmentActionBlock(memberAccessExpression1, memberAccessExpression2, memberAccessExpression3, memberAccessExpression4, memberAccessExpression5, memberAccessExpression6, memberAccessExpression7, memberAccessExpression8, memberAccessExpression9);

            _mockToArrange.Setup(_moqExpressionCastToOriginalType).Callback(assignTolocalVariable);
        }
Example #3
0
        public void AreSavedTo <TArg>(Expression <Func <TArg> > memberAccessExpression)
        {
            var assignTolocalVariable = ExpressionConverter.ConvertMemberAccessFuncToAssignmentAction(memberAccessExpression);

            _mockToArrange.Setup(_moqExpressionCastToOriginalType).Callback(assignTolocalVariable);
        }