moq Mocking Behavior

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9

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.


Got any moq Question?