moqMocking Behavior


Syntax

  • mock.Setup(expression).Returns(value) //Whenever called the method in the expression will return value

Parameters

ParameterDetails
expressionLambda expression that specifies the method invocation.