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()); }
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())); }