Beispiel #1
0
 ControllerContext CreateControllerContext()
 {
     var httpContext = new EmailHttpContext(url);
     var routeData = new RouteData();
     routeData.Values["controller"] = EmailViewDirectoryName;
     var requestContext = new RequestContext(httpContext, routeData);
     return new ControllerContext(requestContext, new StubController());
 }
Beispiel #2
0
        ControllerContext CreateControllerContext()
        {
            var httpContext = new EmailHttpContext(getUrl());
            var routeData   = GetRouteDataFromHttpContext() ?? new RouteData();

            routeData.Values["controller"] = EmailViewDirectoryName;
            var requestContext = new RequestContext(httpContext, routeData);

            return(new ControllerContext(requestContext, new StubController()));
        }