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