コード例 #1
0
ファイル: EmailViewRenderer.cs プロジェクト: mcaradec/postal
 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());
 }
コード例 #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()));
        }