/// <summary> /// Setup a new route on this stub HTTP server using a fluent API. You can setup as many routes as you need. /// </summary> public HttpMethodBuilder SetupRoute(string endpoint) { var route = new StubRoute { Endpoint = endpoint }; return(new HttpMethodBuilder(this, route)); }
private void AddRoute(StubRoute route) { _routes[route.Endpoint] = route; }
public StatusCodeAfterDelayBuilder(StubHttpServer stubServer, StubRoute route) { _stubServer = stubServer; _route = route; }
public ResponseContentBuilder(StubHttpServer stubServer, StubRoute route) { _stubServer = stubServer; _route = route; }
public HttpMethodBuilder(StubHttpServer stubServer, StubRoute route) { _stubServer = stubServer; _route = route; }