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:
shannon@ShandemVaio
2012-08-07 02:33:08 +06:00
parent fbf94bbf01
commit b68bcba85e
18 changed files with 371 additions and 113 deletions

View File

@@ -22,9 +22,9 @@ namespace Umbraco.Web.Routing
/// represents a request for one specified Umbraco document to be rendered
/// by one specified template, using one particular culture.
/// </summary>
public class DocumentRequest
internal class DocumentRequest
{
public DocumentRequest(Uri uri, RoutingContext routingContext)
public DocumentRequest(Uri uri, RoutingContext routingContext)
{
this.Uri = uri;
RoutingContext = routingContext;
@@ -159,7 +159,7 @@ namespace Umbraco.Web.Routing
LogHelper.Debug<DocumentRequest>("{0}Uri=\"{1}\"", () => tracePrefix, () => this.Uri);
// try to find a domain matching the current request
var domainAndUri = Domains.DomainMatch(Domain.GetDomains(), RoutingContext.UmbracoContext.UmbracoUrl, false);
var domainAndUri = DomainHelper.DomainMatch(Domain.GetDomains(), RoutingContext.UmbracoContext.UmbracoUrl, false);
// handle domain
if (domainAndUri != null)