Using Moq to mock ASP.NET MVC HttpContextBase

Posted by Gunnar Peipman on July 16, 2011

Here's my little example about how to use Moq to mock HttpContextBase and it's members to make controller tests pass. You can use this code when you are not allowed to use open-source or use-on-your-own-risk pieces of software that provide you this kind on initialization using built-in features.

... [read more]

Rating

4/5

Reviews

There are currently no comments or reviews.

Submit a review:

Login required.