Generate Return Values Using Lambdas in Moq

added by BlackWasp
12/22/2011 10:56:56 AM

0 Kicks, 53 Views

Mock objects and stubs created using the Moq framework are generally used to inject dependencies with expectations that define fixed results. For more complex scenarios, lambda expressions can be used to generate results based on provided arguments.