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