public void SetUp() { theHttpContext = MockRepository.GenerateMock <HttpContextBase>(); theRequestContext = new RequestContext(theHttpContext, new RouteData()); theArguments = new AspNetServiceArguments(theRequestContext); }
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); }
public IHttpHandler GetHttpHandler(RequestContext requestContext) { var arguments = new AspNetServiceArguments(requestContext); return(new FubuAsyncHttpHandler(_invoker, arguments, requestContext.RouteData.Values)); }
public IHttpHandler GetHttpHandler(RequestContext requestContext) { var arguments = new AspNetServiceArguments(requestContext); return(_handlerSource.Build(_invoker, arguments, requestContext.RouteData.Values)); }