Project Description

Gives a fluent interface to help with building complex mock objects with Moq, such as mocks of HttpContextBase for help in unit testing ASP.NET MVC. The interface lets you specify the basic properties (e.g. request URL for an HttpRequestBase) and then creates the appropriate Moq setups for the property (Url) and any associate properties. (e.g. RawUrl, QueryString, etc.)

The project is still in its infancy. Alpha versions with gradually increasing functionality will be released until there is enough to warrant a full version one release. See the roadmap for more details of what is to come.


var httpContext = MoqBuilder


Last edited Mar 20, 2010 at 3:27 PM by MrKWatkins, version 6