This project is read-only.
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.

Example

var httpContext = MoqBuilder
   .WithUrl("http://www.mrkwatkins.co.uk/")
   .WithUrlReferrer("http://www.bing.com/")
   .Object;

Links

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