Updated UmbracoModule to support the TransferRequest just like umbraMVCo does using query strings. Added more
unit tests for UmbracoModule, refactored the Umbraco.Web.Routing.Domains to not have static methods and created an interface for it so that we can unit test it. Changed DocumentRequest stuff to internal. Finally got unit test working for the module
This commit is contained in:
@@ -60,6 +60,9 @@ namespace Umbraco.Tests.TestHelpers
|
||||
request.Stub(x => x.ApplicationPath).Return("/");
|
||||
request.Stub(x => x.Cookies).Return(new HttpCookieCollection());
|
||||
request.Stub(x => x.ServerVariables).Return(new NameValueCollection());
|
||||
var queryStrings = HttpUtility.ParseQueryString(fullUrl.Query);
|
||||
request.Stub(x => x.QueryString).Return(queryStrings);
|
||||
request.Stub(x => x.Form).Return(new NameValueCollection());
|
||||
|
||||
//Cache
|
||||
var cache = MockRepository.GenerateMock<HttpCachePolicyBase>();
|
||||
|
||||
Reference in New Issue
Block a user