Example #1
0
        /// <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));
        }
Example #2
0
 private void AddRoute(StubRoute route)
 {
     _routes[route.Endpoint] = route;
 }
Example #3
0
 public StatusCodeAfterDelayBuilder(StubHttpServer stubServer, StubRoute route)
 {
     _stubServer = stubServer;
     _route      = route;
 }
Example #4
0
 public ResponseContentBuilder(StubHttpServer stubServer, StubRoute route)
 {
     _stubServer = stubServer;
     _route      = route;
 }
Example #5
0
 public HttpMethodBuilder(StubHttpServer stubServer, StubRoute route)
 {
     _stubServer = stubServer;
     _route      = route;
 }