public void AreSavedTo <TArg>(Expression <Func <TArg> > memberAccessExpression) { var saveToAssignmentAction = ExpressionConverter.ConvertMemberAccessFuncToAssignmentAction(memberAccessExpression); if (_valueToReturn != null) { _mockToArrange.Setup(_moqExpressionCastToOriginalType).Returns(_valueToReturn).Callback(saveToAssignmentAction); } else { _mockToArrange.Setup(_moqExpressionCastToOriginalType).Callback(saveToAssignmentAction); } }
public void ItIsSavedTo(Expression <Func <TResult> > memberAccessExpression) { var saveToAssignmentAction = ExpressionConverter.ConvertMemberAccessFuncToAssignmentAction(memberAccessExpression); _mockToArrange.SetupSet(_propertyToArrange).Callback(saveToAssignmentAction); }
public void AreSavedTo <TArg>(Expression <Func <TArg> > memberAccessExpression) { var assignTolocalVariable = ExpressionConverter.ConvertMemberAccessFuncToAssignmentAction(memberAccessExpression); _mockToArrange.Setup(_moqExpressionCastToOriginalType).Callback(assignTolocalVariable); }