diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 00000000..3b54328d --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,33 @@ + + + + Deinok,Alexander Rose,graphql-dotnet + A GraphQL Client for .NET Standard + true + true + latest + en-US + $(NoWarn);NU5105 + $(NoWarn);1591 + annotations + logo.64x64.png + MIT + https://github.com/graphql-dotnet/graphql-client + true + GraphQL + git + true + true + + + true + embedded + enable + true + true + True + 4 + true + + + diff --git a/src/src.props b/Directory.Build.targets similarity index 66% rename from src/src.props rename to Directory.Build.targets index 37933c88..af739e1d 100644 --- a/src/src.props +++ b/Directory.Build.targets @@ -1,20 +1,12 @@ - - - - true - 8.0 + + README.md + + true - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - + false false false @@ -33,4 +25,19 @@ $(GitVersion_Sha) + + $(NoWarn);1591 + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + diff --git a/GraphQL.Client.sln b/GraphQL.Client.sln index 2de94cfb..89782ecc 100644 --- a/GraphQL.Client.sln +++ b/GraphQL.Client.sln @@ -4,26 +4,21 @@ Microsoft Visual Studio Solution File, Format Version 12.00 VisualStudioVersion = 17.1.32228.430 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{47C98B55-08F1-4428-863E-2C5C876DEEFE}" - ProjectSection(SolutionItems) = preProject - src\.editorconfig = src\.editorconfig - src\src.props = src\src.props - EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{63F75859-4698-4EDE-8B70-4ACBB8BC425A}" ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig .gitignore = .gitignore + Directory.Build.props = Directory.Build.props + Directory.Build.targets = Directory.Build.targets dotnet-tools.json = dotnet-tools.json LICENSE.txt = LICENSE.txt examples\GraphQL.Client.Example\Program.cs = examples\GraphQL.Client.Example\Program.cs README.md = README.md - root.props = root.props + tests\tests.props = tests\tests.props EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{0B0EDB0F-FF67-4B78-A8DB-B5C23E1FEE8C}" - ProjectSection(SolutionItems) = preProject - tests\tests.props = tests\tests.props - EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "assets", "assets", "{6326E0E2-3F48-4BAF-80D3-47AED5EB647C}" ProjectSection(SolutionItems) = preProject diff --git a/GraphQL.Client.sln.DotSettings b/GraphQL.Client.sln.DotSettings deleted file mode 100644 index 9e5ec22f..00000000 --- a/GraphQL.Client.sln.DotSettings +++ /dev/null @@ -1,2 +0,0 @@ - - QL \ No newline at end of file diff --git a/examples/GraphQL.Client.Example/Program.cs b/examples/GraphQL.Client.Example/Program.cs index 0bfd14b1..a67114a1 100644 --- a/examples/GraphQL.Client.Example/Program.cs +++ b/examples/GraphQL.Client.Example/Program.cs @@ -7,7 +7,7 @@ namespace GraphQL.Client.Example { - public class Program + public static class Program { public static async Task Main() { diff --git a/root.props b/root.props deleted file mode 100644 index 17bd287e..00000000 --- a/root.props +++ /dev/null @@ -1,38 +0,0 @@ - - - - Deinok,Alexander Rose,graphql-dotnet - A GraphQL Client for .NET Standard - True - True - 8.0 - en-US - $(NoWarn);CS1591;NU5048;NU5105;NU5125 - annotations - icon.png - LICENSE.txt - https://github.com/graphql-dotnet/graphql-client - true - GraphQL - git - https://github.com/graphql-dotnet/graphql-client - True - 4 - - - - - PreserveNewest - true - LICENSE.txt - false - - - PreserveNewest - true - icon.png - false - - - - diff --git a/src/GraphQL.Client.Abstractions.Websocket/GraphQL.Client.Abstractions.Websocket.csproj b/src/GraphQL.Client.Abstractions.Websocket/GraphQL.Client.Abstractions.Websocket.csproj index 048dffbf..5960fbf8 100644 --- a/src/GraphQL.Client.Abstractions.Websocket/GraphQL.Client.Abstractions.Websocket.csproj +++ b/src/GraphQL.Client.Abstractions.Websocket/GraphQL.Client.Abstractions.Websocket.csproj @@ -1,7 +1,5 @@ - - Abstractions for the Websocket transport used in GraphQL.Client netstandard2.0 diff --git a/src/GraphQL.Client.Abstractions.Websocket/GraphQLWebSocketRequest.cs b/src/GraphQL.Client.Abstractions.Websocket/GraphQLWebSocketRequest.cs index f83fe5aa..1210c34a 100644 --- a/src/GraphQL.Client.Abstractions.Websocket/GraphQLWebSocketRequest.cs +++ b/src/GraphQL.Client.Abstractions.Websocket/GraphQLWebSocketRequest.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; - namespace GraphQL.Client.Abstractions.Websocket { /// diff --git a/src/GraphQL.Client.Abstractions.Websocket/GraphQLWebSocketResponse.cs b/src/GraphQL.Client.Abstractions.Websocket/GraphQLWebSocketResponse.cs index 390834da..5de56492 100644 --- a/src/GraphQL.Client.Abstractions.Websocket/GraphQLWebSocketResponse.cs +++ b/src/GraphQL.Client.Abstractions.Websocket/GraphQLWebSocketResponse.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; - namespace GraphQL.Client.Abstractions.Websocket { /// diff --git a/src/GraphQL.Client.Abstractions.Websocket/IGraphQLWebsocketJsonSerializer.cs b/src/GraphQL.Client.Abstractions.Websocket/IGraphQLWebsocketJsonSerializer.cs index 5e3d58ec..4526d797 100644 --- a/src/GraphQL.Client.Abstractions.Websocket/IGraphQLWebsocketJsonSerializer.cs +++ b/src/GraphQL.Client.Abstractions.Websocket/IGraphQLWebsocketJsonSerializer.cs @@ -1,6 +1,3 @@ -using System.IO; -using System.Threading.Tasks; - namespace GraphQL.Client.Abstractions.Websocket { /// diff --git a/src/GraphQL.Client.Abstractions/GraphQL.Client.Abstractions.csproj b/src/GraphQL.Client.Abstractions/GraphQL.Client.Abstractions.csproj index ef5087f4..58f116f2 100644 --- a/src/GraphQL.Client.Abstractions/GraphQL.Client.Abstractions.csproj +++ b/src/GraphQL.Client.Abstractions/GraphQL.Client.Abstractions.csproj @@ -1,7 +1,5 @@ - - Abstractions for GraphQL.Client netstandard2.0 diff --git a/src/GraphQL.Client.Abstractions/GraphQLClientExtensions.cs b/src/GraphQL.Client.Abstractions/GraphQLClientExtensions.cs index 0c891bf7..379eb932 100644 --- a/src/GraphQL.Client.Abstractions/GraphQLClientExtensions.cs +++ b/src/GraphQL.Client.Abstractions/GraphQLClientExtensions.cs @@ -1,7 +1,3 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - namespace GraphQL.Client.Abstractions { public static class GraphQLClientExtensions diff --git a/src/GraphQL.Client.Abstractions/GraphQLJsonSerializerExtensions.cs b/src/GraphQL.Client.Abstractions/GraphQLJsonSerializerExtensions.cs index 9222690c..56ff68e6 100644 --- a/src/GraphQL.Client.Abstractions/GraphQLJsonSerializerExtensions.cs +++ b/src/GraphQL.Client.Abstractions/GraphQLJsonSerializerExtensions.cs @@ -1,5 +1,3 @@ -using System; - namespace GraphQL.Client.Abstractions { public static class GraphQLJsonSerializerExtensions diff --git a/src/GraphQL.Client.Abstractions/IGraphQLClient.cs b/src/GraphQL.Client.Abstractions/IGraphQLClient.cs index 0508f8b5..a7a61b26 100644 --- a/src/GraphQL.Client.Abstractions/IGraphQLClient.cs +++ b/src/GraphQL.Client.Abstractions/IGraphQLClient.cs @@ -1,7 +1,4 @@ -using System; using System.Net.WebSockets; -using System.Threading; -using System.Threading.Tasks; namespace GraphQL.Client.Abstractions { diff --git a/src/GraphQL.Client.Abstractions/IGraphQLJsonSerializer.cs b/src/GraphQL.Client.Abstractions/IGraphQLJsonSerializer.cs index fa21dbac..9f5f9410 100644 --- a/src/GraphQL.Client.Abstractions/IGraphQLJsonSerializer.cs +++ b/src/GraphQL.Client.Abstractions/IGraphQLJsonSerializer.cs @@ -1,7 +1,3 @@ -using System.IO; -using System.Threading; -using System.Threading.Tasks; - namespace GraphQL.Client.Abstractions { public interface IGraphQLJsonSerializer diff --git a/src/GraphQL.Client.Abstractions/Utilities/StringExtensions.cs b/src/GraphQL.Client.Abstractions/Utilities/StringExtensions.cs index 38c718a8..8aeb4cb0 100644 --- a/src/GraphQL.Client.Abstractions/Utilities/StringExtensions.cs +++ b/src/GraphQL.Client.Abstractions/Utilities/StringExtensions.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; - -namespace GraphQL.Client.Abstractions.Utilities +namespace GraphQL.Client.Abstractions.Utilities { /// /// Copied from https://github.com/jquense/StringUtils diff --git a/src/GraphQL.Client.Abstractions/Utilities/StringUtils.cs b/src/GraphQL.Client.Abstractions/Utilities/StringUtils.cs index c643fd23..57673216 100644 --- a/src/GraphQL.Client.Abstractions/Utilities/StringUtils.cs +++ b/src/GraphQL.Client.Abstractions/Utilities/StringUtils.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text.RegularExpressions; +using System.Text.RegularExpressions; namespace GraphQL.Client.Abstractions.Utilities { diff --git a/src/GraphQL.Client.LocalExecution/GraphQL.Client.LocalExecution.csproj b/src/GraphQL.Client.LocalExecution/GraphQL.Client.LocalExecution.csproj index 36d80714..6973829f 100644 --- a/src/GraphQL.Client.LocalExecution/GraphQL.Client.LocalExecution.csproj +++ b/src/GraphQL.Client.LocalExecution/GraphQL.Client.LocalExecution.csproj @@ -1,7 +1,5 @@ - - A GraphQL Client which executes the queries directly on a provided GraphQL schema using graphql-dotnet netstandard2.0 diff --git a/src/GraphQL.Client.LocalExecution/GraphQLLocalExecutionClient.cs b/src/GraphQL.Client.LocalExecution/GraphQLLocalExecutionClient.cs index 9a741b32..4a92e647 100644 --- a/src/GraphQL.Client.LocalExecution/GraphQLLocalExecutionClient.cs +++ b/src/GraphQL.Client.LocalExecution/GraphQLLocalExecutionClient.cs @@ -1,10 +1,5 @@ -using System; -using System.IO; -using System.Linq; using System.Reactive.Linq; using System.Reactive.Threading.Tasks; -using System.Threading; -using System.Threading.Tasks; using GraphQL.Client.Abstractions; using GraphQL.Types; diff --git a/src/GraphQL.Client.Serializer.Newtonsoft/ConstantCaseEnumConverter.cs b/src/GraphQL.Client.Serializer.Newtonsoft/ConstantCaseEnumConverter.cs index d618a490..476eed9c 100644 --- a/src/GraphQL.Client.Serializer.Newtonsoft/ConstantCaseEnumConverter.cs +++ b/src/GraphQL.Client.Serializer.Newtonsoft/ConstantCaseEnumConverter.cs @@ -1,5 +1,3 @@ -using System; -using System.Linq; using System.Reflection; using GraphQL.Client.Abstractions.Utilities; using Newtonsoft.Json; diff --git a/src/GraphQL.Client.Serializer.Newtonsoft/GraphQL.Client.Serializer.Newtonsoft.csproj b/src/GraphQL.Client.Serializer.Newtonsoft/GraphQL.Client.Serializer.Newtonsoft.csproj index 27801752..65aef0d0 100644 --- a/src/GraphQL.Client.Serializer.Newtonsoft/GraphQL.Client.Serializer.Newtonsoft.csproj +++ b/src/GraphQL.Client.Serializer.Newtonsoft/GraphQL.Client.Serializer.Newtonsoft.csproj @@ -1,7 +1,5 @@ - - A serializer implementation for GraphQL.Client using Newtonsoft.Json as underlying JSON library netstandard2.0 diff --git a/src/GraphQL.Client.Serializer.Newtonsoft/MapConverter.cs b/src/GraphQL.Client.Serializer.Newtonsoft/MapConverter.cs index 3caefd5f..d1dd60f4 100644 --- a/src/GraphQL.Client.Serializer.Newtonsoft/MapConverter.cs +++ b/src/GraphQL.Client.Serializer.Newtonsoft/MapConverter.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Linq; diff --git a/src/GraphQL.Client.Serializer.Newtonsoft/NewtonsoftJsonSerializer.cs b/src/GraphQL.Client.Serializer.Newtonsoft/NewtonsoftJsonSerializer.cs index e7cae90f..6e362c08 100644 --- a/src/GraphQL.Client.Serializer.Newtonsoft/NewtonsoftJsonSerializer.cs +++ b/src/GraphQL.Client.Serializer.Newtonsoft/NewtonsoftJsonSerializer.cs @@ -1,8 +1,4 @@ -using System; -using System.IO; using System.Text; -using System.Threading; -using System.Threading.Tasks; using GraphQL.Client.Abstractions; using GraphQL.Client.Abstractions.Websocket; using Newtonsoft.Json; diff --git a/src/GraphQL.Client.Serializer.SystemTextJson/ConverterHelperExtensions.cs b/src/GraphQL.Client.Serializer.SystemTextJson/ConverterHelperExtensions.cs index fbb9036d..7afffe57 100644 --- a/src/GraphQL.Client.Serializer.SystemTextJson/ConverterHelperExtensions.cs +++ b/src/GraphQL.Client.Serializer.SystemTextJson/ConverterHelperExtensions.cs @@ -1,4 +1,3 @@ -using System; using System.Buffers; using System.Numerics; using System.Text; diff --git a/src/GraphQL.Client.Serializer.SystemTextJson/ErrorPathConverter.cs b/src/GraphQL.Client.Serializer.SystemTextJson/ErrorPathConverter.cs index b2718096..4114a17a 100644 --- a/src/GraphQL.Client.Serializer.SystemTextJson/ErrorPathConverter.cs +++ b/src/GraphQL.Client.Serializer.SystemTextJson/ErrorPathConverter.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using System.Text.Json; using System.Text.Json.Serialization; diff --git a/src/GraphQL.Client.Serializer.SystemTextJson/GraphQL.Client.Serializer.SystemTextJson.csproj b/src/GraphQL.Client.Serializer.SystemTextJson/GraphQL.Client.Serializer.SystemTextJson.csproj index ffb763bd..e49b975d 100644 --- a/src/GraphQL.Client.Serializer.SystemTextJson/GraphQL.Client.Serializer.SystemTextJson.csproj +++ b/src/GraphQL.Client.Serializer.SystemTextJson/GraphQL.Client.Serializer.SystemTextJson.csproj @@ -1,7 +1,5 @@ - - A serializer implementation for GraphQL.Client using System.Text.Json as underlying JSON library netstandard2.0;netcoreapp3.1 diff --git a/src/GraphQL.Client.Serializer.SystemTextJson/ImmutableConverter.cs b/src/GraphQL.Client.Serializer.SystemTextJson/ImmutableConverter.cs index 7355970d..0c9ec398 100644 --- a/src/GraphQL.Client.Serializer.SystemTextJson/ImmutableConverter.cs +++ b/src/GraphQL.Client.Serializer.SystemTextJson/ImmutableConverter.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Text.Json; diff --git a/src/GraphQL.Client.Serializer.SystemTextJson/MapConverter.cs b/src/GraphQL.Client.Serializer.SystemTextJson/MapConverter.cs index e41c1bf5..e3ab7217 100644 --- a/src/GraphQL.Client.Serializer.SystemTextJson/MapConverter.cs +++ b/src/GraphQL.Client.Serializer.SystemTextJson/MapConverter.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Numerics; using System.Text.Json; using System.Text.Json.Serialization; diff --git a/src/GraphQL.Client.Serializer.SystemTextJson/SystemTextJsonSerializer.cs b/src/GraphQL.Client.Serializer.SystemTextJson/SystemTextJsonSerializer.cs index d0325464..05b2c2f0 100644 --- a/src/GraphQL.Client.Serializer.SystemTextJson/SystemTextJsonSerializer.cs +++ b/src/GraphQL.Client.Serializer.SystemTextJson/SystemTextJsonSerializer.cs @@ -1,9 +1,5 @@ -using System; -using System.IO; using System.Text.Json; using System.Text.Json.Serialization; -using System.Threading; -using System.Threading.Tasks; using GraphQL.Client.Abstractions; using GraphQL.Client.Abstractions.Websocket; diff --git a/src/GraphQL.Client/GraphQL.Client.csproj b/src/GraphQL.Client/GraphQL.Client.csproj index 8203c2f4..719c1a76 100644 --- a/src/GraphQL.Client/GraphQL.Client.csproj +++ b/src/GraphQL.Client/GraphQL.Client.csproj @@ -1,7 +1,5 @@ - - netstandard2.0;net461 GraphQL.Client.Http diff --git a/src/GraphQL.Client/GraphQLHttpClient.cs b/src/GraphQL.Client/GraphQLHttpClient.cs index ea095fc6..9eebf776 100644 --- a/src/GraphQL.Client/GraphQLHttpClient.cs +++ b/src/GraphQL.Client/GraphQLHttpClient.cs @@ -1,11 +1,5 @@ -using System; using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Net.Http; using System.Net.Http.Headers; -using System.Threading; -using System.Threading.Tasks; using GraphQL.Client.Abstractions; using GraphQL.Client.Abstractions.Websocket; using GraphQL.Client.Http.Websocket; @@ -110,7 +104,7 @@ public IObservable> CreateSubscriptionStream - /// explicitly opens the websocket connection. Will be closed again on disposing the last subscription + /// Explicitly opens the websocket connection. Will be closed again on disposing the last subscription. /// /// public Task InitializeWebsocketConnection() => GraphQlHttpWebSocket.InitializeWebSocket(); diff --git a/src/GraphQL.Client/GraphQLHttpClientExtensions.cs b/src/GraphQL.Client/GraphQLHttpClientExtensions.cs index 041ed5c6..c3f49dfb 100644 --- a/src/GraphQL.Client/GraphQLHttpClientExtensions.cs +++ b/src/GraphQL.Client/GraphQLHttpClientExtensions.cs @@ -1,4 +1,3 @@ -using System; using System.Net.WebSockets; using GraphQL.Client.Abstractions; diff --git a/src/GraphQL.Client/GraphQLHttpClientOptions.cs b/src/GraphQL.Client/GraphQLHttpClientOptions.cs index dac7c4f1..74cd6c08 100644 --- a/src/GraphQL.Client/GraphQLHttpClientOptions.cs +++ b/src/GraphQL.Client/GraphQLHttpClientOptions.cs @@ -1,13 +1,10 @@ -using System; -using System.Net.Http; using System.Net.Http.Headers; using System.Net.WebSockets; -using System.Threading.Tasks; namespace GraphQL.Client.Http { /// - /// The Options that the will use + /// The Options that the will use. /// public class GraphQLHttpClientOptions { diff --git a/src/GraphQL.Client/GraphQLHttpRequest.cs b/src/GraphQL.Client/GraphQLHttpRequest.cs index eb3aac14..ac62c6a8 100644 --- a/src/GraphQL.Client/GraphQLHttpRequest.cs +++ b/src/GraphQL.Client/GraphQLHttpRequest.cs @@ -1,5 +1,3 @@ -using System; -using System.Net.Http; using System.Runtime.Serialization; using System.Text; using GraphQL.Client.Abstractions; diff --git a/src/GraphQL.Client/GraphQLHttpRequestException.cs b/src/GraphQL.Client/GraphQLHttpRequestException.cs index 5b3a8b9f..faf7e6c5 100644 --- a/src/GraphQL.Client/GraphQLHttpRequestException.cs +++ b/src/GraphQL.Client/GraphQLHttpRequestException.cs @@ -1,4 +1,3 @@ -using System; using System.Net; using System.Net.Http.Headers; diff --git a/src/GraphQL.Client/GraphQLHttpResponse.cs b/src/GraphQL.Client/GraphQLHttpResponse.cs index b4b09784..8888ff61 100644 --- a/src/GraphQL.Client/GraphQLHttpResponse.cs +++ b/src/GraphQL.Client/GraphQLHttpResponse.cs @@ -1,4 +1,3 @@ -using System; using System.Net; using System.Net.Http.Headers; diff --git a/src/GraphQL.Client/GraphQLSubscriptionException.cs b/src/GraphQL.Client/GraphQLSubscriptionException.cs index d9accc85..28e8566c 100644 --- a/src/GraphQL.Client/GraphQLSubscriptionException.cs +++ b/src/GraphQL.Client/GraphQLSubscriptionException.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.Serialization; namespace GraphQL.Client.Http diff --git a/src/GraphQL.Client/UriExtensions.cs b/src/GraphQL.Client/UriExtensions.cs index 296eb052..1e2e53e2 100644 --- a/src/GraphQL.Client/UriExtensions.cs +++ b/src/GraphQL.Client/UriExtensions.cs @@ -1,5 +1,3 @@ -using System; - namespace GraphQL.Client.Http { public static class UriExtensions diff --git a/src/GraphQL.Client/Websocket/GraphQLHttpWebSocket.cs b/src/GraphQL.Client/Websocket/GraphQLHttpWebSocket.cs index 67a517c6..0aa60818 100644 --- a/src/GraphQL.Client/Websocket/GraphQLHttpWebSocket.cs +++ b/src/GraphQL.Client/Websocket/GraphQLHttpWebSocket.cs @@ -1,7 +1,4 @@ -using System; using System.Diagnostics; -using System.IO; -using System.Net.Http; using System.Net.WebSockets; using System.Reactive; using System.Reactive.Disposables; @@ -9,8 +6,6 @@ using System.Reactive.Subjects; using System.Reactive.Threading.Tasks; using System.Text; -using System.Threading; -using System.Threading.Tasks; using GraphQL.Client.Abstractions.Websocket; namespace GraphQL.Client.Http.Websocket diff --git a/src/GraphQL.Client/Websocket/GraphQLWebsocketConnectionException.cs b/src/GraphQL.Client/Websocket/GraphQLWebsocketConnectionException.cs index c6b2e831..a1416948 100644 --- a/src/GraphQL.Client/Websocket/GraphQLWebsocketConnectionException.cs +++ b/src/GraphQL.Client/Websocket/GraphQLWebsocketConnectionException.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.Serialization; namespace GraphQL.Client.Http.Websocket diff --git a/src/GraphQL.Primitives/ErrorPath.cs b/src/GraphQL.Primitives/ErrorPath.cs index 59abdb79..dd449d73 100644 --- a/src/GraphQL.Primitives/ErrorPath.cs +++ b/src/GraphQL.Primitives/ErrorPath.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace GraphQL { public class ErrorPath : List diff --git a/src/GraphQL.Primitives/GraphQL.Primitives.csproj b/src/GraphQL.Primitives/GraphQL.Primitives.csproj index c4210d9d..676e6fe8 100644 --- a/src/GraphQL.Primitives/GraphQL.Primitives.csproj +++ b/src/GraphQL.Primitives/GraphQL.Primitives.csproj @@ -1,7 +1,5 @@ - - GraphQL basic types GraphQL diff --git a/src/GraphQL.Primitives/GraphQLError.cs b/src/GraphQL.Primitives/GraphQLError.cs index c76d3f00..7b3e9a1a 100644 --- a/src/GraphQL.Primitives/GraphQLError.cs +++ b/src/GraphQL.Primitives/GraphQLError.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using System.Runtime.Serialization; namespace GraphQL diff --git a/src/GraphQL.Primitives/GraphQLLocation.cs b/src/GraphQL.Primitives/GraphQLLocation.cs index 9464817a..4a499031 100644 --- a/src/GraphQL.Primitives/GraphQLLocation.cs +++ b/src/GraphQL.Primitives/GraphQLLocation.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; - namespace GraphQL { /// diff --git a/src/GraphQL.Primitives/GraphQLRequest.cs b/src/GraphQL.Primitives/GraphQLRequest.cs index 2755122c..5dbb766d 100644 --- a/src/GraphQL.Primitives/GraphQLRequest.cs +++ b/src/GraphQL.Primitives/GraphQLRequest.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; - namespace GraphQL { /// diff --git a/src/GraphQL.Primitives/GraphQLResponse.cs b/src/GraphQL.Primitives/GraphQLResponse.cs index 1c1af7de..c4c8a010 100644 --- a/src/GraphQL.Primitives/GraphQLResponse.cs +++ b/src/GraphQL.Primitives/GraphQLResponse.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using System.Runtime.Serialization; namespace GraphQL diff --git a/src/GraphQL.Primitives/Map.cs b/src/GraphQL.Primitives/Map.cs index 9c4f503b..b51f5a85 100644 --- a/src/GraphQL.Primitives/Map.cs +++ b/src/GraphQL.Primitives/Map.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace GraphQL { /// diff --git a/tests/GraphQL.Client.Serializer.Tests/.editorconfig b/tests/.editorconfig similarity index 100% rename from tests/GraphQL.Client.Serializer.Tests/.editorconfig rename to tests/.editorconfig diff --git a/tests/GraphQL.Client.Tests.Common/Chat/AddMessageVariables.cs b/tests/GraphQL.Client.Tests.Common/Chat/AddMessageVariables.cs index 887c55cd..916054e8 100644 --- a/tests/GraphQL.Client.Tests.Common/Chat/AddMessageVariables.cs +++ b/tests/GraphQL.Client.Tests.Common/Chat/AddMessageVariables.cs @@ -1,5 +1,3 @@ -using System; - namespace GraphQL.Client.Tests.Common.Chat { public class AddMessageVariables diff --git a/tests/GraphQL.Client.Tests.Common/Chat/GraphQLClientChatExtensions.cs b/tests/GraphQL.Client.Tests.Common/Chat/GraphQLClientChatExtensions.cs index 07648f06..47edfc28 100644 --- a/tests/GraphQL.Client.Tests.Common/Chat/GraphQLClientChatExtensions.cs +++ b/tests/GraphQL.Client.Tests.Common/Chat/GraphQLClientChatExtensions.cs @@ -1,5 +1,3 @@ -using System; -using System.Threading.Tasks; using GraphQL.Client.Abstractions; namespace GraphQL.Client.Tests.Common.Chat diff --git a/tests/GraphQL.Client.Tests.Common/Chat/Schema/ChatQuery.cs b/tests/GraphQL.Client.Tests.Common/Chat/Schema/ChatQuery.cs index e60bf97e..5645beb8 100644 --- a/tests/GraphQL.Client.Tests.Common/Chat/Schema/ChatQuery.cs +++ b/tests/GraphQL.Client.Tests.Common/Chat/Schema/ChatQuery.cs @@ -1,6 +1,3 @@ -using System.Collections.Generic; -using System.Linq; -using System.Threading; using GraphQL.Types; namespace GraphQL.Client.Tests.Common.Chat.Schema diff --git a/tests/GraphQL.Client.Tests.Common/Chat/Schema/ChatSchema.cs b/tests/GraphQL.Client.Tests.Common/Chat/Schema/ChatSchema.cs index fbdfedf1..d606cdbd 100644 --- a/tests/GraphQL.Client.Tests.Common/Chat/Schema/ChatSchema.cs +++ b/tests/GraphQL.Client.Tests.Common/Chat/Schema/ChatSchema.cs @@ -1,4 +1,3 @@ -using System; using Microsoft.Extensions.DependencyInjection; namespace GraphQL.Client.Tests.Common.Chat.Schema diff --git a/tests/GraphQL.Client.Tests.Common/Chat/Schema/ChatSubscriptions.cs b/tests/GraphQL.Client.Tests.Common/Chat/Schema/ChatSubscriptions.cs index f3fbab63..58dcd240 100644 --- a/tests/GraphQL.Client.Tests.Common/Chat/Schema/ChatSubscriptions.cs +++ b/tests/GraphQL.Client.Tests.Common/Chat/Schema/ChatSubscriptions.cs @@ -1,5 +1,3 @@ -using System; -using System.Linq; using System.Reactive.Linq; using System.Security.Claims; using GraphQL.Resolvers; diff --git a/tests/GraphQL.Client.Tests.Common/Chat/Schema/IChat.cs b/tests/GraphQL.Client.Tests.Common/Chat/Schema/IChat.cs index 63aaf439..bfbdeb32 100644 --- a/tests/GraphQL.Client.Tests.Common/Chat/Schema/IChat.cs +++ b/tests/GraphQL.Client.Tests.Common/Chat/Schema/IChat.cs @@ -1,10 +1,8 @@ -using System; using System.Collections.Concurrent; using System.Diagnostics; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Reactive.Subjects; -using System.Threading; namespace GraphQL.Client.Tests.Common.Chat.Schema { diff --git a/tests/GraphQL.Client.Tests.Common/Chat/Schema/Message.cs b/tests/GraphQL.Client.Tests.Common/Chat/Schema/Message.cs index 345a397e..e344caee 100644 --- a/tests/GraphQL.Client.Tests.Common/Chat/Schema/Message.cs +++ b/tests/GraphQL.Client.Tests.Common/Chat/Schema/Message.cs @@ -1,5 +1,3 @@ -using System; - namespace GraphQL.Client.Tests.Common.Chat.Schema { public class Message diff --git a/tests/GraphQL.Client.Tests.Common/Chat/Schema/ReceivedMessage.cs b/tests/GraphQL.Client.Tests.Common/Chat/Schema/ReceivedMessage.cs index 9cf72c9b..95d7d295 100644 --- a/tests/GraphQL.Client.Tests.Common/Chat/Schema/ReceivedMessage.cs +++ b/tests/GraphQL.Client.Tests.Common/Chat/Schema/ReceivedMessage.cs @@ -1,5 +1,3 @@ -using System; - namespace GraphQL.Client.Tests.Common.Chat.Schema { public class ReceivedMessage diff --git a/tests/GraphQL.Client.Tests.Common/Helpers/AvailableJsonSerializers.cs b/tests/GraphQL.Client.Tests.Common/Helpers/AvailableJsonSerializers.cs index 4104fd20..dca19832 100644 --- a/tests/GraphQL.Client.Tests.Common/Helpers/AvailableJsonSerializers.cs +++ b/tests/GraphQL.Client.Tests.Common/Helpers/AvailableJsonSerializers.cs @@ -1,7 +1,4 @@ -using System; using System.Collections; -using System.Collections.Generic; -using System.Linq; using GraphQL.Client.Abstractions; namespace GraphQL.Client.Tests.Common.Helpers diff --git a/tests/GraphQL.Client.Tests.Common/Helpers/CallbackMonitor.cs b/tests/GraphQL.Client.Tests.Common/Helpers/CallbackMonitor.cs index 54e51c78..3603041c 100644 --- a/tests/GraphQL.Client.Tests.Common/Helpers/CallbackMonitor.cs +++ b/tests/GraphQL.Client.Tests.Common/Helpers/CallbackMonitor.cs @@ -1,6 +1,4 @@ -using System; using System.Diagnostics; -using System.Threading; using FluentAssertions; using FluentAssertions.Execution; using FluentAssertions.Primitives; diff --git a/tests/GraphQL.Client.Tests.Common/Helpers/ConcurrentTaskWrapper.cs b/tests/GraphQL.Client.Tests.Common/Helpers/ConcurrentTaskWrapper.cs index c16e1744..6d957c38 100644 --- a/tests/GraphQL.Client.Tests.Common/Helpers/ConcurrentTaskWrapper.cs +++ b/tests/GraphQL.Client.Tests.Common/Helpers/ConcurrentTaskWrapper.cs @@ -1,6 +1,3 @@ -using System; -using System.Threading.Tasks; - namespace GraphQL.Client.Tests.Common.Helpers { public class ConcurrentTaskWrapper diff --git a/tests/GraphQL.Client.Tests.Common/Helpers/MiscellaneousExtensions.cs b/tests/GraphQL.Client.Tests.Common/Helpers/MiscellaneousExtensions.cs index dcbb6db9..428d4cca 100644 --- a/tests/GraphQL.Client.Tests.Common/Helpers/MiscellaneousExtensions.cs +++ b/tests/GraphQL.Client.Tests.Common/Helpers/MiscellaneousExtensions.cs @@ -1,5 +1,3 @@ -using System.Linq; -using System.Threading.Tasks; using GraphQL.Client.Http; namespace GraphQL.Client.Tests.Common.Helpers diff --git a/tests/GraphQL.Client.Tests.Common/StarWars/Extensions/ResolveFieldContextExtensions.cs b/tests/GraphQL.Client.Tests.Common/StarWars/Extensions/ResolveFieldContextExtensions.cs index 44ba5895..ff3a12da 100644 --- a/tests/GraphQL.Client.Tests.Common/StarWars/Extensions/ResolveFieldContextExtensions.cs +++ b/tests/GraphQL.Client.Tests.Common/StarWars/Extensions/ResolveFieldContextExtensions.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using GraphQL.Builders; using GraphQL.Client.Tests.Common.StarWars.Types; using GraphQL.Types.Relay.DataObjects; diff --git a/tests/GraphQL.Client.Tests.Common/StarWars/StarWarsData.cs b/tests/GraphQL.Client.Tests.Common/StarWars/StarWarsData.cs index f561ed87..c0d3595b 100644 --- a/tests/GraphQL.Client.Tests.Common/StarWars/StarWarsData.cs +++ b/tests/GraphQL.Client.Tests.Common/StarWars/StarWarsData.cs @@ -1,6 +1,3 @@ -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using GraphQL.Client.Tests.Common.StarWars.Types; namespace GraphQL.Client.Tests.Common.StarWars diff --git a/tests/GraphQL.Client.Tests.Common/StarWars/StarWarsMutation.cs b/tests/GraphQL.Client.Tests.Common/StarWars/StarWarsMutation.cs index cd577688..130ee1a9 100644 --- a/tests/GraphQL.Client.Tests.Common/StarWars/StarWarsMutation.cs +++ b/tests/GraphQL.Client.Tests.Common/StarWars/StarWarsMutation.cs @@ -3,6 +3,7 @@ namespace GraphQL.Client.Tests.Common.StarWars { + /// Mutation graph type for StarWars schema. /// /// This is an example JSON request for a mutation /// { diff --git a/tests/GraphQL.Client.Tests.Common/StarWars/StarWarsQuery.cs b/tests/GraphQL.Client.Tests.Common/StarWars/StarWarsQuery.cs index ee2b9d3d..38b29e6f 100644 --- a/tests/GraphQL.Client.Tests.Common/StarWars/StarWarsQuery.cs +++ b/tests/GraphQL.Client.Tests.Common/StarWars/StarWarsQuery.cs @@ -1,5 +1,3 @@ -using System; -using System.Threading.Tasks; using GraphQL.Client.Tests.Common.StarWars.Types; using GraphQL.Types; diff --git a/tests/GraphQL.Client.Tests.Common/StarWars/StarWarsSchema.cs b/tests/GraphQL.Client.Tests.Common/StarWars/StarWarsSchema.cs index eff7cff4..3756f471 100644 --- a/tests/GraphQL.Client.Tests.Common/StarWars/StarWarsSchema.cs +++ b/tests/GraphQL.Client.Tests.Common/StarWars/StarWarsSchema.cs @@ -1,4 +1,3 @@ -using System; using GraphQL.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/tests/GraphQL.Client.Tests.Common/StarWars/TestData/StarWarsHumans.cs b/tests/GraphQL.Client.Tests.Common/StarWars/TestData/StarWarsHumans.cs index 1e93ccb6..25376b87 100644 --- a/tests/GraphQL.Client.Tests.Common/StarWars/TestData/StarWarsHumans.cs +++ b/tests/GraphQL.Client.Tests.Common/StarWars/TestData/StarWarsHumans.cs @@ -1,5 +1,4 @@ using System.Collections; -using System.Collections.Generic; namespace GraphQL.Client.Tests.Common.StarWars.TestData { diff --git a/tests/GraphQL.Client.Tests.Common/StarWars/Types/StarWarsCharacter.cs b/tests/GraphQL.Client.Tests.Common/StarWars/Types/StarWarsCharacter.cs index b39d4cdc..6c646e0b 100644 --- a/tests/GraphQL.Client.Tests.Common/StarWars/Types/StarWarsCharacter.cs +++ b/tests/GraphQL.Client.Tests.Common/StarWars/Types/StarWarsCharacter.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace GraphQL.Client.Tests.Common.StarWars.Types { public abstract class StarWarsCharacter diff --git a/tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj b/tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj deleted file mode 100644 index 4aae0487..00000000 --- a/tests/GraphQL.Common.Tests/GraphQL.Common.Tests.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - true - netcoreapp3.0 - - - - - - - diff --git a/tests/GraphQL.Integration.Tests/.editorconfig b/tests/GraphQL.Integration.Tests/.editorconfig deleted file mode 100644 index d1655ff8..00000000 --- a/tests/GraphQL.Integration.Tests/.editorconfig +++ /dev/null @@ -1,2 +0,0 @@ -# Configure await -configure_await_analysis_mode = disabled diff --git a/tests/GraphQL.Integration.Tests/Helpers/IntegrationServerTestFixture.cs b/tests/GraphQL.Integration.Tests/Helpers/IntegrationServerTestFixture.cs index 25773b47..59dc0733 100644 --- a/tests/GraphQL.Integration.Tests/Helpers/IntegrationServerTestFixture.cs +++ b/tests/GraphQL.Integration.Tests/Helpers/IntegrationServerTestFixture.cs @@ -1,12 +1,9 @@ -using System; -using System.Threading.Tasks; using GraphQL.Client.Abstractions.Websocket; using GraphQL.Client.Http; using GraphQL.Client.Serializer.Newtonsoft; using GraphQL.Client.Serializer.SystemTextJson; using GraphQL.Client.Tests.Common; using GraphQL.Client.Tests.Common.Helpers; -using Microsoft.AspNetCore.Hosting; namespace GraphQL.Integration.Tests.Helpers { diff --git a/tests/GraphQL.Integration.Tests/Helpers/WebHostHelpers.cs b/tests/GraphQL.Integration.Tests/Helpers/WebHostHelpers.cs index 0bdb0e8c..fb3ba46b 100644 --- a/tests/GraphQL.Integration.Tests/Helpers/WebHostHelpers.cs +++ b/tests/GraphQL.Integration.Tests/Helpers/WebHostHelpers.cs @@ -1,16 +1,9 @@ -using System; -using System.Threading.Tasks; using GraphQL.Client.Abstractions.Websocket; using GraphQL.Client.Http; using GraphQL.Client.Serializer.Newtonsoft; using GraphQL.Client.Tests.Common; using GraphQL.Client.Tests.Common.Helpers; using IntegrationTestServer; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; namespace GraphQL.Integration.Tests.Helpers { diff --git a/tests/GraphQL.Integration.Tests/QueryAndMutationTests/Base.cs b/tests/GraphQL.Integration.Tests/QueryAndMutationTests/Base.cs index 249ef8e7..e489046a 100644 --- a/tests/GraphQL.Integration.Tests/QueryAndMutationTests/Base.cs +++ b/tests/GraphQL.Integration.Tests/QueryAndMutationTests/Base.cs @@ -1,17 +1,11 @@ -using System; using System.Net; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; using FluentAssertions; using GraphQL.Client.Abstractions; using GraphQL.Client.Http; using GraphQL.Client.Tests.Common.Chat.Schema; using GraphQL.Client.Tests.Common.Helpers; -using GraphQL.Client.Tests.Common.StarWars; using GraphQL.Client.Tests.Common.StarWars.TestData; using GraphQL.Integration.Tests.Helpers; -using Microsoft.Extensions.DependencyInjection; using Xunit; namespace GraphQL.Integration.Tests.QueryAndMutationTests diff --git a/tests/GraphQL.Integration.Tests/UriExtensionTests.cs b/tests/GraphQL.Integration.Tests/UriExtensionTests.cs index 1298ca11..4daba07c 100644 --- a/tests/GraphQL.Integration.Tests/UriExtensionTests.cs +++ b/tests/GraphQL.Integration.Tests/UriExtensionTests.cs @@ -1,5 +1,4 @@ -using System; -using FluentAssertions; +using FluentAssertions; using GraphQL.Client.Http; using Xunit; diff --git a/tests/GraphQL.Integration.Tests/WebsocketTests/Base.cs b/tests/GraphQL.Integration.Tests/WebsocketTests/Base.cs index 8bc9cc7f..a63ed980 100644 --- a/tests/GraphQL.Integration.Tests/WebsocketTests/Base.cs +++ b/tests/GraphQL.Integration.Tests/WebsocketTests/Base.cs @@ -1,11 +1,6 @@ -using System; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using System.Net.WebSockets; -using System.Threading; -using System.Threading.Tasks; using FluentAssertions; using FluentAssertions.Execution; using FluentAssertions.Extensions; @@ -17,7 +12,6 @@ using GraphQL.Client.Tests.Common.Chat.Schema; using GraphQL.Client.Tests.Common.Helpers; using GraphQL.Integration.Tests.Helpers; -using Microsoft.Extensions.DependencyInjection; using Xunit; using Xunit.Abstractions; diff --git a/tests/GraphQL.Primitives.Tests/.editorconfig b/tests/GraphQL.Primitives.Tests/.editorconfig deleted file mode 100644 index d1655ff8..00000000 --- a/tests/GraphQL.Primitives.Tests/.editorconfig +++ /dev/null @@ -1,2 +0,0 @@ -# Configure await -configure_await_analysis_mode = disabled diff --git a/tests/GraphQL.Server.Test/.editorconfig b/tests/GraphQL.Server.Test/.editorconfig deleted file mode 100644 index d1655ff8..00000000 --- a/tests/GraphQL.Server.Test/.editorconfig +++ /dev/null @@ -1,2 +0,0 @@ -# Configure await -configure_await_analysis_mode = disabled diff --git a/tests/GraphQL.Server.Test/GraphQL.Server.Test.csproj b/tests/GraphQL.Server.Test/GraphQL.Server.Test.csproj index 97773f9f..ac59ef1a 100644 --- a/tests/GraphQL.Server.Test/GraphQL.Server.Test.csproj +++ b/tests/GraphQL.Server.Test/GraphQL.Server.Test.csproj @@ -2,6 +2,7 @@ net6 + false diff --git a/tests/GraphQL.Server.Test/GraphQL/Models/Repository.cs b/tests/GraphQL.Server.Test/GraphQL/Models/Repository.cs index 95e5f1fc..b262a6bd 100644 --- a/tests/GraphQL.Server.Test/GraphQL/Models/Repository.cs +++ b/tests/GraphQL.Server.Test/GraphQL/Models/Repository.cs @@ -1,4 +1,3 @@ -using System; using GraphQL.Types; namespace GraphQL.Server.Test.GraphQL.Models @@ -7,13 +6,13 @@ public class Repository { public int DatabaseId { get; set; } - public string Id { get; set; } + public string? Id { get; set; } - public string Name { get; set; } + public string? Name { get; set; } - public object Owner { get; set; } + public object? Owner { get; set; } - public Uri Url { get; set; } + public Uri? Url { get; set; } } public class RepositoryGraphType : ObjectGraphType diff --git a/tests/GraphQL.Server.Test/GraphQL/Storage.cs b/tests/GraphQL.Server.Test/GraphQL/Storage.cs index 0280b28f..f157da14 100644 --- a/tests/GraphQL.Server.Test/GraphQL/Storage.cs +++ b/tests/GraphQL.Server.Test/GraphQL/Storage.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using GraphQL.Server.Test.GraphQL.Models; namespace GraphQL.Server.Test.GraphQL diff --git a/tests/GraphQL.Server.Test/GraphQL/TestQuery.cs b/tests/GraphQL.Server.Test/GraphQL/TestQuery.cs index bf8aa3ae..4eb32723 100644 --- a/tests/GraphQL.Server.Test/GraphQL/TestQuery.cs +++ b/tests/GraphQL.Server.Test/GraphQL/TestQuery.cs @@ -1,4 +1,3 @@ -using System.Linq; using GraphQL.Server.Test.GraphQL.Models; using GraphQL.Types; diff --git a/tests/GraphQL.Server.Test/Program.cs b/tests/GraphQL.Server.Test/Program.cs index df18d888..98538f1f 100644 --- a/tests/GraphQL.Server.Test/Program.cs +++ b/tests/GraphQL.Server.Test/Program.cs @@ -1,10 +1,8 @@ -using System.Threading.Tasks; using Microsoft.AspNetCore; -using Microsoft.AspNetCore.Hosting; namespace GraphQL.Server.Test { - public class Program + public static class Program { public static async Task Main(string[] args) => await CreateHostBuilder(args).Build().RunAsync(); diff --git a/tests/GraphQL.Server.Test/Startup.cs b/tests/GraphQL.Server.Test/Startup.cs index 06eae89b..2421cf70 100644 --- a/tests/GraphQL.Server.Test/Startup.cs +++ b/tests/GraphQL.Server.Test/Startup.cs @@ -1,10 +1,6 @@ using GraphQL.MicrosoftDI; using GraphQL.Server.Test.GraphQL; using GraphQL.Server.Ui.GraphiQL; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; namespace GraphQL.Server.Test { diff --git a/tests/IntegrationTestServer/.editorconfig b/tests/IntegrationTestServer/.editorconfig deleted file mode 100644 index d1655ff8..00000000 --- a/tests/IntegrationTestServer/.editorconfig +++ /dev/null @@ -1,2 +0,0 @@ -# Configure await -configure_await_analysis_mode = disabled diff --git a/tests/IntegrationTestServer/IntegrationTestServer.csproj b/tests/IntegrationTestServer/IntegrationTestServer.csproj index 1e68549b..4bda2103 100644 --- a/tests/IntegrationTestServer/IntegrationTestServer.csproj +++ b/tests/IntegrationTestServer/IntegrationTestServer.csproj @@ -3,6 +3,7 @@ net6 IntegrationTestServer.Program + false diff --git a/tests/IntegrationTestServer/Program.cs b/tests/IntegrationTestServer/Program.cs index 09269167..ac56ea87 100644 --- a/tests/IntegrationTestServer/Program.cs +++ b/tests/IntegrationTestServer/Program.cs @@ -1,16 +1,14 @@ using Microsoft.AspNetCore; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Logging; namespace IntegrationTestServer { - public class Program + public static class Program { public static void Main(string[] args) => CreateWebHostBuilder(args).Build().Run(); public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseStartup() - .ConfigureLogging((ctx, logging) => logging.SetMinimumLevel(LogLevel.Debug)); + .ConfigureLogging((_, logging) => logging.SetMinimumLevel(LogLevel.Debug)); } } diff --git a/tests/IntegrationTestServer/Startup.cs b/tests/IntegrationTestServer/Startup.cs index 0d1ad68e..c8441472 100644 --- a/tests/IntegrationTestServer/Startup.cs +++ b/tests/IntegrationTestServer/Startup.cs @@ -8,13 +8,7 @@ using GraphQL.Server.Ui.GraphiQL; using GraphQL.SystemTextJson; using GraphQL.Types; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Server.Kestrel.Core; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; namespace IntegrationTestServer { diff --git a/tests/tests.props b/tests/tests.props index f2157f5f..28e5e65c 100644 --- a/tests/tests.props +++ b/tests/tests.props @@ -1,7 +1,5 @@ - - false $(NoWarn);NU1701;IDE1006