From 55a09bc9d6e36f41f13c2dfce5d2c53d26a1c26e Mon Sep 17 00:00:00 2001 From: Guillaume Faas <59444272+Tr00d@users.noreply.github.com> Date: Mon, 20 Nov 2023 15:24:28 +0100 Subject: [PATCH] fix: explicit using for system.net.http to avoid conflicts with older frameworks (#553) --- Vonage.Common.Test/Client/VonageHttpClientTest.cs | 1 + Vonage.Common.Test/Client/VonageRequestBuilderTest.cs | 3 ++- Vonage.Common.Test/ExpectedRequest.cs | 3 ++- Vonage.Common.Test/TestHelpers/CustomHttpMessageHandler.cs | 1 + Vonage.Common.Test/TestHelpers/FakeHttpMessageHandler.cs | 1 + 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Vonage.Common.Test/Client/VonageHttpClientTest.cs b/Vonage.Common.Test/Client/VonageHttpClientTest.cs index 96d47fa7e..b053a2a26 100644 --- a/Vonage.Common.Test/Client/VonageHttpClientTest.cs +++ b/Vonage.Common.Test/Client/VonageHttpClientTest.cs @@ -1,4 +1,5 @@ using System.Net; +using System.Net.Http; using System.Net.Http.Headers; using AutoFixture; using FsCheck; diff --git a/Vonage.Common.Test/Client/VonageRequestBuilderTest.cs b/Vonage.Common.Test/Client/VonageRequestBuilderTest.cs index 819fff18a..5b2dcce0b 100644 --- a/Vonage.Common.Test/Client/VonageRequestBuilderTest.cs +++ b/Vonage.Common.Test/Client/VonageRequestBuilderTest.cs @@ -1,4 +1,5 @@ -using AutoFixture; +using System.Net.Http; +using AutoFixture; using FluentAssertions; using Vonage.Common.Client; diff --git a/Vonage.Common.Test/ExpectedRequest.cs b/Vonage.Common.Test/ExpectedRequest.cs index bfc86f578..f897a59d9 100644 --- a/Vonage.Common.Test/ExpectedRequest.cs +++ b/Vonage.Common.Test/ExpectedRequest.cs @@ -1,4 +1,5 @@ -using Vonage.Common.Monads; +using System.Net.Http; +using Vonage.Common.Monads; namespace Vonage.Common.Test { diff --git a/Vonage.Common.Test/TestHelpers/CustomHttpMessageHandler.cs b/Vonage.Common.Test/TestHelpers/CustomHttpMessageHandler.cs index 4f0c940d7..1f8243a4b 100644 --- a/Vonage.Common.Test/TestHelpers/CustomHttpMessageHandler.cs +++ b/Vonage.Common.Test/TestHelpers/CustomHttpMessageHandler.cs @@ -1,5 +1,6 @@ using System.Collections.ObjectModel; using System.Net; +using System.Net.Http; using System.Net.Http.Headers; using System.Text; using AutoFixture; diff --git a/Vonage.Common.Test/TestHelpers/FakeHttpMessageHandler.cs b/Vonage.Common.Test/TestHelpers/FakeHttpMessageHandler.cs index 914fdf15a..464afe469 100644 --- a/Vonage.Common.Test/TestHelpers/FakeHttpMessageHandler.cs +++ b/Vonage.Common.Test/TestHelpers/FakeHttpMessageHandler.cs @@ -1,4 +1,5 @@ using System.Net; +using System.Net.Http; using System.Net.Http.Headers; using System.Text; using FluentAssertions;