Dependency Injection extensions

This commit is contained in:
Alexandru Macocian
2021-07-10 10:59:27 +03:00
parent 5aaa0d318a
commit 7a764a5929
40 changed files with 1410 additions and 8 deletions
@@ -16,14 +16,14 @@ namespace SystemExtensionsTests.Http
{
private const string resourceUrl = "resource";
private readonly Uri TestAddressUrl = new Uri("https://helloworld.xyz");
private readonly MockHttpMessageHandler handler = new MockHttpMessageHandler();
private static readonly Uri TestAddressUrl = new("https://helloworld.xyz");
private readonly MockHttpMessageHandler handler = new();
private IHttpClient<object> httpClient;
[TestInitialize]
public void TestInitialize()
{
this.httpClient = new HttpClient<object>(handler, false)
this.httpClient = new HttpClient<object>(this.handler, false)
{
BaseAddress = TestAddressUrl
};