Пример #1
0
        private MockHttpClientFactory GetHttpClientFactory(HttpStatusCode responseStatusCode = HttpStatusCode.OK)
        {
            var httpClientFactory = new MockHttpClientFactory(responseStatusCode);

            httpClientFactory.SetResponse(new HttpResponseMessage(responseStatusCode));

            return(httpClientFactory);
        }