コード例 #1
0
        public void SetUp()
        {
            theHttpContext = MockRepository.GenerateMock<HttpContextBase>();
            theRequestContext = new RequestContext(theHttpContext, new RouteData());

            theArguments = new AspNetServiceArguments(theRequestContext);
        }
コード例 #2
0
        public void SetUp()
        {
            theHttpContext = MockRepository.GenerateMock<HttpContextBase>();
            theRequestContext = new RequestContext(theHttpContext, new RouteData());

            theHttpRequest = MockRepository.GenerateMock<HttpRequestBase>();
            theHttpContext.Stub(x => x.Request).Return(theHttpRequest);

            theHttpResponse = MockRepository.GenerateMock<HttpResponseBase>();
            theHttpContext.Stub(x => x.Response).Return(theHttpResponse);

            theArguments = new AspNetServiceArguments(theRequestContext);
        }
コード例 #3
0
 public IHttpHandler GetHttpHandler(RequestContext requestContext)
 {
     var arguments = new AspNetServiceArguments(requestContext);
     return new FubuAsyncHttpHandler(_invoker, arguments, requestContext.RouteData.Values);
 }
コード例 #4
0
 public IHttpHandler GetHttpHandler(RequestContext requestContext)
 {
     var arguments = new AspNetServiceArguments(requestContext);
     return _handlerSource.Build(_invoker, arguments, requestContext.RouteData.Values);
 }