Beispiel #1
0
        public HttpRestClient Create(Uri serverUrl, string agentId, JsonSerializer jsonSerializer)
        {
            IHttpClientProvider mockProvider         = new MockHttpClientProvider();
            HttpRestClient      mockedHttpRestClient = new HttpRestClient(serverUrl, agentId, jsonSerializer, Logger, mockProvider);

            return(mockedHttpRestClient);
        }
            public HttpRestClient Create(Uri serverUrl, string agentId, JsonSerializer jsonSerializer)
            {
                Provider = new MockHttpClientProvider(isNew_, statusCode_, retryAfter_, pollingUrls_);
                var client = new HttpRestClient(serverUrl, agentId, jsonSerializer, logger_, Provider);

                return(client);
            }