Project DescriptionGives 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.
Example
var httpContext = MoqBuilder
.WithUrl("http://www.mrkwatkins.co.uk/")
.WithUrlReferrer("http://www.bing.com/")
.Object;
Links