public void UseGlobalHttpClientCache_False_NoFactory2() { var clientConfig = new MyClientConfig(); clientConfig.HttpClientFactory = null; clientConfig.SetWebProxy(new MyWebProxy()); Assert.False(UseGlobalHttpClientCache(clientConfig)); }
public void NoFactory_LocalCache() { var clientConfig = new MyClientConfig(); clientConfig.CacheHttpClient = true; clientConfig.HttpClientCacheSize = DefaultHttpCacheSize; clientConfig.SetWebProxy(new MyWebProxy()); // force local cache RunTest(clientConfig, 1, true, false, DefaultHttpCacheSize, null); }