public void instance_is_not_null()
        {
            var instance = _defaultHttpClientFactory.Create();

            Console.WriteLine("test1");
            Assert.IsNotNull(instance);
        }
Ejemplo n.º 2
0
 public HttpClient Build()
 {
     return(_defaultHttpClientFactory.Create(_httpClientName, _policyPipelineFactory, _messageHandlerPipelineFactory, _httpClientConfigurator));
 }
 public MarvelApiService(IDefaultHttpClientFactory defaultHttpClientFactory)
 {
     _defaultHttpClientFactory = defaultHttpClientFactory;
     _marvelClientLazy         = new Lazy <IMarvelApiClient>(() =>
                                                             new MarvelApiClient(_defaultHttpClientFactory.Create()));
 }