public void ProcessRequest(HttpContext context) { var wrappedContext = new HttpContextWrapper(context); var handler = new NancyHandler(); handler.ProcessRequest(wrappedContext); }
public void ProcessRequest(HttpContext context) { var engine = new NancyEngine(application, new RouteResolver(), application); var wrappedContext = new HttpContextWrapper(context); var handler = new NancyHandler(engine); handler.ProcessRequest(wrappedContext); }
public void ProcessRequest(HttpContext context) { var engine = new NancyEngine( CreateModuleLocator(), new RouteResolver()); var wrappedContext = new HttpContextWrapper(context); var handler = new NancyHandler(engine); handler.ProcessRequest(wrappedContext); }
public HancyHandlerFixture() { this.context = A.Fake<HttpContextBase>(); this.request = A.Fake<HttpRequestBase>(); this.response = A.Fake<HttpResponseBase>(); this.engine = A.Fake<INancyEngine>(); handler = new NancyHandler(engine); A.CallTo(() => this.context.Request).Returns(this.request); A.CallTo(() => this.context.Response).Returns(this.response); A.CallTo(() => this.response.OutputStream).Returns(new MemoryStream()); }
public void ProcessRequest(HttpContext context) { var wrappedContext = new HttpContextWrapper(context); var handler = new NancyHandler(_Engine); handler.ProcessRequest(wrappedContext); }