This video explains how to use Setup parameters in the Returns of a mocked function using Moq. Moq (pronounced “Mock-you” or just “Mock”) is the only mocking library for .NET developed from scratch to take full advantage of .NET 3.5 (i.e. Linq expression trees) and C# 3.0 features (i.e. lambda expressions) that make it the most productive, type-safe and refactoring-friendly mocking library available.
[youtube 1OCeGyaL2vI]
Video Producer: http://thethoughtfulcoder.com/