Esempio n. 1
0
        private Transport Setup(
            TestableHttpConnection connection,
            Uri proxyAddress = null,
            bool?disableAutomaticProxyDetection = null,
            bool httpCompression         = false,
            bool transferEncodingChunked = false
            )
        {
            var connectionPool = new SingleNodeConnectionPool(Server.Uri);
            var config         = new TransportConfiguration(connectionPool, connection)
                                 .TransferEncodingChunked(transferEncodingChunked)
                                 .EnableHttpCompression(httpCompression);

            config = disableAutomaticProxyDetection.HasValue
                                ? config.DisableAutomaticProxyDetection(disableAutomaticProxyDetection.Value)
                     //make sure we the requests in debugging proxy
                                : TransportTestServer.RerouteToProxyIfNeeded(config);

            return(new Transport(config));
        }
 public ControllerIntegrationTests(TransportTestServer instance) : base(instance)
 {
 }
Esempio n. 3
0
 public TransferEncodingChunkedTests(TransportTestServer instance) : base(instance)
 {
 }
Esempio n. 4
0
 public EndpointIntegrationTests(TransportTestServer <DummyStartup> instance) : base(instance)
 {
 }