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