diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b22a7b742bc..dca4d84696e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -275,11 +275,7 @@ jobs: path: | **/__mismatch__/* - - name: Fail if tests failed or were cancelled - run: exit 1 - if: | - steps.run-tests.outcome == 'failure' || - steps.run-tests.outcome == 'cancelled' + codeql: name: CodeQL diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/ExecutionResultSnapshotValueFormatter.cs b/src/CookieCrumble/src/CookieCrumble/Formatters/ExecutionResultSnapshotValueFormatter.cs index 0aa65ad9373..3189619a97e 100644 --- a/src/CookieCrumble/src/CookieCrumble/Formatters/ExecutionResultSnapshotValueFormatter.cs +++ b/src/CookieCrumble/src/CookieCrumble/Formatters/ExecutionResultSnapshotValueFormatter.cs @@ -1,5 +1,4 @@ using System.Buffers; -using System.Runtime.InteropServices; using System.Text.Json; using System.Text.Json.Nodes; using HotChocolate; @@ -21,6 +20,26 @@ protected override void Format(IBufferWriter snapshot, IExecutionResult va FormatStreamAsync(snapshot, (IResponseStream)value).Wait(); } } + + protected override void FormatMarkdown(IBufferWriter snapshot, IExecutionResult value) + { + if (value.Kind is ExecutionResultKind.SingleResult) + { + snapshot.Append("```json"); + snapshot.AppendLine(); + snapshot.Append(value.ToJson()); + } + else + { + snapshot.Append("```text"); + snapshot.AppendLine(); + FormatStreamAsync(snapshot, (IResponseStream)value).Wait(); + } + + snapshot.AppendLine(); + snapshot.Append("```"); + snapshot.AppendLine(); + } private static async Task FormatStreamAsync( IBufferWriter snapshot, @@ -79,7 +98,7 @@ private static async Task FormatStreamAsync( } } -internal class JsonResultPatcher +internal sealed class JsonResultPatcher { private const string _data = "data"; private const string _items = "items"; diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/GraphQLHttpResponseFormatter.cs b/src/CookieCrumble/src/CookieCrumble/Formatters/GraphQLHttpResponseFormatter.cs index b58c36e06e1..e8b314e430c 100644 --- a/src/CookieCrumble/src/CookieCrumble/Formatters/GraphQLHttpResponseFormatter.cs +++ b/src/CookieCrumble/src/CookieCrumble/Formatters/GraphQLHttpResponseFormatter.cs @@ -65,4 +65,4 @@ private static async Task FormatStreamAsync( } } } -} +} \ No newline at end of file diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/GraphQLSnapshotValueFormatter.cs b/src/CookieCrumble/src/CookieCrumble/Formatters/GraphQLSnapshotValueFormatter.cs index 7ac67132a63..7efada1fcf0 100644 --- a/src/CookieCrumble/src/CookieCrumble/Formatters/GraphQLSnapshotValueFormatter.cs +++ b/src/CookieCrumble/src/CookieCrumble/Formatters/GraphQLSnapshotValueFormatter.cs @@ -1,5 +1,4 @@ using System.Buffers; -using HotChocolate; using HotChocolate.Language; using HotChocolate.Language.Utilities; @@ -27,4 +26,14 @@ protected override void Format(IBufferWriter snapshot, ISyntaxNode value) ArrayPool.Shared.Return(buffer); } + + protected override void FormatMarkdown(IBufferWriter snapshot, ISyntaxNode value) + { + snapshot.Append("```graphql"); + snapshot.AppendLine(); + Format(snapshot, value); + snapshot.AppendLine(); + snapshot.Append("```"); + snapshot.AppendLine(); + } } \ No newline at end of file diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/IMarkdownSnapshotValueFormatter.cs b/src/CookieCrumble/src/CookieCrumble/Formatters/IMarkdownSnapshotValueFormatter.cs new file mode 100644 index 00000000000..c86100d3937 --- /dev/null +++ b/src/CookieCrumble/src/CookieCrumble/Formatters/IMarkdownSnapshotValueFormatter.cs @@ -0,0 +1,32 @@ +using System.Buffers; + +namespace CookieCrumble.Formatters; + +/// +/// Formats a snapshot segment value for the snapshot file. +/// +public interface IMarkdownSnapshotValueFormatter +{ + /// + /// Specifies if the formatter can handle the snapshot segment value. + /// + /// + /// The snapshot segment value. + /// + /// + /// true if the formatter can handle the snapshot segment value; + /// otherwise, false. + /// + bool CanHandle(object? value); + + /// + /// Formats the specified snapshot segment value for the snapshot file. + /// + /// + /// The snapshot file writer. + /// + /// + /// The snapshot segment vale. + /// + void FormatMarkdown(IBufferWriter snapshot, object? value); +} \ No newline at end of file diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/ISnapshotValueFormatter.cs b/src/CookieCrumble/src/CookieCrumble/Formatters/ISnapshotValueFormatter.cs index 9be3ee76a72..cd3ee8dc83f 100644 --- a/src/CookieCrumble/src/CookieCrumble/Formatters/ISnapshotValueFormatter.cs +++ b/src/CookieCrumble/src/CookieCrumble/Formatters/ISnapshotValueFormatter.cs @@ -29,4 +29,4 @@ public interface ISnapshotValueFormatter /// The snapshot segment vale. /// void Format(IBufferWriter snapshot, object? value); -} +} \ No newline at end of file diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/JsonElementSnapshotValueFormatter.cs b/src/CookieCrumble/src/CookieCrumble/Formatters/JsonElementSnapshotValueFormatter.cs new file mode 100644 index 00000000000..9d050ebd567 --- /dev/null +++ b/src/CookieCrumble/src/CookieCrumble/Formatters/JsonElementSnapshotValueFormatter.cs @@ -0,0 +1,33 @@ +using System.Buffers; +using System.Text.Encodings.Web; +using System.Text.Json; + +namespace CookieCrumble.Formatters; + +internal sealed class JsonElementSnapshotValueFormatter : SnapshotValueFormatter +{ + private readonly JsonSerializerOptions _options = + new(JsonSerializerDefaults.Web) + { + WriteIndented = true, + Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping, + }; + + protected override void Format(IBufferWriter snapshot, JsonElement value) + { + var buffer = JsonSerializer.SerializeToUtf8Bytes(value, _options); + var span = snapshot.GetSpan(buffer.Length); + buffer.AsSpan().CopyTo(span); + snapshot.Advance(buffer.Length); + } + + protected override void FormatMarkdown(IBufferWriter snapshot, JsonElement value) + { + snapshot.Append("```json"); + snapshot.AppendLine(); + Format(snapshot, value); + snapshot.AppendLine(); + snapshot.Append("```"); + snapshot.AppendLine(); + } +} \ No newline at end of file diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/QueryPlanSnapshotValueFormatter.cs b/src/CookieCrumble/src/CookieCrumble/Formatters/QueryPlanSnapshotValueFormatter.cs index 29772d89ea2..dec395902ac 100644 --- a/src/CookieCrumble/src/CookieCrumble/Formatters/QueryPlanSnapshotValueFormatter.cs +++ b/src/CookieCrumble/src/CookieCrumble/Formatters/QueryPlanSnapshotValueFormatter.cs @@ -1,7 +1,6 @@ #if NET7_0_OR_GREATER using System.Buffers; using HotChocolate.Fusion.Execution.Nodes; -using HotChocolate.Fusion.Planning; namespace CookieCrumble.Formatters; diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/SchemaSnapshotValueFormatter.cs b/src/CookieCrumble/src/CookieCrumble/Formatters/SchemaSnapshotValueFormatter.cs index 28e867a7385..3e537666d65 100644 --- a/src/CookieCrumble/src/CookieCrumble/Formatters/SchemaSnapshotValueFormatter.cs +++ b/src/CookieCrumble/src/CookieCrumble/Formatters/SchemaSnapshotValueFormatter.cs @@ -7,4 +7,14 @@ internal sealed class SchemaSnapshotValueFormatter : SnapshotValueFormatter snapshot, ISchema value) => snapshot.Append(value.ToString()); + + protected override void FormatMarkdown(IBufferWriter snapshot, ISchema value) + { + snapshot.Append("```graphql"); + snapshot.AppendLine(); + Format(snapshot, value); + snapshot.AppendLine(); + snapshot.Append("```"); + snapshot.AppendLine(); + } } diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/SnapshotValueFormatter.cs b/src/CookieCrumble/src/CookieCrumble/Formatters/SnapshotValueFormatter.cs index 635e7c1cb95..042ed27dfb2 100644 --- a/src/CookieCrumble/src/CookieCrumble/Formatters/SnapshotValueFormatter.cs +++ b/src/CookieCrumble/src/CookieCrumble/Formatters/SnapshotValueFormatter.cs @@ -5,7 +5,9 @@ namespace CookieCrumble.Formatters; /// /// Formats a snapshot segment value for the snapshot file. /// -public abstract class SnapshotValueFormatter : ISnapshotValueFormatter +public abstract class SnapshotValueFormatter + : ISnapshotValueFormatter + , IMarkdownSnapshotValueFormatter { public bool CanHandle(object? value) => value is TValue casted && CanHandle(casted); @@ -15,6 +17,19 @@ protected virtual bool CanHandle(TValue? value) public void Format(IBufferWriter snapshot, object? value) => Format(snapshot, (TValue)value!); + + public void FormatMarkdown(IBufferWriter snapshot, object? value) + => FormatMarkdown(snapshot, (TValue)value!); protected abstract void Format(IBufferWriter snapshot, TValue value); + + protected virtual void FormatMarkdown(IBufferWriter snapshot, TValue value) + { + snapshot.Append("```text"); + snapshot.AppendLine(); + Format(snapshot, value); + snapshot.AppendLine(); + snapshot.Append("```"); + snapshot.AppendLine(); + } } diff --git a/src/CookieCrumble/src/CookieCrumble/LocalFactDiscoverer.cs b/src/CookieCrumble/src/CookieCrumble/LocalFactDiscoverer.cs index a28a6419d82..5e6b3e5b587 100644 --- a/src/CookieCrumble/src/CookieCrumble/LocalFactDiscoverer.cs +++ b/src/CookieCrumble/src/CookieCrumble/LocalFactDiscoverer.cs @@ -1,4 +1,3 @@ -using System; using Xunit; using Xunit.Abstractions; using Xunit.Sdk; diff --git a/src/CookieCrumble/src/CookieCrumble/Snapshot.cs b/src/CookieCrumble/src/CookieCrumble/Snapshot.cs index c32f038a691..8e53f855caf 100644 --- a/src/CookieCrumble/src/CookieCrumble/Snapshot.cs +++ b/src/CookieCrumble/src/CookieCrumble/Snapshot.cs @@ -7,10 +7,11 @@ using System.Text; using CookieCrumble.Formatters; using DiffPlex.DiffBuilder; -using DiffPlex.DiffBuilder.Model; +using HotChocolate.Utilities; using Xunit; using static System.Collections.Immutable.ImmutableStack; using static System.IO.Path; +using ChangeType = DiffPlex.DiffBuilder.Model.ChangeType; namespace CookieCrumble; @@ -29,6 +30,7 @@ public class Snapshot new SchemaErrorSnapshotValueFormatter(), new HttpResponseSnapshotValueFormatter(), new OperationResultSnapshotValueFormatter(), + new JsonElementSnapshotValueFormatter(), #if NET7_0_OR_GREATER new QueryPlanSnapshotValueFormatter(), #endif @@ -36,13 +38,16 @@ public class Snapshot private static readonly JsonSnapshotValueFormatter _defaultFormatter = new(); private readonly List _segments = []; + private readonly string _title; private readonly string _fileName; private string _extension; private string? _postFix; public Snapshot(string? postFix = null, string? extension = null) { - _fileName = CreateFileName(); + var frames = new StackTrace(true).GetFrames(); + _title = CreateMarkdownTitle(frames); + _fileName = CreateFileName(frames); _postFix = postFix; _extension = extension ?? ".snap"; } @@ -137,6 +142,12 @@ public static void TryRegisterFormatter( } } + public Snapshot Clear() + { + _segments.Clear(); + return this; + } + public Snapshot Add( object? value, string? name = null, @@ -246,6 +257,43 @@ public void Match() } } } + + public void MatchMarkdown() + { + var writer = new ArrayBufferWriter(); + + writer.Append($"# {_title}"); + writer.AppendLine(); + writer.AppendLine(); + + WriteMarkdownSegments(writer); + + var snapshotFile = Combine(CreateSnapshotDirectoryName(), CreateMarkdownSnapshotFileName()); + + if (!File.Exists(snapshotFile)) + { + EnsureDirectoryExists(snapshotFile); + using var stream = File.Create(snapshotFile); + stream.Write(writer.WrittenSpan); + } + else + { + var mismatchFile = Combine(CreateMismatchDirectoryName(), CreateMarkdownSnapshotFileName()); + EnsureFileDoesNotExist(mismatchFile); + var before = File.ReadAllText(snapshotFile); + var after = _encoding.GetString(writer.WrittenSpan); + + if (MatchSnapshot(before, after, false, out var diff)) + { + return; + } + + EnsureDirectoryExists(mismatchFile); + using var stream = File.Create(mismatchFile); + stream.Write(writer.WrittenSpan); + throw new Xunit.Sdk.XunitException(diff); + } + } public void MatchInline(string expected) { @@ -296,6 +344,56 @@ private void WriteSegments(IBufferWriter writer) next = true; } } + + private void WriteMarkdownSegments(IBufferWriter writer) + { + if (_segments.Count == 1) + { + var segment = _segments[0]; + + if (segment.Formatter is IMarkdownSnapshotValueFormatter markdownFormatter) + { + markdownFormatter.FormatMarkdown(writer, segment.Value); + } + else + { + writer.Append("```text"); + writer.AppendLine(); + segment.Formatter.Format(writer, segment.Value); + writer.AppendLine(); + writer.Append("```"); + writer.AppendLine(); + } + return; + } + + var i = 0; + foreach (var segment in _segments) + { + i++; + writer.Append( + string.IsNullOrEmpty(segment.Name) + ? $"## Result {i}" + : $"## {segment.Name}"); + writer.AppendLine(); + writer.AppendLine(); + + if (segment.Formatter is IMarkdownSnapshotValueFormatter markdownFormatter) + { + markdownFormatter.FormatMarkdown(writer, segment.Value); + } + else + { + writer.Append("```text"); + writer.AppendLine(); + segment.Formatter.Format(writer, segment.Value); + writer.AppendLine(); + writer.Append("```"); + writer.AppendLine(); + } + writer.AppendLine(); + } + } private static bool MatchSnapshot( string before, @@ -390,13 +488,24 @@ private string CreateSnapshotFileName() ? string.Concat(fileName, _extension) : string.Concat(fileName, "_", _postFix, _extension); } + + private string CreateMarkdownSnapshotFileName() + { + var extension = _extension.EqualsOrdinal(".snap") ? ".md" : _extension; + + var fileName = GetFileNameWithoutExtension(_fileName); + + return string.IsNullOrEmpty(_postFix) + ? string.Concat(fileName, extension) + : string.Concat(fileName, "_", _postFix, extension); + } - private static string CreateFileName() + private static string CreateFileName(StackFrame[] frames) { - foreach (var stackFrame in new StackTrace(true).GetFrames()) + foreach (var stackFrame in frames) { - var method = stackFrame?.GetMethod(); - var fileName = stackFrame?.GetFileName(); + var method = stackFrame.GetMethod(); + var fileName = stackFrame.GetFileName(); if (method is not null && !string.IsNullOrEmpty(fileName) && @@ -423,6 +532,39 @@ private static string CreateFileName() "get the snapshot name, then reach this name to your " + "Snapshot.Match method."); } + + private static string CreateMarkdownTitle(StackFrame[] frames) + { + foreach (var stackFrame in frames) + { + var method = stackFrame.GetMethod(); + var fileName = stackFrame.GetFileName(); + + if (method is not null && + !string.IsNullOrEmpty(fileName) && + IsXunitTestMethod(method)) + { + return method.Name; + } + + var asyncMethod = EvaluateAsynchronousMethodBase(method); + + if (asyncMethod is not null && + !string.IsNullOrEmpty(fileName) && + IsXunitTestMethod(asyncMethod)) + { + return asyncMethod.Name; + } + } + + throw new Exception( + "The snapshot full name could not be evaluated. " + + "This error can occur, if you use the snapshot match " + + "within a async test helper child method. To solve this issue, " + + "use the Snapshot.FullName directly in the unit test to " + + "get the snapshot name, then reach this name to your " + + "Snapshot.Match method."); + } private static MethodBase? EvaluateAsynchronousMethodBase(MemberInfo? method) { @@ -461,20 +603,13 @@ private static bool IsFactTestMethod(MemberInfo? method) private static bool IsTheoryTestMethod(MemberInfo? method) => method?.GetCustomAttributes(typeof(TheoryAttribute)).Any() ?? false; - private struct SnapshotSegment + private readonly struct SnapshotSegment(string? name, object? value, ISnapshotValueFormatter formatter) { - public SnapshotSegment(string? name, object? value, ISnapshotValueFormatter formatter) - { - Name = name; - Value = value; - Formatter = formatter; - } - - public string? Name { get; } + public string? Name { get; } = name; - public object? Value { get; } + public object? Value { get; } = value; - public ISnapshotValueFormatter Formatter { get; } + public ISnapshotValueFormatter Formatter { get; } = formatter; } } diff --git a/src/GreenDonut/test/Core.Tests/DataLoaderExtensionsTests.cs b/src/GreenDonut/test/Core.Tests/DataLoaderExtensionsTests.cs index 33aa4fc367b..50f1adc99b7 100644 --- a/src/GreenDonut/test/Core.Tests/DataLoaderExtensionsTests.cs +++ b/src/GreenDonut/test/Core.Tests/DataLoaderExtensionsTests.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Threading.Tasks; using Xunit; diff --git a/src/GreenDonut/test/Core.Tests/DataLoaderOptionsTests.cs b/src/GreenDonut/test/Core.Tests/DataLoaderOptionsTests.cs index 4069dcd5b4f..a5ccbda8694 100644 --- a/src/GreenDonut/test/Core.Tests/DataLoaderOptionsTests.cs +++ b/src/GreenDonut/test/Core.Tests/DataLoaderOptionsTests.cs @@ -1,5 +1,3 @@ -using System; -using Snapshooter.Xunit; using Xunit; namespace GreenDonut; diff --git a/src/GreenDonut/test/Core.Tests/ResultTests.cs b/src/GreenDonut/test/Core.Tests/ResultTests.cs index 054d02a8dc9..02b3206d12f 100644 --- a/src/GreenDonut/test/Core.Tests/ResultTests.cs +++ b/src/GreenDonut/test/Core.Tests/ResultTests.cs @@ -129,15 +129,16 @@ public void EqualsObjectValueEqual() Assert.True(result); } - [Fact(DisplayName = "GetHashCode: Should return 0")] + [Fact(DisplayName = "GetHashCode: Should be consistent")] public void GetHashCodeEmpty() { // arrange // act - Result result = default(string); + Result result1 = default(string); + Result result2 = default(string); // assert - Assert.Equal(0, result.GetHashCode()); + Assert.Equal(result2.GetHashCode(), result1.GetHashCode()); } [Fact(DisplayName = "GetHashCode: Should return a hash code for value")] @@ -147,10 +148,11 @@ public void GetHashCodeValue() var value = "Foo"; // act - Result result = value; + Result result1 = value; + Result result2 = value; // assert - Assert.Equal(value.GetHashCode(), result.GetHashCode()); + Assert.Equal(result2.GetHashCode(), result1.GetHashCode()); } [Fact(DisplayName = "GetHashCode: Should return a hash code for error")] @@ -160,10 +162,11 @@ public void GetHashCodeError() var error = new Exception(); // act - Result result = error; + Result result1 = error; + Result result2 = error; // assert - Assert.Equal(error.GetHashCode(), result.GetHashCode()); + Assert.Equal(result2.GetHashCode(), result1.GetHashCode()); } [Fact(DisplayName = "ImplicitReject: Should return a resolved Result if error is null")] diff --git a/src/GreenDonut/test/Core.Tests/TestHelpers.cs b/src/GreenDonut/test/Core.Tests/TestHelpers.cs index 7067f5e2fad..1437dba27c7 100644 --- a/src/GreenDonut/test/Core.Tests/TestHelpers.cs +++ b/src/GreenDonut/test/Core.Tests/TestHelpers.cs @@ -1,5 +1,4 @@ using System; -using System.Threading.Tasks; namespace GreenDonut; diff --git a/src/HotChocolate/ApolloFederation/src/ApolloFederation/Extensions/ApolloFederationRequestExecutorBuilderExtensions.cs b/src/HotChocolate/ApolloFederation/src/ApolloFederation/Extensions/ApolloFederationRequestExecutorBuilderExtensions.cs index 35008d2dae3..401f4408f6f 100644 --- a/src/HotChocolate/ApolloFederation/src/ApolloFederation/Extensions/ApolloFederationRequestExecutorBuilderExtensions.cs +++ b/src/HotChocolate/ApolloFederation/src/ApolloFederation/Extensions/ApolloFederationRequestExecutorBuilderExtensions.cs @@ -1,5 +1,4 @@ using HotChocolate.ApolloFederation; -using HotChocolate.ApolloFederation.Types; using HotChocolate.Execution.Configuration; using FederationVersion = HotChocolate.ApolloFederation.FederationVersion; diff --git a/src/HotChocolate/ApolloFederation/src/ApolloFederation/Types/Directives/KeyAttribute.cs b/src/HotChocolate/ApolloFederation/src/ApolloFederation/Types/Directives/KeyAttribute.cs index 5b64eeacc86..148bb6cac97 100644 --- a/src/HotChocolate/ApolloFederation/src/ApolloFederation/Types/Directives/KeyAttribute.cs +++ b/src/HotChocolate/ApolloFederation/src/ApolloFederation/Types/Directives/KeyAttribute.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using System.Reflection; using HotChocolate.Types.Descriptors; -using static System.Reflection.MemberTypes; using static HotChocolate.ApolloFederation.FederationContextData; using static HotChocolate.ApolloFederation.ThrowHelper; diff --git a/src/HotChocolate/ApolloFederation/src/ApolloFederation/Types/Directives/PolicyDescriptorExtensions.cs b/src/HotChocolate/ApolloFederation/src/ApolloFederation/Types/Directives/PolicyDescriptorExtensions.cs index 6cb65c656cf..066f0961647 100644 --- a/src/HotChocolate/ApolloFederation/src/ApolloFederation/Types/Directives/PolicyDescriptorExtensions.cs +++ b/src/HotChocolate/ApolloFederation/src/ApolloFederation/Types/Directives/PolicyDescriptorExtensions.cs @@ -46,7 +46,8 @@ public static IEnumTypeDescriptor Policy( } /// - /// Applies @policy directive to indicate that the target element is restricted based on authorization policies that are evaluated in a Rhai script or coprocessor. + /// Applies @policy directive to indicate that the target element is restricted based on + /// authorization policies that are evaluated in a Rhai script or coprocessor. /// /// type Foo @key(fields: "id") { /// id: ID @@ -57,7 +58,7 @@ public static IEnumTypeDescriptor Policy( /// /// The type descriptor on which this directive shall be annotated. /// - /// Required authrorization policies + /// Required authorization policies /// /// Returns the type descriptor. /// @@ -79,7 +80,7 @@ public static IEnumTypeDescriptor Policy( return descriptor; } - /// + /// public static IInterfaceFieldDescriptor Policy( this IInterfaceFieldDescriptor descriptor, IReadOnlyList policies) @@ -95,7 +96,7 @@ public static IInterfaceFieldDescriptor Policy( return descriptor; } - /// + /// public static IInterfaceFieldDescriptor Policy( this IInterfaceFieldDescriptor descriptor, IReadOnlyList policies) @@ -111,7 +112,7 @@ public static IInterfaceFieldDescriptor Policy( return descriptor; } - /// + /// public static IInterfaceTypeDescriptor Policy( this IInterfaceTypeDescriptor descriptor, IReadOnlyList policies) @@ -127,7 +128,7 @@ public static IInterfaceTypeDescriptor Policy( return descriptor; } - /// + /// public static IInterfaceTypeDescriptor Policy( this IInterfaceTypeDescriptor descriptor, IReadOnlyList policies) @@ -143,7 +144,7 @@ public static IInterfaceTypeDescriptor Policy( return descriptor; } - /// + /// public static IObjectFieldDescriptor Policy( this IObjectFieldDescriptor descriptor, IReadOnlyList policies) @@ -159,7 +160,7 @@ public static IObjectFieldDescriptor Policy( return descriptor; } - /// + /// public static IObjectFieldDescriptor Policy( this IObjectFieldDescriptor descriptor, IReadOnlyList policies) @@ -175,7 +176,7 @@ public static IObjectFieldDescriptor Policy( return descriptor; } - /// + /// public static IObjectTypeDescriptor Policy( this IObjectTypeDescriptor descriptor, IReadOnlyList policies) @@ -191,7 +192,7 @@ public static IObjectTypeDescriptor Policy( return descriptor; } - /// + /// public static IObjectTypeDescriptor Policy( this IObjectTypeDescriptor descriptor, IReadOnlyList policies) diff --git a/src/HotChocolate/AspNetCore/src/AspNetCore/GraphQLRequestException.cs b/src/HotChocolate/AspNetCore/src/AspNetCore/GraphQLRequestException.cs index 5ed3d18a7ca..09f0a52df23 100644 --- a/src/HotChocolate/AspNetCore/src/AspNetCore/GraphQLRequestException.cs +++ b/src/HotChocolate/AspNetCore/src/AspNetCore/GraphQLRequestException.cs @@ -1,5 +1,3 @@ -using System.Runtime.Serialization; - namespace HotChocolate.AspNetCore; public class GraphQLRequestException : GraphQLException diff --git a/src/HotChocolate/AspNetCore/src/AspNetCore/ParameterExpressionBuilders/HttpContextParameterExpressionBuilder.cs b/src/HotChocolate/AspNetCore/src/AspNetCore/ParameterExpressionBuilders/HttpContextParameterExpressionBuilder.cs index 73a4cf1b40a..cb108dafc5b 100644 --- a/src/HotChocolate/AspNetCore/src/AspNetCore/ParameterExpressionBuilders/HttpContextParameterExpressionBuilder.cs +++ b/src/HotChocolate/AspNetCore/src/AspNetCore/ParameterExpressionBuilders/HttpContextParameterExpressionBuilder.cs @@ -1,10 +1,7 @@ -using System.Linq.Expressions; using System.Reflection; using HotChocolate.Internal; using HotChocolate.Resolvers; -using HotChocolate.Resolvers.Expressions; using HotChocolate.Resolvers.Expressions.Parameters; -using HotChocolate.Utilities; using Microsoft.AspNetCore.Http; namespace HotChocolate.AspNetCore.ParameterExpressionBuilders; diff --git a/src/HotChocolate/AspNetCore/src/Transport.Abstractions/OperationResult.cs b/src/HotChocolate/AspNetCore/src/Transport.Abstractions/OperationResult.cs index b3f1fb4a3c9..6902f802778 100644 --- a/src/HotChocolate/AspNetCore/src/Transport.Abstractions/OperationResult.cs +++ b/src/HotChocolate/AspNetCore/src/Transport.Abstractions/OperationResult.cs @@ -1,5 +1,4 @@ using System; -using System.Buffers; using System.Text.Json; using static HotChocolate.Transport.Properties.TransportAbstractionResoucrces; using static HotChocolate.Transport.Serialization.Utf8GraphQLResultProperties; diff --git a/src/HotChocolate/AspNetCore/src/Transport.Sockets.Client/Protocols/GraphQLOverWebSocket/GraphQLOverWebSocketProtocolHandler.cs b/src/HotChocolate/AspNetCore/src/Transport.Sockets.Client/Protocols/GraphQLOverWebSocket/GraphQLOverWebSocketProtocolHandler.cs index 1df609b4bef..89f539d3313 100644 --- a/src/HotChocolate/AspNetCore/src/Transport.Sockets.Client/Protocols/GraphQLOverWebSocket/GraphQLOverWebSocketProtocolHandler.cs +++ b/src/HotChocolate/AspNetCore/src/Transport.Sockets.Client/Protocols/GraphQLOverWebSocket/GraphQLOverWebSocketProtocolHandler.cs @@ -4,7 +4,6 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; -using HotChocolate.Transport.Serialization; using HotChocolate.Transport.Sockets.Client.Protocols.GraphQLOverWebSocket.Messages; namespace HotChocolate.Transport.Sockets.Client.Protocols.GraphQLOverWebSocket; diff --git a/src/HotChocolate/AspNetCore/src/Transport.Sockets.Client/Protocols/GraphQLOverWebSocket/Messages/CompleteMessage.cs b/src/HotChocolate/AspNetCore/src/Transport.Sockets.Client/Protocols/GraphQLOverWebSocket/Messages/CompleteMessage.cs index 9e2a884e483..71140114356 100644 --- a/src/HotChocolate/AspNetCore/src/Transport.Sockets.Client/Protocols/GraphQLOverWebSocket/Messages/CompleteMessage.cs +++ b/src/HotChocolate/AspNetCore/src/Transport.Sockets.Client/Protocols/GraphQLOverWebSocket/Messages/CompleteMessage.cs @@ -1,5 +1,4 @@ using System.Text.Json; -using HotChocolate.Transport.Serialization; namespace HotChocolate.Transport.Sockets.Client.Protocols.GraphQLOverWebSocket.Messages; diff --git a/src/HotChocolate/AspNetCore/src/Transport.Sockets.Client/Protocols/GraphQLOverWebSocket/Messages/ErrorMessage.cs b/src/HotChocolate/AspNetCore/src/Transport.Sockets.Client/Protocols/GraphQLOverWebSocket/Messages/ErrorMessage.cs index b6ca579e394..2f7e9c74541 100644 --- a/src/HotChocolate/AspNetCore/src/Transport.Sockets.Client/Protocols/GraphQLOverWebSocket/Messages/ErrorMessage.cs +++ b/src/HotChocolate/AspNetCore/src/Transport.Sockets.Client/Protocols/GraphQLOverWebSocket/Messages/ErrorMessage.cs @@ -1,5 +1,4 @@ using System.Text.Json; -using HotChocolate.Transport.Serialization; namespace HotChocolate.Transport.Sockets.Client.Protocols.GraphQLOverWebSocket.Messages; diff --git a/src/HotChocolate/AspNetCore/src/Transport.Sockets.Client/Protocols/GraphQLOverWebSocket/Messages/NextMessage.cs b/src/HotChocolate/AspNetCore/src/Transport.Sockets.Client/Protocols/GraphQLOverWebSocket/Messages/NextMessage.cs index 93d5a6dc011..f85f63e50da 100644 --- a/src/HotChocolate/AspNetCore/src/Transport.Sockets.Client/Protocols/GraphQLOverWebSocket/Messages/NextMessage.cs +++ b/src/HotChocolate/AspNetCore/src/Transport.Sockets.Client/Protocols/GraphQLOverWebSocket/Messages/NextMessage.cs @@ -1,6 +1,5 @@ using System; using System.Text.Json; -using HotChocolate.Transport.Serialization; namespace HotChocolate.Transport.Sockets.Client.Protocols.GraphQLOverWebSocket.Messages; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/RootCommandTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/RootCommandTests.cs index 4db4af273d7..f1d52a4ad8e 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/RootCommandTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/RootCommandTests.cs @@ -1,8 +1,6 @@ -using System.CommandLine; using System.CommandLine.IO; using System.CommandLine.Parsing; using CookieCrumble; -using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.Hosting; using Moq; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/SchemaCommandTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/SchemaCommandTests.cs index b2877e9e15d..1b43f9c1b03 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/SchemaCommandTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/SchemaCommandTests.cs @@ -1,8 +1,6 @@ -using System.CommandLine; using System.CommandLine.IO; using System.CommandLine.Parsing; using CookieCrumble; -using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.Hosting; using Moq; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/SchemaExportCommandTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/SchemaExportCommandTests.cs index 788dbd6dab5..e5edde05eef 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/SchemaExportCommandTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/SchemaExportCommandTests.cs @@ -2,7 +2,6 @@ using System.CommandLine.IO; using System.CommandLine.Parsing; using CookieCrumble; -using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Moq; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests.Utilities/ServerTestBase.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests.Utilities/ServerTestBase.cs index 1658532380a..892eb526b18 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests.Utilities/ServerTestBase.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests.Utilities/ServerTestBase.cs @@ -1,5 +1,4 @@ using HotChocolate.AspNetCore.Extensions; -using HotChocolate.AspNetCore.Serialization; using HotChocolate.Execution; using HotChocolate.StarWars; using HotChocolate.Tests; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests.Utilities/Subscriptions/Apollo/WebSocketExtensions.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests.Utilities/Subscriptions/Apollo/WebSocketExtensions.cs index a6d68b03f5f..d058e91c3e3 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests.Utilities/Subscriptions/Apollo/WebSocketExtensions.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests.Utilities/Subscriptions/Apollo/WebSocketExtensions.cs @@ -4,7 +4,6 @@ using HotChocolate.AspNetCore.Subscriptions.Protocols.Apollo; using HotChocolate.Language; using HotChocolate.Language.Utilities; -using HotChocolate.Transport; using HotChocolate.Transport.Sockets; using HotChocolate.Utilities; using Newtonsoft.Json; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests.Utilities/Subscriptions/GraphQLOverWebSocket/WebSocketExtensions.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests.Utilities/Subscriptions/GraphQLOverWebSocket/WebSocketExtensions.cs index 516c82ba3f0..bde55acc997 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests.Utilities/Subscriptions/GraphQLOverWebSocket/WebSocketExtensions.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests.Utilities/Subscriptions/GraphQLOverWebSocket/WebSocketExtensions.cs @@ -2,7 +2,6 @@ using System.Text; using HotChocolate.AspNetCore.Subscriptions.Protocols; using HotChocolate.AspNetCore.Subscriptions.Protocols.GraphQLOverWebSocket; -using HotChocolate.Transport; using HotChocolate.Transport.Sockets; using HotChocolate.Utilities; using static HotChocolate.Language.Utf8GraphQLRequestParser; diff --git a/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/OperationRequestTests.cs b/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/OperationRequestTests.cs index d736d4bd9cd..4476ec14ab1 100644 --- a/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/OperationRequestTests.cs +++ b/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/OperationRequestTests.cs @@ -1,7 +1,5 @@ using System.Text; using System.Text.Json; -using CookieCrumble; -using Moq; namespace HotChocolate.Transport.Http.Tests; diff --git a/src/HotChocolate/AspNetCore/test/Transport.Sockets.Client.Tests/GraphQLOverWebSocket/WebSocketClientProtocolTests.cs b/src/HotChocolate/AspNetCore/test/Transport.Sockets.Client.Tests/GraphQLOverWebSocket/WebSocketClientProtocolTests.cs index fa7dd3351db..bebc31569a4 100644 --- a/src/HotChocolate/AspNetCore/test/Transport.Sockets.Client.Tests/GraphQLOverWebSocket/WebSocketClientProtocolTests.cs +++ b/src/HotChocolate/AspNetCore/test/Transport.Sockets.Client.Tests/GraphQLOverWebSocket/WebSocketClientProtocolTests.cs @@ -5,6 +5,7 @@ using HotChocolate.AspNetCore.Subscriptions.Protocols; using HotChocolate.AspNetCore.Tests.Utilities; using HotChocolate.AspNetCore.Tests.Utilities.Subscriptions.GraphQLOverWebSocket; +using HotChocolate.Tests; using HotChocolate.Transport.Sockets.Client; using Microsoft.Extensions.DependencyInjection; using Xunit.Abstractions; @@ -13,84 +14,81 @@ namespace HotChocolate.Transport.Sockets.GraphQLOverWebSocket; -public class WebSocketClientProtocolTests : SubscriptionTestBase +public class WebSocketClientProtocolTests(TestServerFactory serverFactory, ITestOutputHelper output) + : SubscriptionTestBase(serverFactory) { - private readonly ITestOutputHelper _output; - - public WebSocketClientProtocolTests(TestServerFactory serverFactory, ITestOutputHelper output) - : base(serverFactory) - { - _output = output; - } - [Fact] public Task Send_Connect_Accept() - => TryTest(async ct => - { - // arrange - using var testServer = CreateStarWarsServer(output: _output); - var webSocketClient = CreateWebSocketClient(testServer); - using var webSocket = await webSocketClient.ConnectAsync(SubscriptionUri, ct); - - // act - await SocketClient.ConnectAsync(webSocket, ct); + => SnapshotTest + .Create( + async (snapshot, ct) => + { + // arrange + using var testServer = CreateStarWarsServer(output: output); + var webSocketClient = CreateWebSocketClient(testServer); + using var webSocket = await webSocketClient.ConnectAsync(SubscriptionUri, ct); + + // act + await SocketClient.ConnectAsync(webSocket, ct); + + // assert + // no error + }) + .RunAsync(); - // assert - // no error - }); - - [Fact(Skip = "This test is flaky. We need to fix it.")] + [Fact] public Task Subscribe_ReceiveDataOnMutation() - { - var snapshot = new Snapshot(); - - return TryTest(async ct => - { - // arrange - var subscriptionRequest = new OperationRequest( - "subscription { onReview(episode: NEW_HOPE) { stars } }"); - - var mutationRequest = new ClientQueryRequest - { - Query = @" - mutation { - createReview(episode: NEW_HOPE review: { - commentary: ""foo"" - stars: 5 - }) { - stars - } - }", - }; - - using var testServer = CreateStarWarsServer(output: _output); - var webSocketClient = CreateWebSocketClient(testServer); - using var webSocket = await webSocketClient.ConnectAsync(SubscriptionUri, ct); - - var client = await SocketClient.ConnectAsync(webSocket, ct); - string? result = null; - - // act - // ... subscribe - using var socketResult = await client.ExecuteAsync(subscriptionRequest, ct); - - // ... trigger event - await testServer.SendPostRequestAsync(mutationRequest); - - // receive event result on the stream - await foreach (var operationResult in - socketResult.ReadResultsAsync().WithCancellation(ct)) - { - result = operationResult.Data.ToString(); - operationResult.Dispose(); - break; - } - - // assert - await snapshot.Add(result).MatchAsync(ct); - }); - } - + => SnapshotTest + .Create( + async (snapshot, ct) => + { + // arrange + var subscriptionRequest = new OperationRequest( + "subscription { onReview(episode: NEW_HOPE) { stars } }"); + + var mutationRequest = new ClientQueryRequest + { + Query = + """ + mutation { + createReview(episode: NEW_HOPE review: { + commentary: "foo" + stars: 5 + }) { + stars + } + } + """, + }; + + using var testServer = CreateStarWarsServer(output: output); + var webSocketClient = CreateWebSocketClient(testServer); + using var webSocket = await webSocketClient.ConnectAsync(SubscriptionUri, ct); + + var client = await SocketClient.ConnectAsync(webSocket, ct); + string? result = null; + + // act + // ... subscribe + using var socketResult = await client.ExecuteAsync(subscriptionRequest, ct); + + // ... trigger event + await testServer.SendPostRequestAsync(mutationRequest); + + // receive event result on the stream + await foreach (var operationResult in + socketResult.ReadResultsAsync().WithCancellation(ct)) + { + result = operationResult.Data.ToString(); + operationResult.Dispose(); + break; + } + + // assert + snapshot.Add(result); + }) + .MatchAsync(); + [Fact] public Task Subscribe_Disconnect() { @@ -100,7 +98,7 @@ public Task Subscribe_Disconnect() var subscriptionRequest = new OperationRequest( "subscription { onReview(episode: NEW_HOPE) { stars } }"); - using var testServer = CreateStarWarsServer(output: _output); + using var testServer = CreateStarWarsServer(output: output); var webSocketClient = CreateWebSocketClient(testServer); using var webSocket = await webSocketClient.ConnectAsync(SubscriptionUri, ct); var client = await SocketClient.ConnectAsync(webSocket, ct); @@ -132,7 +130,7 @@ public Task Send_Subscribe_SyntaxError() var subscriptionRequest = new OperationRequest( "subscription { onReview(episode: NEW_HOPE) { 123 } }"); - using var testServer = CreateStarWarsServer(output: _output); + using var testServer = CreateStarWarsServer(output: output); var webSocketClient = CreateWebSocketClient(testServer); using var webSocket = await webSocketClient.ConnectAsync(SubscriptionUri, ct); var client = await SocketClient.ConnectAsync(webSocket, ct); @@ -164,7 +162,7 @@ public Task Send_Subscribe_ValidationError() var subscriptionRequest = new OperationRequest( "subscription { onReview(episode: NEW_HOPE) { ____ } }"); - using var testServer = CreateStarWarsServer(output: _output); + using var testServer = CreateStarWarsServer(output: output); var webSocketClient = CreateWebSocketClient(testServer); using var webSocket = await webSocketClient.ConnectAsync(SubscriptionUri, ct); var client = await SocketClient.ConnectAsync(webSocket, ct); @@ -195,7 +193,7 @@ public Task Send_Connect_With_Auth_Accept() configureServices: s => s .AddGraphQLServer() .AddSocketSessionInterceptor(_ => interceptor), - output: _output); + output: output); var webSocketClient = CreateWebSocketClient(testServer); using var webSocket = await webSocketClient.ConnectAsync(SubscriptionUri, ct); @@ -216,7 +214,7 @@ public Task Send_Connect_With_Auth_Reject() configureServices: s => s .AddGraphQLServer() .AddSocketSessionInterceptor(_ => interceptor), - output: _output); + output: output); var webSocketClient = CreateWebSocketClient(testServer); using var webSocket = await webSocketClient.ConnectAsync(SubscriptionUri, ct); diff --git a/src/HotChocolate/AspNetCore/test/Transport.Sockets.Client.Tests/GraphQLOverWebSocket/__snapshots__/WebSocketClientProtocolTests.Send_Subscribe_ValidationError.snap b/src/HotChocolate/AspNetCore/test/Transport.Sockets.Client.Tests/GraphQLOverWebSocket/__snapshots__/WebSocketClientProtocolTests.Send_Subscribe_ValidationError.snap index 974cc5fd8fd..ced00cf60e3 100644 --- a/src/HotChocolate/AspNetCore/test/Transport.Sockets.Client.Tests/GraphQLOverWebSocket/__snapshots__/WebSocketClientProtocolTests.Send_Subscribe_ValidationError.snap +++ b/src/HotChocolate/AspNetCore/test/Transport.Sockets.Client.Tests/GraphQLOverWebSocket/__snapshots__/WebSocketClientProtocolTests.Send_Subscribe_ValidationError.snap @@ -1,23 +1,20 @@ ---------------- -{ - "ValueKind": "Array" -} ---------------- - ---------------- -{ - "ValueKind": "Array" -} ---------------- - ---------------- -{ - "ValueKind": "Array" -} ---------------- - ---------------- -{ - "ValueKind": "Array" -} ---------------- +[ + { + "message": "The field `____` does not exist on the type `Review`.", + "locations": [ + { + "line": 1, + "column": 46 + } + ], + "path": [ + "onReview" + ], + "extensions": { + "type": "Review", + "field": "____", + "responseName": "____", + "specifiedBy": "https://spec.graphql.org/October2021/#sec-Field-Selections-on-Objects-Interfaces-and-Unions-Types" + } + } +] \ No newline at end of file diff --git a/src/HotChocolate/AspNetCore/test/Transport.Sockets.Client.Tests/GraphQLOverWebSocket/__snapshots__/WebSocketClientProtocolTests.Subscribe_ReceiveDataOnMutation.md b/src/HotChocolate/AspNetCore/test/Transport.Sockets.Client.Tests/GraphQLOverWebSocket/__snapshots__/WebSocketClientProtocolTests.Subscribe_ReceiveDataOnMutation.md new file mode 100644 index 00000000000..f29d8a196f6 --- /dev/null +++ b/src/HotChocolate/AspNetCore/test/Transport.Sockets.Client.Tests/GraphQLOverWebSocket/__snapshots__/WebSocketClientProtocolTests.Subscribe_ReceiveDataOnMutation.md @@ -0,0 +1,5 @@ +# Subscribe_ReceiveDataOnMutation + +```text +{"onReview":{"stars":5}} +``` diff --git a/src/HotChocolate/AzureFunctions/src/HotChocolate.AzureFunctions/Extensions/HotChocolateAzureFunctionServiceCollectionExtensions.cs b/src/HotChocolate/AzureFunctions/src/HotChocolate.AzureFunctions/Extensions/HotChocolateAzureFunctionServiceCollectionExtensions.cs index 5e7eb13f537..215c48c0d89 100644 --- a/src/HotChocolate/AzureFunctions/src/HotChocolate.AzureFunctions/Extensions/HotChocolateAzureFunctionServiceCollectionExtensions.cs +++ b/src/HotChocolate/AzureFunctions/src/HotChocolate.AzureFunctions/Extensions/HotChocolateAzureFunctionServiceCollectionExtensions.cs @@ -3,7 +3,6 @@ using HotChocolate.AspNetCore; using HotChocolate.AzureFunctions; using HotChocolate.Execution.Configuration; -using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.Azure.WebJobs.Host.Config; using Microsoft.Extensions.DependencyInjection.Extensions; diff --git a/src/HotChocolate/AzureFunctions/test/HotChocolate.AzureFunctions.IsolatedProcess.Tests/IsolatedProcessEndToEndTests.cs b/src/HotChocolate/AzureFunctions/test/HotChocolate.AzureFunctions.IsolatedProcess.Tests/IsolatedProcessEndToEndTests.cs index eee73e734d5..d44c966c905 100644 --- a/src/HotChocolate/AzureFunctions/test/HotChocolate.AzureFunctions.IsolatedProcess.Tests/IsolatedProcessEndToEndTests.cs +++ b/src/HotChocolate/AzureFunctions/test/HotChocolate.AzureFunctions.IsolatedProcess.Tests/IsolatedProcessEndToEndTests.cs @@ -1,6 +1,5 @@ using System.IO; using System.Text; -using System.Threading; using System.Threading.Tasks; using HotChocolate.AzureFunctions.IsolatedProcess.Tests.Helpers; using HotChocolate.Types; diff --git a/src/HotChocolate/Caching/src/Caching/CacheControlTypeInterceptor.cs b/src/HotChocolate/Caching/src/Caching/CacheControlTypeInterceptor.cs index 5a8fd899d45..c448709ad85 100644 --- a/src/HotChocolate/Caching/src/Caching/CacheControlTypeInterceptor.cs +++ b/src/HotChocolate/Caching/src/Caching/CacheControlTypeInterceptor.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using HotChocolate.Configuration; diff --git a/src/HotChocolate/Caching/src/Caching/Extensions/CacheControlInterfaceTypeDescriptorExtensions.cs b/src/HotChocolate/Caching/src/Caching/Extensions/CacheControlInterfaceTypeDescriptorExtensions.cs index b5aab675eea..9de257b4202 100644 --- a/src/HotChocolate/Caching/src/Caching/Extensions/CacheControlInterfaceTypeDescriptorExtensions.cs +++ b/src/HotChocolate/Caching/src/Caching/Extensions/CacheControlInterfaceTypeDescriptorExtensions.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Caching; -using HotChocolate.Types; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Caching/src/Caching/Extensions/CacheControlObjectTypeDescriptorExtensions.cs b/src/HotChocolate/Caching/src/Caching/Extensions/CacheControlObjectTypeDescriptorExtensions.cs index 529876251a6..593dfa6fa7c 100644 --- a/src/HotChocolate/Caching/src/Caching/Extensions/CacheControlObjectTypeDescriptorExtensions.cs +++ b/src/HotChocolate/Caching/src/Caching/Extensions/CacheControlObjectTypeDescriptorExtensions.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Caching; -using HotChocolate.Types; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Caching/src/Caching/Extensions/CacheControlUnionTypeDescriptorExtensions.cs b/src/HotChocolate/Caching/src/Caching/Extensions/CacheControlUnionTypeDescriptorExtensions.cs index 1cbdda05f89..c08e96b797c 100644 --- a/src/HotChocolate/Caching/src/Caching/Extensions/CacheControlUnionTypeDescriptorExtensions.cs +++ b/src/HotChocolate/Caching/src/Caching/Extensions/CacheControlUnionTypeDescriptorExtensions.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Caching; -using HotChocolate.Types; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/src/Abstractions/AggregateError.cs b/src/HotChocolate/Core/src/Abstractions/AggregateError.cs index 2c6992ae382..7d5857dd103 100644 --- a/src/HotChocolate/Core/src/Abstractions/AggregateError.cs +++ b/src/HotChocolate/Core/src/Abstractions/AggregateError.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; using System.Linq; -using System.Threading.Tasks; using static HotChocolate.Properties.AbstractionResources; namespace HotChocolate; diff --git a/src/HotChocolate/Core/src/Abstractions/Execution/IQueryRequest.cs b/src/HotChocolate/Core/src/Abstractions/Execution/IQueryRequest.cs index 166f480f808..864709cc510 100644 --- a/src/HotChocolate/Core/src/Abstractions/Execution/IQueryRequest.cs +++ b/src/HotChocolate/Core/src/Abstractions/Execution/IQueryRequest.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using HotChocolate.Language; #nullable enable diff --git a/src/HotChocolate/Core/src/Abstractions/Execution/IResponseStreamFormatter.cs b/src/HotChocolate/Core/src/Abstractions/Execution/IResponseStreamFormatter.cs index 2b2d1deb560..64d94ab76b1 100644 --- a/src/HotChocolate/Core/src/Abstractions/Execution/IResponseStreamFormatter.cs +++ b/src/HotChocolate/Core/src/Abstractions/Execution/IResponseStreamFormatter.cs @@ -1,4 +1,3 @@ -using System.Buffers; using System.IO; using System.Threading; using System.Threading.Tasks; diff --git a/src/HotChocolate/Core/src/Abstractions/NameFormattingHelpers.cs b/src/HotChocolate/Core/src/Abstractions/NameFormattingHelpers.cs index 830103b72c9..f06afaa4ee4 100644 --- a/src/HotChocolate/Core/src/Abstractions/NameFormattingHelpers.cs +++ b/src/HotChocolate/Core/src/Abstractions/NameFormattingHelpers.cs @@ -1,7 +1,6 @@ using System; using System.Buffers; using System.Collections.Generic; -using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; diff --git a/src/HotChocolate/Core/src/Abstractions/Path.cs b/src/HotChocolate/Core/src/Abstractions/Path.cs index 0f154ff9da6..7b91338363e 100644 --- a/src/HotChocolate/Core/src/Abstractions/Path.cs +++ b/src/HotChocolate/Core/src/Abstractions/Path.cs @@ -2,10 +2,7 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Text; -using HotChocolate.Execution; -using HotChocolate.Utilities; namespace HotChocolate; diff --git a/src/HotChocolate/Core/src/Abstractions/UserState.cs b/src/HotChocolate/Core/src/Abstractions/UserState.cs index 090c4ead18a..a52a96db04c 100644 --- a/src/HotChocolate/Core/src/Abstractions/UserState.cs +++ b/src/HotChocolate/Core/src/Abstractions/UserState.cs @@ -1,6 +1,5 @@ using System; using System.Security.Claims; -using System.Security.Cryptography; namespace HotChocolate; diff --git a/src/HotChocolate/Core/src/Authorization/Extensions/HotChocolateAuthorizeRequestExecutorBuilder.cs b/src/HotChocolate/Core/src/Authorization/Extensions/HotChocolateAuthorizeRequestExecutorBuilder.cs index a6c424102a6..20c8aaea839 100644 --- a/src/HotChocolate/Core/src/Authorization/Extensions/HotChocolateAuthorizeRequestExecutorBuilder.cs +++ b/src/HotChocolate/Core/src/Authorization/Extensions/HotChocolateAuthorizeRequestExecutorBuilder.cs @@ -3,7 +3,6 @@ using HotChocolate.Authorization; using HotChocolate.Execution; using HotChocolate.Execution.Configuration; -using HotChocolate.Resolvers; using Microsoft.Extensions.DependencyInjection.Extensions; namespace Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/src/Execution/Caching/DefaultDocumentCache.cs b/src/HotChocolate/Core/src/Execution/Caching/DefaultDocumentCache.cs index ba2d64da961..4cbb1b61a18 100644 --- a/src/HotChocolate/Core/src/Execution/Caching/DefaultDocumentCache.cs +++ b/src/HotChocolate/Core/src/Execution/Caching/DefaultDocumentCache.cs @@ -1,4 +1,3 @@ -using System; using System.Diagnostics.CodeAnalysis; using HotChocolate.Language; using HotChocolate.Utilities; diff --git a/src/HotChocolate/Core/src/Execution/DependencyInjection/Factories/OperationContextFactory.cs b/src/HotChocolate/Core/src/Execution/DependencyInjection/Factories/OperationContextFactory.cs index 6cdf2e4ea25..8ab63a36f5d 100644 --- a/src/HotChocolate/Core/src/Execution/DependencyInjection/Factories/OperationContextFactory.cs +++ b/src/HotChocolate/Core/src/Execution/DependencyInjection/Factories/OperationContextFactory.cs @@ -1,7 +1,4 @@ using System; -using Microsoft.Extensions.ObjectPool; -using HotChocolate; -using HotChocolate.Execution; using HotChocolate.Execution.DependencyInjection; using HotChocolate.Execution.Processing; using HotChocolate.Execution.Processing.Tasks; diff --git a/src/HotChocolate/Core/src/Execution/DependencyInjection/RequestExecutorBuilderExtensions.InputParser.cs b/src/HotChocolate/Core/src/Execution/DependencyInjection/RequestExecutorBuilderExtensions.InputParser.cs index 3a8cba782eb..8250d58d702 100644 --- a/src/HotChocolate/Core/src/Execution/DependencyInjection/RequestExecutorBuilderExtensions.InputParser.cs +++ b/src/HotChocolate/Core/src/Execution/DependencyInjection/RequestExecutorBuilderExtensions.InputParser.cs @@ -1,9 +1,7 @@ using System; using HotChocolate.Execution.Configuration; -using HotChocolate.Execution.Processing; using HotChocolate.Types; using HotChocolate.Utilities; -using Microsoft.Extensions.DependencyInjection.Extensions; // ReSharper disable once CheckNamespace namespace Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/src/Execution/DependencyInjection/RequestExecutorBuilderExtensions.TypeDiscovery.cs b/src/HotChocolate/Core/src/Execution/DependencyInjection/RequestExecutorBuilderExtensions.TypeDiscovery.cs index 0df9732e2d4..5c2241d69a4 100644 --- a/src/HotChocolate/Core/src/Execution/DependencyInjection/RequestExecutorBuilderExtensions.TypeDiscovery.cs +++ b/src/HotChocolate/Core/src/Execution/DependencyInjection/RequestExecutorBuilderExtensions.TypeDiscovery.cs @@ -1,11 +1,9 @@ using System; using System.Collections.Generic; -using GreenDonut; using HotChocolate; using HotChocolate.Execution.Configuration; using HotChocolate.Internal; using HotChocolate.Types.Descriptors; -using Microsoft.Extensions.DependencyInjection.Extensions; // ReSharper disable once CheckNamespace namespace Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/src/Execution/Pipeline/OperationCacheMiddleware.cs b/src/HotChocolate/Core/src/Execution/Pipeline/OperationCacheMiddleware.cs index 033fae16bad..d2fea0f49fd 100644 --- a/src/HotChocolate/Core/src/Execution/Pipeline/OperationCacheMiddleware.cs +++ b/src/HotChocolate/Core/src/Execution/Pipeline/OperationCacheMiddleware.cs @@ -2,7 +2,6 @@ using System.Threading.Tasks; using HotChocolate.Execution.Caching; using HotChocolate.Execution.Instrumentation; -using static HotChocolate.Execution.Pipeline.PipelineTools; namespace HotChocolate.Execution.Pipeline; diff --git a/src/HotChocolate/Core/src/Execution/Processing/MiddlewareContext.Pooling.cs b/src/HotChocolate/Core/src/Execution/Processing/MiddlewareContext.Pooling.cs index 8d61ddb6f17..11028180f53 100644 --- a/src/HotChocolate/Core/src/Execution/Processing/MiddlewareContext.Pooling.cs +++ b/src/HotChocolate/Core/src/Execution/Processing/MiddlewareContext.Pooling.cs @@ -1,6 +1,4 @@ using System.Collections.Immutable; -using HotChocolate.Types; -using Microsoft.Extensions.DependencyInjection; namespace HotChocolate.Execution.Processing; diff --git a/src/HotChocolate/Core/src/Execution/Processing/MiddlewareContext.Selection.cs b/src/HotChocolate/Core/src/Execution/Processing/MiddlewareContext.Selection.cs index 3173643c706..2126e682c23 100644 --- a/src/HotChocolate/Core/src/Execution/Processing/MiddlewareContext.Selection.cs +++ b/src/HotChocolate/Core/src/Execution/Processing/MiddlewareContext.Selection.cs @@ -1,6 +1,4 @@ -using System; using System.Diagnostics.CodeAnalysis; -using HotChocolate.Language; using HotChocolate.Resolvers; using HotChocolate.Types; diff --git a/src/HotChocolate/Core/src/Execution/Processing/OperationContext.Execution.cs b/src/HotChocolate/Core/src/Execution/Processing/OperationContext.Execution.cs index 94b6bcd862a..cc1f116cbbf 100644 --- a/src/HotChocolate/Core/src/Execution/Processing/OperationContext.Execution.cs +++ b/src/HotChocolate/Core/src/Execution/Processing/OperationContext.Execution.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Immutable; using HotChocolate.Execution.Processing.Tasks; diff --git a/src/HotChocolate/Core/src/Execution/Processing/OperationResolverHelper.cs b/src/HotChocolate/Core/src/Execution/Processing/OperationResolverHelper.cs index d95b8cd661a..ba7e3067b5c 100644 --- a/src/HotChocolate/Core/src/Execution/Processing/OperationResolverHelper.cs +++ b/src/HotChocolate/Core/src/Execution/Processing/OperationResolverHelper.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; using HotChocolate.Language; using HotChocolate.Utilities; using static HotChocolate.Execution.ThrowHelper; diff --git a/src/HotChocolate/Core/src/Execution/Processing/Result/ListResult.cs b/src/HotChocolate/Core/src/Execution/Processing/Result/ListResult.cs index f70d7d52635..1d6d2b0fdf2 100644 --- a/src/HotChocolate/Core/src/Execution/Processing/Result/ListResult.cs +++ b/src/HotChocolate/Core/src/Execution/Processing/Result/ListResult.cs @@ -1,7 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace HotChocolate.Execution.Processing; diff --git a/src/HotChocolate/Core/src/Execution/Processing/RootValueResolver.cs b/src/HotChocolate/Core/src/Execution/Processing/RootValueResolver.cs index e34bfafc69c..ac707ee7443 100644 --- a/src/HotChocolate/Core/src/Execution/Processing/RootValueResolver.cs +++ b/src/HotChocolate/Core/src/Execution/Processing/RootValueResolver.cs @@ -1,5 +1,4 @@ using System; -using HotChocolate.Language; using HotChocolate.Types; using HotChocolate.Utilities; using static HotChocolate.Execution.Properties.Resources; diff --git a/src/HotChocolate/Core/src/Execution/Processing/Selection.cs b/src/HotChocolate/Core/src/Execution/Processing/Selection.cs index 650c8fa7f00..a4abbee3d1e 100644 --- a/src/HotChocolate/Core/src/Execution/Processing/Selection.cs +++ b/src/HotChocolate/Core/src/Execution/Processing/Selection.cs @@ -2,7 +2,6 @@ using System.Diagnostics; using System.Linq; using HotChocolate.Execution.Properties; -using HotChocolate.Execution.Serialization; using HotChocolate.Language; using HotChocolate.Resolvers; using HotChocolate.Types; diff --git a/src/HotChocolate/Core/src/Execution/Processing/SelectionSet.cs b/src/HotChocolate/Core/src/Execution/Processing/SelectionSet.cs index 159dff2dfa0..fedf4ed3d40 100644 --- a/src/HotChocolate/Core/src/Execution/Processing/SelectionSet.cs +++ b/src/HotChocolate/Core/src/Execution/Processing/SelectionSet.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Runtime.InteropServices; -using HotChocolate.Language; namespace HotChocolate.Execution.Processing; diff --git a/src/HotChocolate/Core/src/Execution/Processing/Tasks/StreamHelper.cs b/src/HotChocolate/Core/src/Execution/Processing/Tasks/StreamHelper.cs index de20a496a94..3656540879c 100644 --- a/src/HotChocolate/Core/src/Execution/Processing/Tasks/StreamHelper.cs +++ b/src/HotChocolate/Core/src/Execution/Processing/Tasks/StreamHelper.cs @@ -4,7 +4,6 @@ using System.Linq; using System.Linq.Expressions; using System.Reflection; -using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; diff --git a/src/HotChocolate/Core/src/Execution/RequestExecutor.cs b/src/HotChocolate/Core/src/Execution/RequestExecutor.cs index 401af29f977..f19220fc334 100644 --- a/src/HotChocolate/Core/src/Execution/RequestExecutor.cs +++ b/src/HotChocolate/Core/src/Execution/RequestExecutor.cs @@ -5,7 +5,6 @@ using System.Threading; using System.Threading.Tasks; using HotChocolate.Execution.Batching; -using HotChocolate.Resolvers; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.ObjectPool; diff --git a/src/HotChocolate/Core/src/Execution/Serialization/RawJsonValue.cs b/src/HotChocolate/Core/src/Execution/Serialization/RawJsonValue.cs index 564cccb4d08..eab93ba04e9 100644 --- a/src/HotChocolate/Core/src/Execution/Serialization/RawJsonValue.cs +++ b/src/HotChocolate/Core/src/Execution/Serialization/RawJsonValue.cs @@ -1,5 +1,4 @@ using System; -using System.Text.Json; namespace HotChocolate.Execution.Serialization; diff --git a/src/HotChocolate/Core/src/Fetching/DefaultDataLoaderRegistry.cs b/src/HotChocolate/Core/src/Fetching/DefaultDataLoaderRegistry.cs index 93860ee8f9e..970e3bcfed2 100644 --- a/src/HotChocolate/Core/src/Fetching/DefaultDataLoaderRegistry.cs +++ b/src/HotChocolate/Core/src/Fetching/DefaultDataLoaderRegistry.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Concurrent; -using System.Linq; using GreenDonut; using static HotChocolate.Fetching.Properties.FetchingResources; diff --git a/src/HotChocolate/Core/src/Subscriptions.Postgres/PostgresTopic.cs b/src/HotChocolate/Core/src/Subscriptions.Postgres/PostgresTopic.cs index 31f1ac78e8c..1fa0aafed03 100644 --- a/src/HotChocolate/Core/src/Subscriptions.Postgres/PostgresTopic.cs +++ b/src/HotChocolate/Core/src/Subscriptions.Postgres/PostgresTopic.cs @@ -1,5 +1,4 @@ using HotChocolate.Subscriptions.Diagnostics; -using static HotChocolate.Subscriptions.Postgres.PostgresResources; namespace HotChocolate.Subscriptions.Postgres; diff --git a/src/HotChocolate/Core/src/Subscriptions/CannotSubscribeException.cs b/src/HotChocolate/Core/src/Subscriptions/CannotSubscribeException.cs index 71b27f061da..c72fd44ba2f 100644 --- a/src/HotChocolate/Core/src/Subscriptions/CannotSubscribeException.cs +++ b/src/HotChocolate/Core/src/Subscriptions/CannotSubscribeException.cs @@ -1,5 +1,3 @@ -using System.Runtime.Serialization; - namespace HotChocolate.Subscriptions; /// diff --git a/src/HotChocolate/Core/src/Subscriptions/DefaultJsonMessageSerializer.cs b/src/HotChocolate/Core/src/Subscriptions/DefaultJsonMessageSerializer.cs index 3a490f723e8..87dac230bdd 100644 --- a/src/HotChocolate/Core/src/Subscriptions/DefaultJsonMessageSerializer.cs +++ b/src/HotChocolate/Core/src/Subscriptions/DefaultJsonMessageSerializer.cs @@ -1,4 +1,3 @@ -using System.Reflection.Metadata.Ecma335; using System.Text.Json; using System.Text.Json.Serialization; using static HotChocolate.Subscriptions.Properties.Resources; diff --git a/src/HotChocolate/Core/src/Types.CursorPagination/IEdgeType.cs b/src/HotChocolate/Core/src/Types.CursorPagination/IEdgeType.cs index d70c84b52fd..204c1d1d0bf 100644 --- a/src/HotChocolate/Core/src/Types.CursorPagination/IEdgeType.cs +++ b/src/HotChocolate/Core/src/Types.CursorPagination/IEdgeType.cs @@ -1,5 +1,3 @@ -using System; - namespace HotChocolate.Types.Pagination; /// diff --git a/src/HotChocolate/Core/src/Types.Errors/DependencyInjection/MutationRequestExecutorBuilderExtensions.cs b/src/HotChocolate/Core/src/Types.Errors/DependencyInjection/ErrorRequestExecutorBuilderExtensions.cs similarity index 72% rename from src/HotChocolate/Core/src/Types.Errors/DependencyInjection/MutationRequestExecutorBuilderExtensions.cs rename to src/HotChocolate/Core/src/Types.Errors/DependencyInjection/ErrorRequestExecutorBuilderExtensions.cs index e0323c9d400..d76ffb03ed2 100644 --- a/src/HotChocolate/Core/src/Types.Errors/DependencyInjection/MutationRequestExecutorBuilderExtensions.cs +++ b/src/HotChocolate/Core/src/Types.Errors/DependencyInjection/ErrorRequestExecutorBuilderExtensions.cs @@ -1,13 +1,22 @@ +using HotChocolate; using HotChocolate.Execution.Configuration; namespace Microsoft.Extensions.DependencyInjection; /// -/// Provides global configuration methods for mutation conventions to the -/// . +/// Provides global configuration methods for error conventions to the . /// -public static class MutationRequestExecutorBuilderExtensions +public static class ErrorRequestExecutorBuilderExtensions { + /// + /// Adds a type discoverer that can handle types implementing . + /// + /// + /// The GraphQL configuration builder. + /// + /// + /// Returns the GraphQL configuration builder for configuration chaining. + /// public static IRequestExecutorBuilder AddFieldResultTypeDiscovery( this IRequestExecutorBuilder builder) => builder.AddTypeDiscoveryHandler(c => new FieldResultTypeDiscoveryHandler(c.TypeInspector)); @@ -21,13 +30,13 @@ public static IRequestExecutorBuilder AddFieldResultTypeDiscovery( /// /// /// - /// The request executor builder + /// The GraphQL configuration builder. /// /// /// The type that is used as the common interface /// /// - /// The schema builder + /// Returns the GraphQL configuration builder for configuration chaining. /// public static IRequestExecutorBuilder AddErrorInterfaceType( this IRequestExecutorBuilder builder) @@ -42,13 +51,13 @@ public static IRequestExecutorBuilder AddErrorInterfaceType( /// /// /// - /// The request executor builder + /// The GraphQL configuration builder. /// /// /// The type that is used as the common interface /// /// - /// The request executor builder + /// Returns the GraphQL configuration builder for configuration chaining. /// public static IRequestExecutorBuilder AddErrorInterfaceType( this IRequestExecutorBuilder builder, @@ -56,26 +65,26 @@ public static IRequestExecutorBuilder AddErrorInterfaceType( builder.ConfigureSchema(x => x.AddErrorInterfaceType(type)); /// - /// Adds a new error registrar. + /// Adds a new error registrar for mutation errors. /// /// - /// The request executor builder + /// The GraphQL configuration builder. /// /// /// The mutation error registrar. /// /// - /// The request executor builder + /// Returns the GraphQL configuration builder for configuration chaining. /// public static IRequestExecutorBuilder AddMutationErrorConfiguration(this IRequestExecutorBuilder builder) where T : MutationErrorConfiguration, new() => builder.TryAddTypeInterceptor(new MutationErrorTypeInterceptor(new T())); /// - /// Adds a new error registrar. + /// Adds a new error registrar for mutation errors. /// /// - /// The request executor builder + /// The GraphQL configuration builder. /// /// /// The mutation error configuration. @@ -84,7 +93,7 @@ public static IRequestExecutorBuilder AddMutationErrorConfiguration(this IReq /// The mutation error registrar. /// /// - /// The request executor builder + /// Returns the GraphQL configuration builder for configuration chaining. /// public static IRequestExecutorBuilder AddMutationErrorConfiguration( this IRequestExecutorBuilder builder, diff --git a/src/HotChocolate/Core/src/Types.Errors/ErrorAttribute.cs b/src/HotChocolate/Core/src/Types.Errors/ErrorAttribute.cs index 964bce5deae..72e07674344 100644 --- a/src/HotChocolate/Core/src/Types.Errors/ErrorAttribute.cs +++ b/src/HotChocolate/Core/src/Types.Errors/ErrorAttribute.cs @@ -2,164 +2,10 @@ namespace HotChocolate.Types; /// /// The registers a middleware that will catch all exceptions of -/// type on mutations. +/// type on mutations and queries. /// -/// By annotating the attribute the response type -/// of the annotated mutation resolver, will be automatically extended by a field of type -/// errors:[Error!]. This field will return errors that are caught by the middleware. -/// All the other fields on this type will be rewritten to nullable types. In case of a error -/// these fields will be set to null. -/// -/// There are three different ways to map exceptions to GraphQL errors. -/// +/// By annotating the attribute the response type of the annotated resolver, will be automatically extended. /// -/// -/// The idea of the error middleware is to keep the resolver clean of any error handling code -/// and use exceptions to signal a error state. The HotChocolate schema is automatically -/// rewritten into a common error handling pattern. -/// Learn More -/// -/// -/// -/// There are three different ways to map exceptions to GraphQL errors. -/// -/// -/// -/// -/// Catching exceptions directly -/// -/// If is a exception, the exception is automatically -/// mapped into a GraphQL error and the middleware will catch this exception -/// -/// public class Mutation -/// { -/// [Error(typeof(SomeSpecificDomainError))] -/// [Error(typeof(SomeOtherError))] -/// public CreateUserPayload CreateUser(CreateUserInput input) -/// { -/// // ... -/// } -/// } -/// -/// public record CreateUserInput(string UserName); -/// -/// public record CreateUserPayload(User User); -/// -/// This will generate the following schema -/// -/// type Mutation { -/// createUser(input: CreateUserInput!): CreateUserPayload! -/// } -/// -/// input CreateUserInput { -/// userName: String! -/// } -/// -/// type CreateUserPayload { -/// user: User -/// errors: [CreateUserError!] -/// } -/// -/// type User { -/// username: String -/// } -/// -/// interface Error { -/// message: String! -/// } -/// -/// type SomeSpecificDomainError implements Error { -/// message: String! -/// } -/// -/// type SomeOtherDomainError implements Error { -/// message: String! -/// } -/// -/// union CreateUserError = SomeSpecificDomainError | SomeOtherDomainError -/// -/// -/// -/// -/// Map Exceptions with a factory method -/// -/// -/// If there should be any translation between exception and error, you can defined a class -/// with factory methods. These factory methods receive a and return -/// a object which will be used as the representation of the error -/// -/// -/// A factory method has to be `public static` and the name of the method has to be -/// `CreateErrorFrom`. There should only be one parameter of type and -/// it can return a arbitrary class/struct/record that will be used as the representation -/// of the error. -/// -/// -/// public class MyCustomError -/// { -/// public static MyCustomError CreateErrorFrom(DomainExceptionA ex) -/// { -/// return new MyCustomError(); -/// } -/// -/// public static MyCustomError CreateErrorFrom(DomainExceptionB ex) -/// { -/// return new MyCustomError(); -/// } -/// -/// public string Message => "My custom error Message"; -/// } -/// -/// public class Mutation -/// { -/// [Error(typeof(MyCustomError))] -/// public CreateUserPayload CreateUser(CreateUserInput input) -/// { -/// // ... -/// } -/// } -/// -/// public record CreateUserInput(string UserName); -/// -/// public record CreateUserPayload(User User); -/// -/// -/// -/// -/// Map exceptions with a constructors -/// -/// -/// As a alternative to mapping exceptions with factory methods, you can also map the exception -/// in the constructor of the object that should be used to represent the error in the schema. -/// -/// -/// public class MyCustomError -/// { -/// public MyCustomError(MyCustomDomainException exception) -/// { -/// Message = exception.Message; -/// } -/// -/// public MyCustomError(MyCustomDomainException2 exception) -/// { -/// Message = exception.Message; -/// } -/// -/// public string Message { get; } -/// } -/// -/// public class Mutation -/// { -/// [Error(typeof(MyCustomError))] -/// public CreateUserPayload CreateUser(CreateUserInput input) -/// { -/// // ... -/// } -/// } -/// -/// -/// -/// public class ErrorAttribute : ObjectFieldDescriptorAttribute { /// @@ -189,172 +35,10 @@ protected override void OnConfigure( #if NET6_0_OR_GREATER /// /// The registers a middleware that will catch all exceptions of -/// type on mutations. +/// type on mutations and queries. /// -/// By annotating the attribute the response type -/// of the annotated mutation resolver, will be automatically extended by a field of type -/// errors:[Error!]. This field will return errors that are caught by the middleware. -/// All the other fields on this type will be rewritten to nullable types. In case of a error -/// these fields will be set to null. -/// -/// There are three different ways to map exceptions to GraphQL errors. -/// +/// By annotating the attribute the response type of the annotated resolver, will be automatically extended. /// -/// -/// The idea of the error middleware is to keep the resolver clean of any error handling code -/// and use exceptions to signal a error state. The HotChocolate schema is automatically -/// rewritten into a common error handling pattern. -/// Learn More -/// -/// -/// -/// There are three different ways to map exceptions to GraphQL errors. -/// -/// -/// -/// -/// Catching exceptions directly -/// -/// If is a exception, the exception is automatically -/// mapped into a GraphQL error and the middleware will catch this exception -/// -/// ] -/// [Error] -/// public CreateUserPayload CreateUser(CreateUserInput input) -/// { -/// // ... -/// } -/// } -/// -/// public record CreateUserInput(string UserName); -/// -/// public record CreateUserPayload(User User); -/// ]]> -/// -/// This will generate the following schema -/// -/// -/// -/// -/// -/// -/// Map Exceptions with a factory method -/// -/// -/// If there should be any translation between exception and error, you can defined a class -/// with factory methods. These factory methods receive a and return -/// a object which will be used as the representation of the error -/// -/// -/// A factory method has to be `public static` and the name of the method has to be -/// `CreateErrorFrom`. There should only be one parameter of type and -/// it can return a arbitrary class/struct/record that will be used as the representation -/// of the error. -/// -/// -/// "My custom error Message"; -/// } -/// -/// public class Mutation -/// { -/// [Error] -/// public CreateUserPayload CreateUser(CreateUserInput input) -/// { -/// // ... -/// } -/// } -/// -/// public record CreateUserInput(string UserName); -/// -/// public record CreateUserPayload(User User); -/// ]]> -/// -/// -/// -/// -/// Map exceptions with a constructors -/// -/// -/// As a alternative to mapping exceptions with factory methods, you can also map the exception -/// in the constructor of the object that should be used to represent the error in the schema. -/// -/// -/// ] -/// public CreateUserPayload CreateUser(CreateUserInput input) -/// { -/// // ... -/// } -/// } -/// ]]> -/// -/// -/// -/// public sealed class ErrorAttribute : ErrorAttribute { /// diff --git a/src/HotChocolate/Core/src/Types.Errors/ErrorContextDataKeys.cs b/src/HotChocolate/Core/src/Types.Errors/ErrorContextDataKeys.cs index 1dd4d6b848d..9f913eca584 100644 --- a/src/HotChocolate/Core/src/Types.Errors/ErrorContextDataKeys.cs +++ b/src/HotChocolate/Core/src/Types.Errors/ErrorContextDataKeys.cs @@ -5,22 +5,22 @@ internal static class ErrorContextDataKeys /// /// Stores the definition of the errors on the context data /// - public static readonly string ErrorDefinitions = "HotChocolate.Types.Errors.ErrorDefinitions"; + public const string ErrorDefinitions = "HotChocolate.Types.Errors.ErrorDefinitions"; /// /// Stores the errors on the Scoped context for the middleware /// - public static readonly string Errors = "HotChocolate.Types.Errors.Errors"; + public const string Errors = "HotChocolate.Types.Errors.Errors"; /// /// Defines if a type is a error type /// - public static readonly string IsErrorType = "HotChocolate.Types.Errors.IsErrorType"; + public const string IsErrorType = "HotChocolate.Types.Errors.IsErrorType"; /// /// Marks the common error type of the schema /// - public static readonly string ErrorType = "HotChocolate.Errors.ErrorType"; + public const string ErrorType = "HotChocolate.Errors.ErrorType"; /// /// Signals that error conventions are enabled. diff --git a/src/HotChocolate/Core/src/Types.Errors/ErrorFactoryCompiler.cs b/src/HotChocolate/Core/src/Types.Errors/ErrorFactoryCompiler.cs index da6800112ee..eb7f166f9a2 100644 --- a/src/HotChocolate/Core/src/Types.Errors/ErrorFactoryCompiler.cs +++ b/src/HotChocolate/Core/src/Types.Errors/ErrorFactoryCompiler.cs @@ -1,5 +1,4 @@ using System.Diagnostics.CodeAnalysis; -using System.Linq; using System.Linq.Expressions; using static System.Reflection.BindingFlags; diff --git a/src/HotChocolate/Core/src/Types.Errors/ErrorObjectType.cs b/src/HotChocolate/Core/src/Types.Errors/ErrorObjectType.cs index d02196b38e9..179e25ef42b 100644 --- a/src/HotChocolate/Core/src/Types.Errors/ErrorObjectType.cs +++ b/src/HotChocolate/Core/src/Types.Errors/ErrorObjectType.cs @@ -1,5 +1,3 @@ -using System.Linq; - namespace HotChocolate.Types; internal sealed class ErrorObjectType : ObjectType diff --git a/src/HotChocolate/Core/src/Types.Errors/ErrorTypeHelper.cs b/src/HotChocolate/Core/src/Types.Errors/ErrorTypeHelper.cs index f245e500164..abf523e7474 100644 --- a/src/HotChocolate/Core/src/Types.Errors/ErrorTypeHelper.cs +++ b/src/HotChocolate/Core/src/Types.Errors/ErrorTypeHelper.cs @@ -1,6 +1,5 @@ using static HotChocolate.Types.ErrorContextDataKeys; - namespace HotChocolate.Types; internal sealed class ErrorTypeHelper diff --git a/src/HotChocolate/Core/src/Types.Errors/ExceptionObjectType.cs b/src/HotChocolate/Core/src/Types.Errors/ExceptionObjectType.cs index b28c30387ee..4985c9c5c3b 100644 --- a/src/HotChocolate/Core/src/Types.Errors/ExceptionObjectType.cs +++ b/src/HotChocolate/Core/src/Types.Errors/ExceptionObjectType.cs @@ -22,11 +22,8 @@ private static string GetNameFromException() var name = typeof(T).Name; const string exceptionSuffix = nameof(Exception); - if (name.EndsWith(exceptionSuffix)) - { - return $"{name.Substring(0, name.Length - exceptionSuffix.Length)}Error"; - } - - return name; + return name.EndsWith(exceptionSuffix) + ? $"{name.Substring(0, name.Length - exceptionSuffix.Length)}Error" + : name; } } diff --git a/src/HotChocolate/Core/src/Types.Errors/Extensions/ErrorObjectFieldDescriptorExtensions.cs b/src/HotChocolate/Core/src/Types.Errors/Extensions/ErrorObjectFieldDescriptorExtensions.cs index 47980653d2f..1752b2cac05 100644 --- a/src/HotChocolate/Core/src/Types.Errors/Extensions/ErrorObjectFieldDescriptorExtensions.cs +++ b/src/HotChocolate/Core/src/Types.Errors/Extensions/ErrorObjectFieldDescriptorExtensions.cs @@ -6,348 +6,22 @@ namespace HotChocolate.Types; public static class ErrorObjectFieldDescriptorExtensions { /// - /// The .Error<TError>() extension method registers a middleware that will catch - /// all exceptions of type on mutations. + /// The .Error<TError>() extension method registers a middleware that will catch + /// all exceptions of type on mutations and queries. /// - /// By applying the error extension to a mutation field the - /// response type of the annotated resolver, will be automatically extended by a field of - /// type errors:[Error!]. This field will return errors that are caught by the - /// middleware. All the other fields on this type will be rewritten to nullable types. - /// In case of a error these fields will be set to null. - /// - /// There are three different ways to map exceptions to GraphQL errors. - /// + /// By applying the error extension to a fields the response type of the annotated resolver, + /// will be automatically extended. /// - /// - /// The idea of the error middleware is to keep the resolver clean of any error handling - /// code and use exceptions to signal a error state. The HotChocolate schema is - /// automatically rewritten into a common error handling pattern. - /// - /// Learn More - /// - /// - /// - /// - /// There are three different ways to map exceptions to GraphQL errors. - /// - /// - /// - /// - /// Catching exceptions directly - /// - /// If is a exception, the exception is automatically - /// mapped into a GraphQL error and the middleware will catch this exception - /// - /// public class Mutation - /// { - /// public CreateUserPayload CreateUser(CreateUserInput input) - /// { - /// // ... - /// } - /// } - /// public class MutationType : ObjectType<Mutation> - /// { - /// protected override Configure(IObjectTypeDescriptor<Mutation> descriptor) - /// { - /// descriptor - /// .Field(x =>; x.CreateUserAsync(default) - /// .Error<SomeSpecificDomainError>() - /// .Error<SomeOtherError>(); - /// } - /// } - /// - /// This will generate the following schema - /// - /// type Mutation { - /// createUser(input: CreateUserInput!): CreateUserPayload! - /// } - /// - /// input CreateUserInput { - /// userName: String! - /// } - /// - /// type CreateUserPayload { - /// user: User - /// errors: [CreateUserError!] - /// } - /// - /// type User { - /// username: String - /// } - /// - /// interface Error { - /// message: String! - /// } - /// - /// type SomeSpecificDomainError implements Error { - /// message: String! - /// } - /// - /// type SomeOtherDomainError implements Error { - /// message: String! - /// } - /// - /// union CreateUserError = SomeSpecificDomainError | SomeOtherDomainError - /// - /// - /// - /// - /// Map Exceptions with a factory method - /// - /// - /// If there should be any translation between exception and error, you can defined a class - /// with factory methods. These factory methods receive a and return - /// a object which will be used as the representation of the error - /// - /// - /// A factory method has to be `public static` and the name of the method has to be - /// `CreateErrorFrom`. There should only be one parameter of type - /// and it can return a arbitrary class/struct/record that will be used as the - /// representation of the error. - /// - /// - /// public class MyCustomError - /// { - /// public static MyCustomError CreateErrorFrom(DomainExceptionA ex) - /// { - /// return new MyCustomError(); - /// } - /// - /// public static MyCustomError CreateErrorFrom(DomainExceptionB ex) - /// { - /// return new MyCustomError(); - /// } - /// - /// public string Message => "My custom error Message"; - /// } - /// - /// public class MutationType : ObjectType<Mutation> - /// { - /// protected override Configure(IObjectTypeDescriptor<Mutation> descriptor) - /// { - /// descriptor - /// .Field(x =>; x.CreateUserAsync(default) - /// .Error<MyCustomError>(); - /// } - /// } - /// - /// - /// - /// - /// Map exceptions with a constructors - /// - /// - /// As a alternative to mapping exceptions with factory methods, you can also map the - /// exception in the constructor of the object that should be used to represent the - /// error in the schema. - /// - /// - /// public class MyCustomError - /// { - /// public MyCustomError(MyCustomDomainException exception) - /// { - /// Message = exception.Message; - /// } - /// - /// public MyCustomError(MyCustomDomainException2 exception) - /// { - /// Message = exception.Message; - /// } - /// - /// public string Message { get; } - /// } - /// - /// public class MutationType : ObjectType<Mutation> - /// { - /// protected override Configure(IObjectTypeDescriptor<Mutation> descriptor) - /// { - /// descriptor - /// .Field(x =>; x.CreateUserAsync(default) - /// .Error<MyCustomError>(); - /// } - /// } - /// - /// - /// - /// - /// The descriptor of the field - /// - /// The type of the exception, the class with factory methods or the error with an exception - /// as the argument. See the examples in . - /// public static IObjectFieldDescriptor Error(this IObjectFieldDescriptor descriptor) => Error(descriptor, typeof(TError)); /// /// The .Error<TError>() extension method registers a middleware that will catch - /// all exceptions of on mutations. + /// all exceptions of on mutations and queries. /// - /// By applying the error extension to a mutation field the - /// response type of the annotated resolver, will be automatically extended by a field of - /// type errors:[Error!]. This field will return errors that are caught by the - /// middleware. All the other fields on this type will be rewritten to nullable types. - /// In case of a error these fields will be set to null. - /// - /// There are three different ways to map exceptions to GraphQL errors. - /// + /// By applying the error extension to a fields the response type of the annotated resolver, + /// will be automatically extended. /// - /// - /// The idea of the error middleware is to keep the resolver clean of any error handling - /// code and use exceptions to signal a error state. The HotChocolate schema is - /// automatically rewritten into a common error handling pattern. - /// - /// Learn More - /// - /// - /// - /// - /// There are three different ways to map exceptions to GraphQL errors. - /// - /// - /// - /// - /// Catching exceptions directly - /// - /// If is a exception, the exception is automatically - /// mapped into a GraphQL error and the middleware will catch this exception - /// - /// public class Mutation - /// { - /// public CreateUserPayload CreateUser(CreateUserInput input) - /// { - /// // ... - /// } - /// } - /// public class MutationType : ObjectType<Mutation> - /// { - /// protected override Configure(IObjectTypeDescriptor<Mutation> descriptor) - /// { - /// descriptor - /// .Field(x =>; x.CreateUserAsync(default) - /// .Error(typeof(SomeSpecificDomainError)) - /// .Error(typeof(SomeOtherError)); - /// } - /// } - /// - /// This will generate the following schema - /// - /// type Mutation { - /// createUser(input: CreateUserInput!): CreateUserPayload! - /// } - /// - /// input CreateUserInput { - /// userName: String! - /// } - /// - /// type CreateUserPayload { - /// user: User - /// errors: [CreateUserError!] - /// } - /// - /// type User { - /// username: String - /// } - /// - /// interface Error { - /// message: String! - /// } - /// - /// type SomeSpecificDomainError implements Error { - /// message: String! - /// } - /// - /// type SomeOtherDomainError implements Error { - /// message: String! - /// } - /// - /// union CreateUserError = SomeSpecificDomainError | SomeOtherDomainError - /// - /// - /// - /// - /// Map Exceptions with a factory method - /// - /// - /// If there should be any translation between exception and error, you can defined a class - /// with factory methods. These factory methods receive a and return - /// a object which will be used as the representation of the error - /// - /// - /// A factory method has to be `public static` and the name of the method has to be - /// `CreateErrorFrom`. There should only be one parameter of type and - /// it can return a arbitrary class/struct/record that will be used as the representation - /// of the error. - /// - /// - /// public class MyCustomError - /// { - /// public static MyCustomError CreateErrorFrom(DomainExceptionA ex) - /// { - /// return new MyCustomError(); - /// } - /// - /// public static MyCustomError CreateErrorFrom(DomainExceptionB ex) - /// { - /// return new MyCustomError(); - /// } - /// - /// public string Message => "My custom error Message"; - /// } - /// - /// public class MutationType : ObjectType<Mutation> - /// { - /// protected override Configure(IObjectTypeDescriptor<Mutation> descriptor) - /// { - /// descriptor - /// .Field(x =>; x.CreateUserAsync(default) - /// .Error(typeof(MyCustomError)); - /// } - /// } - /// - /// - /// - /// - /// Map exceptions with a constructors - /// - /// - /// As a alternative to mapping exceptions with factory methods, you can also map the - /// exception in the constructor of the object that should be used to represent the - /// error in the schema. - /// - /// - /// public class MyCustomError - /// { - /// public MyCustomError(MyCustomDomainException exception) - /// { - /// Message = exception.Message; - /// } - /// - /// public MyCustomError(MyCustomDomainException2 exception) - /// { - /// Message = exception.Message; - /// } - /// - /// public string Message { get; } - /// } - /// - /// public class MutationType : ObjectType<Mutation> - /// { - /// protected override Configure(IObjectTypeDescriptor<Mutation> descriptor) - /// { - /// descriptor - /// .Field(x =>; x.CreateUserAsync(default) - /// .Error(typeof(MyCustomError)); - /// } - /// } - /// - /// - /// - /// - /// The descriptor of the field - /// - /// The type of the exception, the class with factory methods or the error with an exception - /// as the argument. See the examples in . - /// public static IObjectFieldDescriptor Error( this IObjectFieldDescriptor descriptor, Type errorType) diff --git a/src/HotChocolate/Core/src/Types.Mutations/MarkerObjects.cs b/src/HotChocolate/Core/src/Types.Mutations/MarkerObjects.cs index d2626c90b91..9c57ac33eaa 100644 --- a/src/HotChocolate/Core/src/Types.Mutations/MarkerObjects.cs +++ b/src/HotChocolate/Core/src/Types.Mutations/MarkerObjects.cs @@ -1,6 +1,19 @@ namespace HotChocolate.Types; -internal static class MarkerObjects +/// +/// The null success marker is to signal to the execution engine +/// that the result is actually an success result although +/// the result is null. +/// +internal sealed class NullMarker { - public static object Null { get; } = new(); + private NullMarker() + { + // intentionally left empty + } + + /// + /// Gets the null success result marker. + /// + public static NullMarker Instance { get; } = new(); } diff --git a/src/HotChocolate/Core/src/Types.Mutations/MutationConventionMiddleware.cs b/src/HotChocolate/Core/src/Types.Mutations/MutationConventionMiddleware.cs index 035629903a2..319ca3a33f8 100644 --- a/src/HotChocolate/Core/src/Types.Mutations/MutationConventionMiddleware.cs +++ b/src/HotChocolate/Core/src/Types.Mutations/MutationConventionMiddleware.cs @@ -1,5 +1,3 @@ -using System.Linq; - #nullable enable namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/src/Types.Mutations/MutationConventionTypeInterceptor.cs b/src/HotChocolate/Core/src/Types.Mutations/MutationConventionTypeInterceptor.cs index 5f7d7b3d36a..8877436fb3e 100644 --- a/src/HotChocolate/Core/src/Types.Mutations/MutationConventionTypeInterceptor.cs +++ b/src/HotChocolate/Core/src/Types.Mutations/MutationConventionTypeInterceptor.cs @@ -167,7 +167,7 @@ private static void ApplyResultMiddleware(ObjectFieldDefinition mutation) // we will replace null with our null marker object so // that - context.Result ??= MarkerObjects.Null; + context.Result ??= NullMarker.Instance; }, isRepeatable: false, key: MutationResult); @@ -497,7 +497,7 @@ private static ObjectType CreatePayloadType( var parent = ctx.Parent(); if (ReferenceEquals(ErrorMarker.Instance, parent) || - ReferenceEquals(MarkerObjects.Null, parent)) + ReferenceEquals(NullMarker.Instance, parent)) { return null; } diff --git a/src/HotChocolate/Core/src/Types.Mutations/ThrowHelper.cs b/src/HotChocolate/Core/src/Types.Mutations/ThrowHelper.cs index 480d4cc5cf0..34cd901b6e0 100644 --- a/src/HotChocolate/Core/src/Types.Mutations/ThrowHelper.cs +++ b/src/HotChocolate/Core/src/Types.Mutations/ThrowHelper.cs @@ -1,4 +1,3 @@ -using System.Linq; using static HotChocolate.Types.Properties.MutationResources; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/src/Types.Queries/DependencyInjection/QueryRequestExecutorBuilderExtensions.cs b/src/HotChocolate/Core/src/Types.Queries/DependencyInjection/QueryRequestExecutorBuilderExtensions.cs index 72d26d169fa..5d27e37a8b0 100644 --- a/src/HotChocolate/Core/src/Types.Queries/DependencyInjection/QueryRequestExecutorBuilderExtensions.cs +++ b/src/HotChocolate/Core/src/Types.Queries/DependencyInjection/QueryRequestExecutorBuilderExtensions.cs @@ -32,12 +32,10 @@ public static IRequestExecutorBuilder AddQueryConventions( .ConfigureSchema( c => { - // c.ContextData[MutationContextDataKeys.Options] = options; c.ContextData[ErrorContextDataKeys.ErrorConventionEnabled] = true; }) .AddFieldResultTypeDiscovery() .TryAddTypeInterceptor(); - // .ConfigureSchema(c => c.TryAddSchemaDirective(new MutationDirective())); return builder; } diff --git a/src/HotChocolate/Core/src/Types/Configuration/ExtendedTypeRefEqualityComparer.cs b/src/HotChocolate/Core/src/Types/Configuration/ExtendedTypeRefEqualityComparer.cs index ce3c6758b60..ff575cd2b68 100644 --- a/src/HotChocolate/Core/src/Types/Configuration/ExtendedTypeRefEqualityComparer.cs +++ b/src/HotChocolate/Core/src/Types/Configuration/ExtendedTypeRefEqualityComparer.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; using HotChocolate.Internal; using HotChocolate.Types; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Core/src/Types/Configuration/Validation/InputObjectTypeValidationRule.cs b/src/HotChocolate/Core/src/Types/Configuration/Validation/InputObjectTypeValidationRule.cs index e0553e3e3d9..5cdd608e656 100644 --- a/src/HotChocolate/Core/src/Types/Configuration/Validation/InputObjectTypeValidationRule.cs +++ b/src/HotChocolate/Core/src/Types/Configuration/Validation/InputObjectTypeValidationRule.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Linq; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/Core/src/Types/Extensions/SchemaBuilderExtensions.Conventions.cs b/src/HotChocolate/Core/src/Types/Extensions/SchemaBuilderExtensions.Conventions.cs index b4b6d81e6e3..d939b7430ff 100644 --- a/src/HotChocolate/Core/src/Types/Extensions/SchemaBuilderExtensions.Conventions.cs +++ b/src/HotChocolate/Core/src/Types/Extensions/SchemaBuilderExtensions.Conventions.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Linq; using HotChocolate.Properties; -using HotChocolate.Resolvers; using HotChocolate.Types; using HotChocolate.Types.Descriptors; using HotChocolate.Utilities; diff --git a/src/HotChocolate/Core/src/Types/Internal/FieldInitHelper.cs b/src/HotChocolate/Core/src/Types/Internal/FieldInitHelper.cs index c6f72dd4655..9044fa9f7b4 100644 --- a/src/HotChocolate/Core/src/Types/Internal/FieldInitHelper.cs +++ b/src/HotChocolate/Core/src/Types/Internal/FieldInitHelper.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.Linq; using HotChocolate.Configuration; using HotChocolate.Language; @@ -9,7 +8,6 @@ using HotChocolate.Types.Descriptors.Definitions; using HotChocolate.Types.Helpers; using static HotChocolate.Utilities.ErrorHelper; -using IHasName = HotChocolate.Types.IHasName; #nullable enable diff --git a/src/HotChocolate/Core/src/Types/InvalidSchemaCoordinateException.cs b/src/HotChocolate/Core/src/Types/InvalidSchemaCoordinateException.cs index e5a5a3016bd..35e4a68a409 100644 --- a/src/HotChocolate/Core/src/Types/InvalidSchemaCoordinateException.cs +++ b/src/HotChocolate/Core/src/Types/InvalidSchemaCoordinateException.cs @@ -1,5 +1,4 @@ using System; -using System.Runtime.Serialization; #nullable enable diff --git a/src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/ScopedStateParameterExpressionBuilder.cs b/src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/ScopedStateParameterExpressionBuilder.cs index bd09df904a9..1076db98ef0 100644 --- a/src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/ScopedStateParameterExpressionBuilder.cs +++ b/src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/ScopedStateParameterExpressionBuilder.cs @@ -1,5 +1,4 @@ using System; -using System.Linq; using System.Linq.Expressions; using System.Reflection; using HotChocolate.Internal; diff --git a/src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/ServiceParameterExpressionBuilder.cs b/src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/ServiceParameterExpressionBuilder.cs index 15a7ad396cb..ff185b6a17e 100644 --- a/src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/ServiceParameterExpressionBuilder.cs +++ b/src/HotChocolate/Core/src/Types/Resolvers/Expressions/Parameters/ServiceParameterExpressionBuilder.cs @@ -1,7 +1,6 @@ using System.Linq.Expressions; using System.Reflection; using HotChocolate.Internal; -using HotChocolate.Types.Descriptors; #nullable enable diff --git a/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IDirectiveTypeDescriptor.cs b/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IDirectiveTypeDescriptor.cs index 71715f4c948..1f39f630561 100644 --- a/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IDirectiveTypeDescriptor.cs +++ b/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IDirectiveTypeDescriptor.cs @@ -1,5 +1,4 @@ using System; -using System.Linq.Expressions; using HotChocolate.Language; using HotChocolate.Resolvers; using HotChocolate.Types.Descriptors.Definitions; diff --git a/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IEnumTypeDescriptor.cs b/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IEnumTypeDescriptor.cs index dd057f2d19b..d690bde94e8 100644 --- a/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IEnumTypeDescriptor.cs +++ b/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IEnumTypeDescriptor.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using HotChocolate.Language; using HotChocolate.Types.Descriptors.Definitions; diff --git a/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IEnumTypeDescriptor~1.cs b/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IEnumTypeDescriptor~1.cs index 560f1c5e73e..c2bd61e8f11 100644 --- a/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IEnumTypeDescriptor~1.cs +++ b/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IEnumTypeDescriptor~1.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using HotChocolate.Language; using HotChocolate.Types.Descriptors.Definitions; diff --git a/src/HotChocolate/Core/src/Types/Types/Descriptors/Conventions/DescriptorContext.cs b/src/HotChocolate/Core/src/Types/Types/Descriptors/Conventions/DescriptorContext.cs index 0360d5f6a7c..e1b06b257ce 100644 --- a/src/HotChocolate/Core/src/Types/Types/Descriptors/Conventions/DescriptorContext.cs +++ b/src/HotChocolate/Core/src/Types/Types/Descriptors/Conventions/DescriptorContext.cs @@ -1,13 +1,11 @@ using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Text; using HotChocolate.Configuration; using HotChocolate.Internal; using HotChocolate.Language; using HotChocolate.Resolvers; using HotChocolate.Utilities; -using Microsoft.Extensions.ObjectPool; using static HotChocolate.WellKnownContextData; using ThrowHelper = HotChocolate.Utilities.ThrowHelper; diff --git a/src/HotChocolate/Core/src/Types/Types/Descriptors/DescriptorBase~1.cs b/src/HotChocolate/Core/src/Types/Types/Descriptors/DescriptorBase~1.cs index a25b2534f7f..9f0cc38d914 100644 --- a/src/HotChocolate/Core/src/Types/Types/Descriptors/DescriptorBase~1.cs +++ b/src/HotChocolate/Core/src/Types/Types/Descriptors/DescriptorBase~1.cs @@ -1,5 +1,4 @@ using System; -using System.Buffers; using HotChocolate.Configuration; using HotChocolate.Types.Descriptors.Definitions; diff --git a/src/HotChocolate/Core/src/Types/Types/Descriptors/DirectiveTypeDescriptor.cs b/src/HotChocolate/Core/src/Types/Types/Descriptors/DirectiveTypeDescriptor.cs index 367fd607982..28a59575bbc 100644 --- a/src/HotChocolate/Core/src/Types/Types/Descriptors/DirectiveTypeDescriptor.cs +++ b/src/HotChocolate/Core/src/Types/Types/Descriptors/DirectiveTypeDescriptor.cs @@ -1,12 +1,9 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Linq.Expressions; using System.Reflection; -using System.Security.Cryptography; using HotChocolate.Configuration; using HotChocolate.Language; -using HotChocolate.Properties; using HotChocolate.Resolvers; using HotChocolate.Types.Descriptors.Definitions; using HotChocolate.Types.Helpers; diff --git a/src/HotChocolate/Core/src/Types/Types/Descriptors/EnumTypeDescriptor~1.cs b/src/HotChocolate/Core/src/Types/Types/Descriptors/EnumTypeDescriptor~1.cs index 849b4bf4a42..f6b88346108 100644 --- a/src/HotChocolate/Core/src/Types/Types/Descriptors/EnumTypeDescriptor~1.cs +++ b/src/HotChocolate/Core/src/Types/Types/Descriptors/EnumTypeDescriptor~1.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Language; using HotChocolate.Types.Descriptors.Definitions; diff --git a/src/HotChocolate/Core/src/Types/Types/Descriptors/InputObjectTypeDescriptor.cs b/src/HotChocolate/Core/src/Types/Types/Descriptors/InputObjectTypeDescriptor.cs index b05db1db05a..84667fa7f58 100644 --- a/src/HotChocolate/Core/src/Types/Types/Descriptors/InputObjectTypeDescriptor.cs +++ b/src/HotChocolate/Core/src/Types/Types/Descriptors/InputObjectTypeDescriptor.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Reflection; using HotChocolate.Language; using HotChocolate.Types.Descriptors.Definitions; diff --git a/src/HotChocolate/Core/src/Types/Types/Descriptors/TypeReferences/TypeReference.cs b/src/HotChocolate/Core/src/Types/Types/Descriptors/TypeReferences/TypeReference.cs index 7a7fb205796..7a739d1a4b7 100644 --- a/src/HotChocolate/Core/src/Types/Types/Descriptors/TypeReferences/TypeReference.cs +++ b/src/HotChocolate/Core/src/Types/Types/Descriptors/TypeReferences/TypeReference.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Concurrent; using HotChocolate.Internal; using HotChocolate.Language; using HotChocolate.Utilities; diff --git a/src/HotChocolate/Core/src/Types/Types/DirectiveType.cs b/src/HotChocolate/Core/src/Types/Types/DirectiveType.cs index 69a93d4f8d0..7a4dd41a11e 100644 --- a/src/HotChocolate/Core/src/Types/Types/DirectiveType.cs +++ b/src/HotChocolate/Core/src/Types/Types/DirectiveType.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using HotChocolate.Language; using HotChocolate.Resolvers; using HotChocolate.Types.Descriptors.Definitions; diff --git a/src/HotChocolate/Core/src/Types/Types/Directives/CostTypeInterceptor.cs b/src/HotChocolate/Core/src/Types/Types/Directives/CostTypeInterceptor.cs index 4ca7ce8a158..5c538306f8d 100644 --- a/src/HotChocolate/Core/src/Types/Types/Directives/CostTypeInterceptor.cs +++ b/src/HotChocolate/Core/src/Types/Types/Directives/CostTypeInterceptor.cs @@ -1,8 +1,6 @@ using System; -using System.Collections.Generic; using System.Linq; using System.Reflection; -using System.Runtime.CompilerServices; using System.Threading.Tasks; using HotChocolate.Configuration; using HotChocolate.Language; diff --git a/src/HotChocolate/Core/src/Types/Types/Extensions/DirectiveCollectionExtensions.cs b/src/HotChocolate/Core/src/Types/Types/Extensions/DirectiveCollectionExtensions.cs index 71bfc9403f3..ac59de9de47 100644 --- a/src/HotChocolate/Core/src/Types/Types/Extensions/DirectiveCollectionExtensions.cs +++ b/src/HotChocolate/Core/src/Types/Types/Extensions/DirectiveCollectionExtensions.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; -using System.IO; using HotChocolate.Execution; using HotChocolate.Execution.Processing; using HotChocolate.Language; diff --git a/src/HotChocolate/Core/src/Types/Types/Extensions/TypeExtensions.cs b/src/HotChocolate/Core/src/Types/Types/Extensions/TypeExtensions.cs index f7a18829bb0..2e17e6c1f88 100644 --- a/src/HotChocolate/Core/src/Types/Types/Extensions/TypeExtensions.cs +++ b/src/HotChocolate/Core/src/Types/Types/Extensions/TypeExtensions.cs @@ -5,7 +5,6 @@ using HotChocolate.Properties; using HotChocolate.Utilities; using static HotChocolate.Utilities.ThrowHelper; -using ThrowHelper = HotChocolate.Utilities.ThrowHelper; #nullable enable diff --git a/src/HotChocolate/Core/src/Types/Types/InputObjectType~1.cs b/src/HotChocolate/Core/src/Types/Types/InputObjectType~1.cs index d8eb187cf87..3be8009cb77 100644 --- a/src/HotChocolate/Core/src/Types/Types/InputObjectType~1.cs +++ b/src/HotChocolate/Core/src/Types/Types/InputObjectType~1.cs @@ -2,7 +2,6 @@ using HotChocolate.Configuration; using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; -using HotChocolate.Types.Helpers; #nullable enable diff --git a/src/HotChocolate/Core/src/Types/Types/Introspection/__Directive.cs b/src/HotChocolate/Core/src/Types/Types/Introspection/__Directive.cs index 859f9f534e4..df48258fef3 100644 --- a/src/HotChocolate/Core/src/Types/Types/Introspection/__Directive.cs +++ b/src/HotChocolate/Core/src/Types/Types/Introspection/__Directive.cs @@ -1,5 +1,4 @@ #pragma warning disable IDE1006 // Naming Styles -using System.Collections.Generic; using System.Linq; using HotChocolate.Configuration; using HotChocolate.Language; diff --git a/src/HotChocolate/Core/src/Types/Types/NamedTypeExtensionBase.cs b/src/HotChocolate/Core/src/Types/Types/NamedTypeExtensionBase.cs index e7c9658876e..92a23356728 100644 --- a/src/HotChocolate/Core/src/Types/Types/NamedTypeExtensionBase.cs +++ b/src/HotChocolate/Core/src/Types/Types/NamedTypeExtensionBase.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using HotChocolate.Configuration; using HotChocolate.Types.Descriptors.Definitions; diff --git a/src/HotChocolate/Core/src/Types/Types/ObjectType~1.cs b/src/HotChocolate/Core/src/Types/Types/ObjectType~1.cs index 442204f3d42..b79fa9459a7 100644 --- a/src/HotChocolate/Core/src/Types/Types/ObjectType~1.cs +++ b/src/HotChocolate/Core/src/Types/Types/ObjectType~1.cs @@ -2,7 +2,6 @@ using HotChocolate.Configuration; using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; -using HotChocolate.Types.Helpers; #nullable enable diff --git a/src/HotChocolate/Core/src/Types/Types/Relay/Descriptors/NodeDefinition.cs b/src/HotChocolate/Core/src/Types/Types/Relay/Descriptors/NodeDefinition.cs index 5d25d59194d..b7d43c92750 100644 --- a/src/HotChocolate/Core/src/Types/Types/Relay/Descriptors/NodeDefinition.cs +++ b/src/HotChocolate/Core/src/Types/Types/Relay/Descriptors/NodeDefinition.cs @@ -1,6 +1,5 @@ using System; using System.Reflection; -using HotChocolate.Resolvers; using HotChocolate.Types.Descriptors.Definitions; #nullable enable diff --git a/src/HotChocolate/Core/src/Types/Types/UnionType~1.cs b/src/HotChocolate/Core/src/Types/Types/UnionType~1.cs index 0c852953a22..edb5a234704 100644 --- a/src/HotChocolate/Core/src/Types/Types/UnionType~1.cs +++ b/src/HotChocolate/Core/src/Types/Types/UnionType~1.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using HotChocolate.Configuration; using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; diff --git a/src/HotChocolate/Core/src/Types/Utilities/Serialization/InputObjectConstructorResolver.cs b/src/HotChocolate/Core/src/Types/Utilities/Serialization/InputObjectConstructorResolver.cs index dfe70b0b304..8317240af65 100644 --- a/src/HotChocolate/Core/src/Types/Utilities/Serialization/InputObjectConstructorResolver.cs +++ b/src/HotChocolate/Core/src/Types/Utilities/Serialization/InputObjectConstructorResolver.cs @@ -4,7 +4,6 @@ using System.Linq; using System.Reflection; using HotChocolate.Types; -using HotChocolate.Types.Helpers; using static System.Reflection.BindingFlags; #nullable enable diff --git a/src/HotChocolate/Core/src/Validation/Extensions/DocumentValidatorContextExtensions.cs b/src/HotChocolate/Core/src/Validation/Extensions/DocumentValidatorContextExtensions.cs index 193432b922b..4126b6c149c 100644 --- a/src/HotChocolate/Core/src/Validation/Extensions/DocumentValidatorContextExtensions.cs +++ b/src/HotChocolate/Core/src/Validation/Extensions/DocumentValidatorContextExtensions.cs @@ -1,4 +1,3 @@ -using HotChocolate.Execution; using HotChocolate.Language; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/src/Validation/MaxValidationErrorsException.cs b/src/HotChocolate/Core/src/Validation/MaxValidationErrorsException.cs index 153b26a6253..4c8530f723c 100644 --- a/src/HotChocolate/Core/src/Validation/MaxValidationErrorsException.cs +++ b/src/HotChocolate/Core/src/Validation/MaxValidationErrorsException.cs @@ -1,5 +1,4 @@ using System; -using System.Runtime.Serialization; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/ErrorBuilderTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/ErrorBuilderTests.cs index 4292f177993..8d0630af68a 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/ErrorBuilderTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/ErrorBuilderTests.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; -using Xunit; using HotChocolate.Execution; using HotChocolate.Language; diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/ErrorTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/ErrorTests.cs index c90f2b6caec..84f33f98130 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/ErrorTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/ErrorTests.cs @@ -3,7 +3,6 @@ using System.Linq; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate; diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QueryDocumentTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QueryDocumentTests.cs index 6f4f6f20891..eb6f1ea1108 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QueryDocumentTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QueryDocumentTests.cs @@ -4,7 +4,6 @@ using HotChocolate.Language; using HotChocolate.Language.Utilities; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QueryRequestBuilderTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QueryRequestBuilderTests.cs index 814ff4e076e..4f371407ad3 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QueryRequestBuilderTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QueryRequestBuilderTests.cs @@ -3,7 +3,6 @@ using HotChocolate.Language; using HotChocolate.Utilities; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QueryResultBuilderTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QueryResultBuilderTests.cs index daf8c97cfb8..d2c75082ef4 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QueryResultBuilderTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QueryResultBuilderTests.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QuerySourceTextTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QuerySourceTextTests.cs index 754f0d04c1c..c82cda15d60 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QuerySourceTextTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QuerySourceTextTests.cs @@ -4,7 +4,6 @@ using HotChocolate.Language; using HotChocolate.Language.Utilities; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/ResponseStreamTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/ResponseStreamTests.cs index 498dfbbfd8d..430ae2a4fac 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/ResponseStreamTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/ResponseStreamTests.cs @@ -1,6 +1,5 @@ using System; using System.Threading.Tasks; -using Xunit; namespace HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/FieldCoordinateTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/FieldCoordinateTests.cs index 3600f87caeb..dfbb82c0075 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/FieldCoordinateTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/FieldCoordinateTests.cs @@ -1,5 +1,3 @@ -using Xunit; - namespace HotChocolate; public class FieldCoordinateTests diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/OptionalTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/OptionalTests.cs index a4719d54204..6fc5f1b1e8a 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/OptionalTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/OptionalTests.cs @@ -1,5 +1,3 @@ -using Xunit; - namespace HotChocolate; public class OptionalTests diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/SchemaCoordinateTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/SchemaCoordinateTests.cs index 292944ffb61..cf11603f768 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/SchemaCoordinateTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/SchemaCoordinateTests.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Language; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Execution.Tests/AutoUpdateRequestExecutorProxyTests.cs b/src/HotChocolate/Core/test/Execution.Tests/AutoUpdateRequestExecutorProxyTests.cs index e41e4e414f1..59ace2dfe58 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/AutoUpdateRequestExecutorProxyTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/AutoUpdateRequestExecutorProxyTests.cs @@ -1,8 +1,5 @@ -using System; -using System.Threading.Tasks; using HotChocolate.StarWars; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Batching/CollectVariablesVisitorTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Batching/CollectVariablesVisitorTests.cs index 263cdebc41c..e32e0e8c63a 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Batching/CollectVariablesVisitorTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Batching/CollectVariablesVisitorTests.cs @@ -1,10 +1,7 @@ -using System.Collections.Generic; -using System.Linq; using HotChocolate.Language; using HotChocolate.Language.Utilities; using HotChocolate.StarWars; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution.Batching; diff --git a/src/HotChocolate/Core/test/Execution.Tests/ClientControlledNullabilityTests.cs b/src/HotChocolate/Core/test/Execution.Tests/ClientControlledNullabilityTests.cs index 2eaf354b329..57af57925b7 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/ClientControlledNullabilityTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/ClientControlledNullabilityTests.cs @@ -1,9 +1,6 @@ -using System.Collections.Generic; -using System.Threading.Tasks; using HotChocolate.Tests; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Execution.Tests/Configuration/TypeModuleTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Configuration/TypeModuleTests.cs index 5654ffb0212..4efbb2a03d3 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Configuration/TypeModuleTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Configuration/TypeModuleTests.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.Tests; using HotChocolate.Types; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Core/test/Execution.Tests/DeferAndStreamTestSchema.cs b/src/HotChocolate/Core/test/Execution.Tests/DeferAndStreamTestSchema.cs index b32df3fa195..eb63e3ae1bf 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/DeferAndStreamTestSchema.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/DeferAndStreamTestSchema.cs @@ -1,6 +1,3 @@ -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.Types; using HotChocolate.Types.Relay; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Execution.Tests/DeferTests.cs b/src/HotChocolate/Core/test/Execution.Tests/DeferTests.cs index 9edf4152b0b..cc425930530 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/DeferTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/DeferTests.cs @@ -1,4 +1,3 @@ -using System.Threading.Tasks; using CookieCrumble; namespace HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/RequestExecutorBuilderExtensions_IdSerializer.Tests.cs b/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/RequestExecutorBuilderExtensions_IdSerializer.Tests.cs index a9d95c39129..fc525b2c8e4 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/RequestExecutorBuilderExtensions_IdSerializer.Tests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/RequestExecutorBuilderExtensions_IdSerializer.Tests.cs @@ -1,8 +1,6 @@ -using System; using HotChocolate.Execution.Configuration; using HotChocolate.Types.Relay; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Execution.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/RequestExecutorBuilderExtensions_TypeDiscovery.Tests.cs b/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/RequestExecutorBuilderExtensions_TypeDiscovery.Tests.cs index 51e4a577945..0b2ed4f7dc2 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/RequestExecutorBuilderExtensions_TypeDiscovery.Tests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/RequestExecutorBuilderExtensions_TypeDiscovery.Tests.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Execution.Configuration; using HotChocolate.Internal; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/RequestExecutorBuilderExtensions_Validation.Tests.cs b/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/RequestExecutorBuilderExtensions_Validation.Tests.cs index ca3a2abba98..45d4cbcfa69 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/RequestExecutorBuilderExtensions_Validation.Tests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/RequestExecutorBuilderExtensions_Validation.Tests.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; using HotChocolate.Language; using HotChocolate.Tests; using HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/SchemaRequestExecutorBuilderExtensions.Conventions.Tests.cs b/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/SchemaRequestExecutorBuilderExtensions.Conventions.Tests.cs index eefe564a161..8a131b26ed3 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/SchemaRequestExecutorBuilderExtensions.Conventions.Tests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/SchemaRequestExecutorBuilderExtensions.Conventions.Tests.cs @@ -1,9 +1,5 @@ -using System; -using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; -using HotChocolate.Types; using HotChocolate.Types.Descriptors; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/SchemaRequestExecutorBuilderExtensions.Types.Tests.cs b/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/SchemaRequestExecutorBuilderExtensions.Types.Tests.cs index 714fb0f9ca1..c5376368ae8 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/SchemaRequestExecutorBuilderExtensions.Types.Tests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/DependencyInjection/SchemaRequestExecutorBuilderExtensions.Types.Tests.cs @@ -1,9 +1,6 @@ -using System; -using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Types; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Execution.Tests/DependencyInjectionTests.cs b/src/HotChocolate/Core/test/Execution.Tests/DependencyInjectionTests.cs index c37324e5f75..e81fbcee78c 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/DependencyInjectionTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/DependencyInjectionTests.cs @@ -1,10 +1,7 @@ -using System; -using System.Threading.Tasks; using HotChocolate.Tests; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Instrumentation/ApolloTracingTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Instrumentation/ApolloTracingTests.cs index be388ab5f33..6a3280a84bf 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Instrumentation/ApolloTracingTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Instrumentation/ApolloTracingTests.cs @@ -1,9 +1,6 @@ -using System; -using System.Threading.Tasks; using HotChocolate.Execution.Options; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; using static HotChocolate.Tests.TestHelper; namespace HotChocolate.Execution.Instrumentation; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Instrumentation/DiagnosticListenerTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Instrumentation/DiagnosticListenerTests.cs index e390bd2c951..9209c9fd443 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Instrumentation/DiagnosticListenerTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Instrumentation/DiagnosticListenerTests.cs @@ -1,11 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Resolvers; using HotChocolate.StarWars; using HotChocolate.StarWars.Models; -using Xunit; using static HotChocolate.Tests.TestHelper; namespace HotChocolate.Execution.Instrumentation; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Integration/Cancellation/CancellationTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Integration/Cancellation/CancellationTests.cs index b7212aa4e1d..3328cb11270 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/Cancellation/CancellationTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/Cancellation/CancellationTests.cs @@ -1,9 +1,6 @@ -using System.Threading; -using System.Threading.Tasks; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Integration/Components/VariableCoercionIntegrationTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Integration/Components/VariableCoercionIntegrationTests.cs index 0392626fbbc..d5b3f4bcc86 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/Components/VariableCoercionIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/Components/VariableCoercionIntegrationTests.cs @@ -1,10 +1,8 @@ -using System.Threading.Tasks; using HotChocolate.Language; using HotChocolate.Tests; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution.Integration.Components; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/DataLoaderTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/DataLoaderTests.cs index 6d5a77abf10..69f9bd785f5 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/DataLoaderTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/DataLoaderTests.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Collections.Immutable; +using System.Collections.Immutable; using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using CookieCrumble; using GreenDonut; using HotChocolate.Fetching; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/Query.cs b/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/Query.cs index f1068b3dcf6..1d27b5b06f1 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/Query.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/Query.cs @@ -1,6 +1,4 @@ -using System.Threading; -using System.Threading.Tasks; -using HotChocolate.Language; +using HotChocolate.Language; namespace HotChocolate.Execution.Integration.DataLoader; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/TestDataLoader.cs b/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/TestDataLoader.cs index 6b67ebdc445..bad5d0a4048 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/TestDataLoader.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/TestDataLoader.cs @@ -1,8 +1,4 @@ -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using GreenDonut; +using GreenDonut; namespace HotChocolate.Execution.Integration.DataLoader; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/UseDataLoaderTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/UseDataLoaderTests.cs index fff2ada2379..56e2f41389a 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/UseDataLoaderTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/UseDataLoaderTests.cs @@ -1,11 +1,6 @@ -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using GreenDonut; +using GreenDonut; using HotChocolate.Types; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution.Integration.DataLoader; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Integration/EmbeddedResolvers/EmbeddedResolverTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Integration/EmbeddedResolvers/EmbeddedResolverTests.cs index 12d8db3c57c..74bb5508153 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/EmbeddedResolvers/EmbeddedResolverTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/EmbeddedResolvers/EmbeddedResolverTests.cs @@ -1,9 +1,7 @@ -using System.Threading.Tasks; using HotChocolate.Tests; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; using static HotChocolate.Tests.TestHelper; namespace HotChocolate.Execution.Integration.EmbeddedResolvers; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Integration/HelloWorldCodeFirst/HelloWorldCodeFirstTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Integration/HelloWorldCodeFirst/HelloWorldCodeFirstTests.cs index 8d5a24d21db..d213f417423 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/HelloWorldCodeFirst/HelloWorldCodeFirstTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/HelloWorldCodeFirst/HelloWorldCodeFirstTests.cs @@ -1,8 +1,6 @@ -using System.Threading.Tasks; -using HotChocolate.Tests; +using HotChocolate.Tests; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; using static HotChocolate.Tests.TestHelper; namespace HotChocolate.Execution.Integration.HelloWorldCodeFirst; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Integration/HelloWorldSchemaFirst/HelloWorldSchemaFirstTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Integration/HelloWorldSchemaFirst/HelloWorldSchemaFirstTests.cs index 78e1fbfd3ca..ae61212fe62 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/HelloWorldSchemaFirst/HelloWorldSchemaFirstTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/HelloWorldSchemaFirst/HelloWorldSchemaFirstTests.cs @@ -1,9 +1,7 @@ -using System.Threading.Tasks; -using HotChocolate.Resolvers; +using HotChocolate.Resolvers; using HotChocolate.Tests; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; using static HotChocolate.Tests.TestHelper; namespace HotChocolate.Execution.Integration.HelloWorldSchemaFirst; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Integration/InputOutputObjectAreTheSame/InputOutputObjectAreTheSame.cs b/src/HotChocolate/Core/test/Execution.Tests/Integration/InputOutputObjectAreTheSame/InputOutputObjectAreTheSame.cs index 53f0aab16e7..3731930b64f 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/InputOutputObjectAreTheSame/InputOutputObjectAreTheSame.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/InputOutputObjectAreTheSame/InputOutputObjectAreTheSame.cs @@ -1,7 +1,5 @@ -using System.Threading.Tasks; -using HotChocolate.Types; +using HotChocolate.Types; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution.Integration.InputOutputObjectAreTheSame; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/ArgumentCoercionTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/ArgumentCoercionTests.cs index 66b6fa66c56..824c919b35f 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/ArgumentCoercionTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/ArgumentCoercionTests.cs @@ -1,8 +1,5 @@ -using System.Collections.Generic; -using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/InputObjectsCanBeVariablesTest.cs b/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/InputObjectsCanBeVariablesTest.cs index 5503b766229..b6a8d379970 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/InputObjectsCanBeVariablesTest.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/InputObjectsCanBeVariablesTest.cs @@ -1,8 +1,6 @@ -using System.Threading.Tasks; using HotChocolate.Tests; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; using static HotChocolate.Tests.TestHelper; namespace HotChocolate.Execution.Integration.Spec; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/ListTypeTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/ListTypeTests.cs index c481bc93dcc..bc5e1a90ae2 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/ListTypeTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/ListTypeTests.cs @@ -1,9 +1,6 @@ -using System.Collections.Generic; -using System.Threading.Tasks; using HotChocolate.Tests; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; using static HotChocolate.Tests.TestHelper; namespace HotChocolate.Execution.Integration.Spec; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Integration/StarWarsCodeFirst/StarWarsCodeFirstTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Integration/StarWarsCodeFirst/StarWarsCodeFirstTests.cs index b5b86f72fc7..aee8d44f7c3 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/StarWarsCodeFirst/StarWarsCodeFirstTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/StarWarsCodeFirst/StarWarsCodeFirstTests.cs @@ -1,6 +1,3 @@ -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using ChilliCream.Testing; using HotChocolate.Language; @@ -10,7 +7,6 @@ using Xunit.Abstractions; using Snapshot = Snapshooter.Xunit.Snapshot; using static HotChocolate.Tests.TestHelper; -using HotChocolate.Types; namespace HotChocolate.Execution.Integration.StarWarsCodeFirst; diff --git a/src/HotChocolate/Core/test/Execution.Tests/IntrospectionTests.cs b/src/HotChocolate/Core/test/Execution.Tests/IntrospectionTests.cs index 158541999e4..eddf81c92ee 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/IntrospectionTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/IntrospectionTests.cs @@ -1,5 +1,3 @@ -using System; -using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Configuration; using HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Execution.Tests/MiddlewareContextTests.cs b/src/HotChocolate/Core/test/Execution.Tests/MiddlewareContextTests.cs index fe3b1d56190..1be2286e978 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/MiddlewareContextTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/MiddlewareContextTests.cs @@ -1,7 +1,3 @@ -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using CookieCrumble; using HotChocolate.Execution.Processing; using HotChocolate.Language; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/DocumentCacheMiddlewareTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/DocumentCacheMiddlewareTests.cs index 477a8a7cb20..0726c36053d 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/DocumentCacheMiddlewareTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/DocumentCacheMiddlewareTests.cs @@ -1,8 +1,6 @@ -using System.Threading.Tasks; using HotChocolate.Execution.Instrumentation; using HotChocolate.Language; using Moq; -using Xunit; namespace HotChocolate.Execution.Pipeline; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/DocumentParserMiddlewareTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/DocumentParserMiddlewareTests.cs index fcd2422bafe..aae1bfab8c1 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/DocumentParserMiddlewareTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/DocumentParserMiddlewareTests.cs @@ -1,11 +1,8 @@ -using System; -using System.Threading.Tasks; using HotChocolate.Execution.Errors; using HotChocolate.Execution.Instrumentation; using HotChocolate.Execution.Options; using HotChocolate.Language; using Moq; -using Xunit; namespace HotChocolate.Execution.Pipeline; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/DocumentValidationMiddlewareTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/DocumentValidationMiddlewareTests.cs index 8b6e836c204..56839fddce5 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/DocumentValidationMiddlewareTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/DocumentValidationMiddlewareTests.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.Execution.Instrumentation; using HotChocolate.Language; using HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/ExceptionMiddlewareTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/ExceptionMiddlewareTests.cs index 6c7d0299a8a..caa9d49f613 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/ExceptionMiddlewareTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/ExceptionMiddlewareTests.cs @@ -1,10 +1,7 @@ -using System; -using System.Threading.Tasks; using HotChocolate.Execution.Errors; using HotChocolate.Execution.Options; using Moq; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution.Pipeline; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/RequestClassMiddlewareFactoryTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/RequestClassMiddlewareFactoryTests.cs index b5ac0ec4420..c4e3034087d 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/RequestClassMiddlewareFactoryTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/RequestClassMiddlewareFactoryTests.cs @@ -1,12 +1,8 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Execution.Instrumentation; using HotChocolate.Execution.Options; using HotChocolate.Execution.Processing; using Moq; -using Xunit; using static HotChocolate.Execution.Pipeline.RequestClassMiddlewareFactory; namespace HotChocolate.Execution.Pipeline; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/TimeoutMiddlewareTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/TimeoutMiddlewareTests.cs index e57ec7858d3..b96628be247 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/TimeoutMiddlewareTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/TimeoutMiddlewareTests.cs @@ -1,13 +1,8 @@ -using System; -using System.Collections.Generic; using System.Runtime.CompilerServices; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.Tests; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution.Pipeline; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/TransactionScopeHandlerTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/TransactionScopeHandlerTests.cs index ee9b4f3b215..07dfa97b25c 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/TransactionScopeHandlerTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/TransactionScopeHandlerTests.cs @@ -1,10 +1,7 @@ -using System; -using System.Threading.Tasks; using HotChocolate.Execution.Processing; using HotChocolate.Tests; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution.Pipeline; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Processing/Result/ObjectFieldResultTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Processing/Result/ObjectFieldResultTests.cs index e65313eb098..af5e1df90c9 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Processing/Result/ObjectFieldResultTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Processing/Result/ObjectFieldResultTests.cs @@ -1,5 +1,3 @@ -using Xunit; - namespace HotChocolate.Execution.Processing; public class ObjectFieldResultTests diff --git a/src/HotChocolate/Core/test/Execution.Tests/Processing/Result/ObjectResultTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Processing/Result/ObjectResultTests.cs index 23a879e3719..2b025e09310 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Processing/Result/ObjectResultTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Processing/Result/ObjectResultTests.cs @@ -1,6 +1,3 @@ -using System.Collections.Generic; -using Xunit; - namespace HotChocolate.Execution.Processing { public class ObjectResultTests diff --git a/src/HotChocolate/Core/test/Execution.Tests/Processing/Result/ResultBuilderTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Processing/Result/ResultBuilderTests.cs index 39c69daebc4..60b94e763c3 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Processing/Result/ResultBuilderTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Processing/Result/ResultBuilderTests.cs @@ -1,5 +1,4 @@ using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution.Processing; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Processing/VariableCoercionHelperTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Processing/VariableCoercionHelperTests.cs index a59b1b55dda..645964d1d89 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Processing/VariableCoercionHelperTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Processing/VariableCoercionHelperTests.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using HotChocolate.Language; using HotChocolate.StarWars; using HotChocolate.StarWars.Models; @@ -8,7 +5,6 @@ using HotChocolate.Types; using HotChocolate.Utilities; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution.Processing; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Processing/VisibilityTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Processing/VisibilityTests.cs index 232934d4bc1..a8efd31c038 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Processing/VisibilityTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Processing/VisibilityTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Language; using Moq; -using Xunit; namespace HotChocolate.Execution.Processing; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Processing/WorkQueueTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Processing/WorkQueueTests.cs index aa4ae82cea3..b8911b1e18f 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Processing/WorkQueueTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Processing/WorkQueueTests.cs @@ -1,8 +1,5 @@ #nullable enable -using System.Threading; -using System.Threading.Tasks; - namespace HotChocolate.Execution.Processing; public class WorkQueueTests diff --git a/src/HotChocolate/Core/test/Execution.Tests/RequestExecutorProxyTests.cs b/src/HotChocolate/Core/test/Execution.Tests/RequestExecutorProxyTests.cs index 441856f9804..82a6dd45a0f 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/RequestExecutorProxyTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/RequestExecutorProxyTests.cs @@ -1,8 +1,5 @@ -using System.Threading; -using System.Threading.Tasks; using HotChocolate.StarWars; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Execution.Tests/RequestExecutorTests.cs b/src/HotChocolate/Core/test/Execution.Tests/RequestExecutorTests.cs index 2f5cd682ec6..cc30e4a0a5e 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/RequestExecutorTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/RequestExecutorTests.cs @@ -1,11 +1,7 @@ -using System; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.Tests; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Execution.Tests/ScalarExecutionErrorTests.cs b/src/HotChocolate/Core/test/Execution.Tests/ScalarExecutionErrorTests.cs index 544c1ba6810..382110154c1 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/ScalarExecutionErrorTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/ScalarExecutionErrorTests.cs @@ -1,10 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using HotChocolate.Language; +using HotChocolate.Language; using HotChocolate.Types; using HotChocolate.Tests; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Execution.Tests/SchemaFirstTests.cs b/src/HotChocolate/Core/test/Execution.Tests/SchemaFirstTests.cs index 6926e2cb9b8..9839abe9e4e 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/SchemaFirstTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/SchemaFirstTests.cs @@ -1,11 +1,7 @@ #nullable enable -using System.Threading.Tasks; using CookieCrumble; using HotChocolate.Tests; using Microsoft.Extensions.DependencyInjection; -using Newtonsoft.Json; -using Xunit; -using JsonSerializer = System.Text.Json.JsonSerializer; namespace HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Execution.Tests/ScopedContextDataTests.cs b/src/HotChocolate/Core/test/Execution.Tests/ScopedContextDataTests.cs index 2a1614093f4..aed0d542d1d 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/ScopedContextDataTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/ScopedContextDataTests.cs @@ -1,6 +1,4 @@ -using System.Threading.Tasks; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Serialization/MultiPartResponseStreamSerializerTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Serialization/MultiPartResponseStreamSerializerTests.cs index 9572e40aae9..46fc3024811 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Serialization/MultiPartResponseStreamSerializerTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Serialization/MultiPartResponseStreamSerializerTests.cs @@ -1,12 +1,7 @@ -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.StarWars; using Microsoft.Extensions.DependencyInjection; using Moq; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution.Serialization; diff --git a/src/HotChocolate/Core/test/Execution.Tests/SourceObjectConversionTests.cs b/src/HotChocolate/Core/test/Execution.Tests/SourceObjectConversionTests.cs index a168b960c27..1abd49047ab 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/SourceObjectConversionTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/SourceObjectConversionTests.cs @@ -1,8 +1,6 @@ -using System.Threading.Tasks; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Execution.Tests/StreamTests.cs b/src/HotChocolate/Core/test/Execution.Tests/StreamTests.cs index f2d0416e86b..b54c434a9ef 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/StreamTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/StreamTests.cs @@ -1,6 +1,4 @@ -using System.Threading.Tasks; using CookieCrumble; -using Xunit; namespace HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Fetching.Tests/AutoBatchSchedulerTests.cs b/src/HotChocolate/Core/test/Fetching.Tests/AutoBatchSchedulerTests.cs index 7781b193d92..f5b73f98863 100644 --- a/src/HotChocolate/Core/test/Fetching.Tests/AutoBatchSchedulerTests.cs +++ b/src/HotChocolate/Core/test/Fetching.Tests/AutoBatchSchedulerTests.cs @@ -2,7 +2,6 @@ using System.Threading; using System.Threading.Tasks; using GreenDonut; -using Xunit; namespace HotChocolate.Fetching; diff --git a/src/HotChocolate/Core/test/Fetching.Tests/BatchSchedulerTests.cs b/src/HotChocolate/Core/test/Fetching.Tests/BatchSchedulerTests.cs index 39538e472cd..65cdcc3030b 100644 --- a/src/HotChocolate/Core/test/Fetching.Tests/BatchSchedulerTests.cs +++ b/src/HotChocolate/Core/test/Fetching.Tests/BatchSchedulerTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using Moq; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Fetching; diff --git a/src/HotChocolate/Core/test/Fetching.Tests/InlineBatchDataLoaderTests.cs b/src/HotChocolate/Core/test/Fetching.Tests/InlineBatchDataLoaderTests.cs index 54016aa6861..c528ecdeb24 100644 --- a/src/HotChocolate/Core/test/Fetching.Tests/InlineBatchDataLoaderTests.cs +++ b/src/HotChocolate/Core/test/Fetching.Tests/InlineBatchDataLoaderTests.cs @@ -7,7 +7,6 @@ using HotChocolate.Tests; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Fetching; diff --git a/src/HotChocolate/Core/test/Fetching.Tests/InlineCacheDataLoaderTests.cs b/src/HotChocolate/Core/test/Fetching.Tests/InlineCacheDataLoaderTests.cs index f5921da3af6..24d9cb34616 100644 --- a/src/HotChocolate/Core/test/Fetching.Tests/InlineCacheDataLoaderTests.cs +++ b/src/HotChocolate/Core/test/Fetching.Tests/InlineCacheDataLoaderTests.cs @@ -5,7 +5,6 @@ using HotChocolate.Tests; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Fetching; diff --git a/src/HotChocolate/Core/test/Fetching.Tests/InlineGroupDataLoaderTests.cs b/src/HotChocolate/Core/test/Fetching.Tests/InlineGroupDataLoaderTests.cs index daf1da00468..8fc8b49bf77 100644 --- a/src/HotChocolate/Core/test/Fetching.Tests/InlineGroupDataLoaderTests.cs +++ b/src/HotChocolate/Core/test/Fetching.Tests/InlineGroupDataLoaderTests.cs @@ -7,7 +7,6 @@ using HotChocolate.Tests; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Fetching; diff --git a/src/HotChocolate/Core/test/StarWars/Query.cs b/src/HotChocolate/Core/test/StarWars/Query.cs index fb737a382c3..d6f34dc066f 100644 --- a/src/HotChocolate/Core/test/StarWars/Query.cs +++ b/src/HotChocolate/Core/test/StarWars/Query.cs @@ -4,7 +4,6 @@ using HotChocolate.Resolvers; using HotChocolate.StarWars.Data; using HotChocolate.StarWars.Models; -using HotChocolate.Subscriptions; namespace HotChocolate.StarWars; diff --git a/src/HotChocolate/Core/test/Types.Analyzers.Tests/AnnotationBasedSchemaTests.cs b/src/HotChocolate/Core/test/Types.Analyzers.Tests/AnnotationBasedSchemaTests.cs index 36e7be2fe50..0bd477599c2 100644 --- a/src/HotChocolate/Core/test/Types.Analyzers.Tests/AnnotationBasedSchemaTests.cs +++ b/src/HotChocolate/Core/test/Types.Analyzers.Tests/AnnotationBasedSchemaTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; using CookieCrumble; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/ConnectionPageInfoTests.cs b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/ConnectionPageInfoTests.cs index ecbf33975b4..52d90348c02 100644 --- a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/ConnectionPageInfoTests.cs +++ b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/ConnectionPageInfoTests.cs @@ -1,6 +1,4 @@ -using Xunit; - -namespace HotChocolate.Types.Pagination; +namespace HotChocolate.Types.Pagination; public class ConnectionPageInfoTests { diff --git a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/ConnectionTests.cs b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/ConnectionTests.cs index 62c84fcfa2c..a7c99b976b9 100644 --- a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/ConnectionTests.cs +++ b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/ConnectionTests.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; -using Xunit; namespace HotChocolate.Types.Pagination; diff --git a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/CursorPagingHandlerTests.cs b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/CursorPagingHandlerTests.cs index e5a135f9b94..a338ea31598 100644 --- a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/CursorPagingHandlerTests.cs +++ b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/CursorPagingHandlerTests.cs @@ -3,7 +3,6 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/CursorPagingQueryableExtensionsTests.cs b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/CursorPagingQueryableExtensionsTests.cs index dc09e1d602f..f68b1904ee1 100644 --- a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/CursorPagingQueryableExtensionsTests.cs +++ b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/CursorPagingQueryableExtensionsTests.cs @@ -9,7 +9,6 @@ using Microsoft.Extensions.DependencyInjection; using Moq; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types.Pagination; diff --git a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/CustomCursorHandlerTests.cs b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/CustomCursorHandlerTests.cs index ff73a7bdb8b..9f2e63162ca 100644 --- a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/CustomCursorHandlerTests.cs +++ b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/CustomCursorHandlerTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using HotChocolate.Tests; using Snapshooter.Xunit; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/EdgeTests.cs b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/EdgeTests.cs index ddbc140e2ae..3c16d05aa57 100644 --- a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/EdgeTests.cs +++ b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/EdgeTests.cs @@ -5,7 +5,6 @@ using HotChocolate.Tests; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types.Pagination; diff --git a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/IntegrationTests.cs b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/IntegrationTests.cs index 91917f86f9d..71bce264a9a 100644 --- a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/IntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/IntegrationTests.cs @@ -9,7 +9,6 @@ using HotChocolate.Resolvers; using HotChocolate.Tests; using Snapshooter.Xunit; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/PagingObjectFieldDescriptorExtensions.cs b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/PagingObjectFieldDescriptorExtensions.cs index d116e53a0f4..61b06fcbe67 100644 --- a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/PagingObjectFieldDescriptorExtensions.cs +++ b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/PagingObjectFieldDescriptorExtensions.cs @@ -1,5 +1,4 @@ using System; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/UsePagingAttributeTests.cs b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/UsePagingAttributeTests.cs index d899e05967f..23521038c8a 100644 --- a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/UsePagingAttributeTests.cs +++ b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/UsePagingAttributeTests.cs @@ -6,7 +6,6 @@ using HotChocolate.Tests; using HotChocolate.Types.Relay; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types.Pagination; diff --git a/src/HotChocolate/Core/test/Types.Json.Tests/FromJsonDirectiveTests.cs b/src/HotChocolate/Core/test/Types.Json.Tests/FromJsonDirectiveTests.cs index 4c58376b590..bf9b132b4c1 100644 --- a/src/HotChocolate/Core/test/Types.Json.Tests/FromJsonDirectiveTests.cs +++ b/src/HotChocolate/Core/test/Types.Json.Tests/FromJsonDirectiveTests.cs @@ -4,7 +4,6 @@ using HotChocolate.Tests; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/DateTimeZoneTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/DateTimeZoneTypeTests.cs index 25c20df25d3..a9b4faf66b1 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/DateTimeZoneTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/DateTimeZoneTypeTests.cs @@ -1,7 +1,6 @@ using System.Linq; using HotChocolate.Execution; using NodaTime; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeJsonRoundtripIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeJsonRoundtripIntegrationTests.cs index de8520a8008..0ef66b32d1b 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeJsonRoundtripIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeJsonRoundtripIntegrationTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using NodaTime; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests; diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeTests.cs index 9554ad2a9c4..b46510b3ed3 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using NodaTime; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeDateTimeOffsetIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeDateTimeOffsetIntegrationTests.cs index 6b6527355ff..91868df5bdd 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeDateTimeOffsetIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeDateTimeOffsetIntegrationTests.cs @@ -5,7 +5,6 @@ using NodaTime; using NodaTime.Extensions; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeGeneralIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeGeneralIntegrationTests.cs index 861a087624b..29377f2b08b 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeGeneralIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeGeneralIntegrationTests.cs @@ -1,7 +1,6 @@ using System.Linq; using HotChocolate.Execution; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeTests.cs index 4a5956ac923..58a2c832a5a 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using NodaTime; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/IsoDayOfWeekTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/IsoDayOfWeekTypeTests.cs index 580623a1350..623484f3338 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/IsoDayOfWeekTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/IsoDayOfWeekTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Execution; using NodaTime; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeFullRoundtripIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeFullRoundtripIntegrationTests.cs index 52b609d2454..7f7e4e546a1 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeFullRoundtripIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeFullRoundtripIntegrationTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Execution; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeGeneralIsoIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeGeneralIsoIntegrationTests.cs index 67be6397974..2ae4dc83053 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeGeneralIsoIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeGeneralIsoIntegrationTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Execution; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeTests.cs index 5e970ccfbf5..34c6318d068 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeTests.cs @@ -3,7 +3,6 @@ using HotChocolate.Execution; using NodaTime; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeFullRoundtripIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeFullRoundtripIntegrationTests.cs index 54af4fa0b41..c59e2e8ddfa 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeFullRoundtripIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeFullRoundtripIntegrationTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Execution; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeTests.cs index f6371d03750..c21a0d910b5 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using NodaTime; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeGeneralIsoIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeGeneralIsoIntegrationTests.cs index 3311bbb5243..5395e9299e1 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeGeneralIsoIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeGeneralIsoIntegrationTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Execution; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeTests.cs index 6623bdcebf2..1a82b2d9750 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using NodaTime; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeExtendedIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeExtendedIntegrationTests.cs index 1a76016a0a1..aa73b9acee4 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeExtendedIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeExtendedIntegrationTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Execution; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeGeneralIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeGeneralIntegrationTests.cs index 4376dbf1e8b..2014ed74488 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeGeneralIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeGeneralIntegrationTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Execution; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeRfc3339IntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeRfc3339IntegrationTests.cs index 99204a52350..1a63b3a2ca4 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeRfc3339IntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeRfc3339IntegrationTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Execution; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeTests.cs index 0b6307d6517..8ccf550c882 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using NodaTime; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeFullRoundtripIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeFullRoundtripIntegrationTests.cs index 0fbd6af9832..a1996341219 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeFullRoundtripIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeFullRoundtripIntegrationTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Execution; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeTests.cs index e65b103b081..a0be627d400 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using NodaTime; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeExtendedIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeExtendedIntegrationTests.cs index 1fb671c7fc3..775ca2f3779 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeExtendedIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeExtendedIntegrationTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Execution; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeRfc3339IntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeRfc3339IntegrationTests.cs index 765d184fb73..0270bdf3362 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeRfc3339IntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeRfc3339IntegrationTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Execution; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeTests.cs index 2aa7753241d..4c3b9273eea 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using NodaTime; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeGeneralInvariantWithoutZIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeGeneralInvariantWithoutZIntegrationTests.cs index 72de188b03d..0c9143d416b 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeGeneralInvariantWithoutZIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeGeneralInvariantWithoutZIntegrationTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Execution; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeTests.cs index f4ce23c0ea0..6ba698b5eab 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using NodaTime; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/PeriodTypeNormalizingIsoIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/PeriodTypeNormalizingIsoIntegrationTests.cs index b0d084638b2..19b6bc4e0bd 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/PeriodTypeNormalizingIsoIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/PeriodTypeNormalizingIsoIntegrationTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Execution; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/PeriodTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/PeriodTypeTests.cs index a338c137a0c..fb3187287e9 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/PeriodTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/PeriodTypeTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using NodaTime; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeCustomIntegrationTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeCustomIntegrationTests.cs index 542e189fe34..cf2cc8d510f 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeCustomIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeCustomIntegrationTests.cs @@ -1,7 +1,6 @@ using HotChocolate.Execution; using NodaTime; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests; diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeTests.cs index 58f19c94e74..f4fcec9d97a 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using NodaTime; using NodaTime.Text; -using Xunit; namespace HotChocolate.Types.NodaTime.Tests { diff --git a/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/CollectionSegmentTests.cs b/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/CollectionSegmentTests.cs index 23ad71d7eaf..7807ab21d98 100644 --- a/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/CollectionSegmentTests.cs +++ b/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/CollectionSegmentTests.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; -using Xunit; namespace HotChocolate.Types.Pagination { diff --git a/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/CustomCollectionSegmentHandlerTests.cs b/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/CustomCollectionSegmentHandlerTests.cs index ee824f094ee..791297846e2 100644 --- a/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/CustomCollectionSegmentHandlerTests.cs +++ b/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/CustomCollectionSegmentHandlerTests.cs @@ -3,7 +3,6 @@ using HotChocolate.Execution; using HotChocolate.Tests; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types.Pagination { diff --git a/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/IntegrationTests.cs b/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/IntegrationTests.cs index ccb2f0ad9de..0038ec8a839 100644 --- a/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/IntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/IntegrationTests.cs @@ -7,7 +7,6 @@ using HotChocolate.Tests; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/OffsetPagingObjectFieldDescriptorExtensionsTests.cs b/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/OffsetPagingObjectFieldDescriptorExtensionsTests.cs index dca7534075e..52cd6c9ffda 100644 --- a/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/OffsetPagingObjectFieldDescriptorExtensionsTests.cs +++ b/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/OffsetPagingObjectFieldDescriptorExtensionsTests.cs @@ -1,5 +1,4 @@ using System; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Records.Tests/RecordsTests.cs b/src/HotChocolate/Core/test/Types.Records.Tests/RecordsTests.cs index 06048d7105c..ce8216261c6 100644 --- a/src/HotChocolate/Core/test/Types.Records.Tests/RecordsTests.cs +++ b/src/HotChocolate/Core/test/Types.Records.Tests/RecordsTests.cs @@ -4,7 +4,6 @@ using System.Threading.Tasks; using HotChocolate.Tests; using Snapshooter.Xunit; -using Xunit; using HotChocolate.Execution; namespace HotChocolate.Types diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/EmailAddressTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/EmailAddressTypeTests.cs index 0649b59c707..1502b7e17f7 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/EmailAddressTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/EmailAddressTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/HexTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/HexTypeTests.cs index 364254a190a..2a681762c6f 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/HexTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/HexTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/HslTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/HslTypeTests.cs index b021cc7d636..593581885bf 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/HslTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/HslTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/HslaTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/HslaTypeTests.cs index 7c4559caecc..3d322dc25ca 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/HslaTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/HslaTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/IPv4TypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/IPv4TypeTests.cs index 69644c50c38..8251baa4489 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/IPv4TypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/IPv4TypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/IPv6TypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/IPv6TypeTests.cs index 2723fabf1fa..d9c56e88782 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/IPv6TypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/IPv6TypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/IsbnTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/IsbnTypeTests.cs index 33b1245f8c4..df53ec29317 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/IsbnTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/IsbnTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/LatitudeTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/LatitudeTypeTests.cs index 62bcf438640..cf8b2652f3d 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/LatitudeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/LatitudeTypeTests.cs @@ -4,7 +4,6 @@ using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalCurrencyTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalCurrencyTypeTests.cs index 4b55ab6a1da..8b0bf79826f 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalCurrencyTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalCurrencyTypeTests.cs @@ -1,10 +1,8 @@ -using System; using System.Threading.Tasks; using HotChocolate.Execution; using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalDateTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalDateTypeTests.cs index 7df8bb02b20..a03557ff88e 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalDateTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalDateTypeTests.cs @@ -1,4 +1,3 @@ -using Xunit; using System; using System.Globalization; using System.Threading; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalTimeTypeTests.cs index 4446201f2f2..4255dfbc2e4 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalTimeTypeTests.cs @@ -3,7 +3,6 @@ using System.Threading; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/LongitudeTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/LongitudeTypeTests.cs index 9ba44dd3e46..bf3b7b0588e 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/LongitudeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/LongitudeTypeTests.cs @@ -4,7 +4,6 @@ using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; using static HotChocolate.Language.SyntaxComparer; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/MacAddressTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/MacAddressTypeTests.cs index 83e9cf88348..37766119c68 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/MacAddressTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/MacAddressTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/NegativeFloatTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/NegativeFloatTypeTests.cs index 599316c69c1..011654d0fe0 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/NegativeFloatTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/NegativeFloatTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/NegativeIntTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/NegativeIntTypeTests.cs index d923c285abe..b69fbbb2b7d 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/NegativeIntTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/NegativeIntTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/NonEmptyStringTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/NonEmptyStringTypeTests.cs index 1cedc98b711..e60b98dc36f 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/NonEmptyStringTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/NonEmptyStringTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/NonNegativeFloatTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/NonNegativeFloatTypeTests.cs index b81979d9844..12e10b177ad 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/NonNegativeFloatTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/NonNegativeFloatTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/NonNegativeIntTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/NonNegativeIntTypeTests.cs index 483ef0fdda9..1aa1fa579ee 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/NonNegativeIntTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/NonNegativeIntTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/NonPositiveFloatTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/NonPositiveFloatTypeTests.cs index c7a7fe28997..7a82fbf9e64 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/NonPositiveFloatTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/NonPositiveFloatTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/NonPositiveIntTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/NonPositiveIntTypeTests.cs index 9f7c1f090cb..3676ec9a0b7 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/NonPositiveIntTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/NonPositiveIntTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/PhoneNumberTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/PhoneNumberTypeTests.cs index a4e212f2199..9e198c13ca9 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/PhoneNumberTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/PhoneNumberTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/PortTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/PortTypeTests.cs index 95dad1a2531..88bd9ba873a 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/PortTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/PortTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/PositiveIntTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/PositiveIntTypeTests.cs index 4079f6040fb..3050d79a4e3 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/PositiveIntTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/PositiveIntTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/PostalCodeTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/PostalCodeTypeTests.cs index 6c09a739668..1d3d2a9a282 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/PostalCodeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/PostalCodeTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/RegexTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/RegexTypeTests.cs index 7901faf36a0..144aca3c343 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/RegexTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/RegexTypeTests.cs @@ -2,7 +2,6 @@ using System.Text.RegularExpressions; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/RgbTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/RgbTypeTests.cs index 10f39285225..35292d7c4c1 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/RgbTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/RgbTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/RgbaTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/RgbaTypeTests.cs index 3dae7663d28..2be21c27d40 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/RgbaTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/RgbaTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/ScalarTypeTestBase.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/ScalarTypeTestBase.cs index f9ad174f36f..f11105782ba 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/ScalarTypeTestBase.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/ScalarTypeTestBase.cs @@ -4,7 +4,6 @@ using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; @@ -171,7 +170,7 @@ protected void ExpectDeserializeToMatch( var result = scalar.Deserialize(resultValue); // assert - Assert.Equal(resultValue, runtimeValue); + Assert.Equal(result, runtimeValue); } protected void ExpectSerializeToThrowSerializationException(object runtimeValue) diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/SignedByteTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/SignedByteTypeTests.cs index f2f02110c41..85d1a01a2a2 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/SignedByteTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/SignedByteTypeTests.cs @@ -2,7 +2,6 @@ using System.Threading.Tasks; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; @@ -124,8 +123,8 @@ public void ParseValue_GivenObject_ThrowSerializationException(object value) } [Theory] - [InlineData(0, 0)] - [InlineData(1, 1)] + [InlineData(0, (sbyte)0)] + [InlineData(1, (sbyte)1)] [InlineData(sbyte.MaxValue, sbyte.MaxValue)] [InlineData(sbyte.MinValue, sbyte.MinValue)] [InlineData(null, null)] diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedIntTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedIntTypeTests.cs index 08d5e70053a..94e20a8e0b9 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedIntTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedIntTypeTests.cs @@ -2,7 +2,6 @@ using System.Threading.Tasks; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; @@ -124,8 +123,8 @@ public void ParseValue_GivenObject_ThrowSerializationException(object value) } [Theory] - [InlineData(0, 0)] - [InlineData(1, 1)] + [InlineData(0, (uint)0)] + [InlineData(1, (uint)1)] [InlineData(uint.MaxValue, uint.MaxValue)] [InlineData(uint.MinValue, uint.MinValue)] [InlineData(null, null)] diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedLongTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedLongTypeTests.cs index aefc41bb9e0..04bf39e1580 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedLongTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedLongTypeTests.cs @@ -2,7 +2,6 @@ using System.Threading.Tasks; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedShortTypeTests .cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedShortTypeTests .cs index 5d2525770dd..4d0b7115867 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedShortTypeTests .cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedShortTypeTests .cs @@ -2,7 +2,6 @@ using System.Threading.Tasks; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; @@ -124,8 +123,8 @@ public void ParseValue_GivenObject_ThrowSerializationException(object value) } [Theory] - [InlineData(0, 0)] - [InlineData(1, 1)] + [InlineData(0, (ushort)0)] + [InlineData(1, (ushort)1)] [InlineData(ushort.MaxValue, ushort.MaxValue)] [InlineData(ushort.MinValue, ushort.MinValue)] [InlineData(null, null)] diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/UtcOffsetTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/UtcOffsetTypeTests.cs index d9ffe807fa2..c4ad5f18997 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/UtcOffsetTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/UtcOffsetTypeTests.cs @@ -4,7 +4,6 @@ using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/MiddlewareConfigurationTests.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/MiddlewareConfigurationTests.cs index 26becbb9d39..fbff46f431f 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/MiddlewareConfigurationTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/MiddlewareConfigurationTests.cs @@ -3,7 +3,6 @@ using HotChocolate.Execution; using HotChocolate.Resolvers; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Configuration; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/SchemaConfigurationTests.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/SchemaConfigurationTests.cs index b0cad8af9c2..bf20d9e553c 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/SchemaConfigurationTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/SchemaConfigurationTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Resolvers; using HotChocolate.Types; using Moq; -using Xunit; namespace HotChocolate.Configuration; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/SchemaTypeDiscoveryTests.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/SchemaTypeDiscoveryTests.cs index ccdc3a5af13..aeae6796b23 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/SchemaTypeDiscoveryTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/SchemaTypeDiscoveryTests.cs @@ -2,7 +2,6 @@ using System.Linq; using HotChocolate.Language; using HotChocolate.Types; -using Xunit; namespace HotChocolate.Configuration; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/SchemaTypeResolverTests.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/SchemaTypeResolverTests.cs index c32c983e092..e61070d2ec2 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/SchemaTypeResolverTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/SchemaTypeResolverTests.cs @@ -1,7 +1,6 @@ using HotChocolate.Internal; using HotChocolate.Types; using HotChocolate.Types.Descriptors; -using Xunit; namespace HotChocolate.Configuration; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscoveryTests.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscoveryTests.cs index 47c7054e6a2..b70dcd45031 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscoveryTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscoveryTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Types; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Configuration; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeInitializationOrderTests.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeInitializationOrderTests.cs index 13937a920c5..220920619b1 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeInitializationOrderTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeInitializationOrderTests.cs @@ -3,7 +3,6 @@ using HotChocolate.Types.Descriptors.Definitions; using Snapshooter; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Configuration; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeInitializerTests.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeInitializerTests.cs index ad707a3c11b..0cdbc796470 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeInitializerTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeInitializerTests.cs @@ -5,7 +5,6 @@ using HotChocolate.Types.Descriptors; using HotChocolate.Types.Introspection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Configuration; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeScopeInterceptorTests.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeScopeInterceptorTests.cs index c34cc03f00a..3a194ae6921 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeScopeInterceptorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeScopeInterceptorTests.cs @@ -5,7 +5,6 @@ using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Configuration; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeTrimmerTests.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeTrimmerTests.cs index d0575925cb7..713d4552807 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeTrimmerTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeTrimmerTests.cs @@ -1,7 +1,6 @@ using HotChocolate.Language; using HotChocolate.Types; using Snapshooter.Xunit; -using Xunit; using DirectiveLocation = HotChocolate.Types.DirectiveLocation; namespace HotChocolate.Configuration; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/InterfaceTypeValidation.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/InterfaceTypeValidation.cs index 905fbd823ae..3844caa59fc 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/InterfaceTypeValidation.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/InterfaceTypeValidation.cs @@ -1,5 +1,3 @@ -using Xunit; - namespace HotChocolate.Configuration.Validation; public class InterfaceTypeValidation : TypeValidationTestBase diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/ObjectTypeValidation.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/ObjectTypeValidation.cs index 21bbe53b012..0db37b632fa 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/ObjectTypeValidation.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/ObjectTypeValidation.cs @@ -1,5 +1,3 @@ -using Xunit; - namespace HotChocolate.Configuration.Validation; public class ObjectTypeValidation : TypeValidationTestBase diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/TypeValidationTestBase.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/TypeValidationTestBase.cs index 3ff8be8fe3a..b5ef6801534 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/TypeValidationTestBase.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/TypeValidationTestBase.cs @@ -1,7 +1,6 @@ using System; using System.Text; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Configuration.Validation; diff --git a/src/HotChocolate/Core/test/Types.Tests/DataLoader/DataLoaderResolverContextExtensions.cs b/src/HotChocolate/Core/test/Types.Tests/DataLoader/DataLoaderResolverContextExtensions.cs index e3d3ce6c255..e88e0bbbc06 100644 --- a/src/HotChocolate/Core/test/Types.Tests/DataLoader/DataLoaderResolverContextExtensions.cs +++ b/src/HotChocolate/Core/test/Types.Tests/DataLoader/DataLoaderResolverContextExtensions.cs @@ -6,7 +6,6 @@ using HotChocolate.Fetching; using HotChocolate.Types; using Moq; -using Xunit; namespace HotChocolate.Resolvers; diff --git a/src/HotChocolate/Core/test/Types.Tests/Extensions/SchemaBuilderExtensions.Document.Tests.cs b/src/HotChocolate/Core/test/Types.Tests/Extensions/SchemaBuilderExtensions.Document.Tests.cs index b49b1836048..cc382c4d2a4 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Extensions/SchemaBuilderExtensions.Document.Tests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Extensions/SchemaBuilderExtensions.Document.Tests.cs @@ -1,7 +1,6 @@ using System; using System.IO; using System.Threading.Tasks; -using Xunit; using Snapshooter.Xunit; using IOPath = System.IO.Path; diff --git a/src/HotChocolate/Core/test/Types.Tests/Extensions/SchemaBuilderExtensions.Resolvers.Tests.cs b/src/HotChocolate/Core/test/Types.Tests/Extensions/SchemaBuilderExtensions.Resolvers.Tests.cs index 4a8fe8b7d1c..d80fedf0c37 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Extensions/SchemaBuilderExtensions.Resolvers.Tests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Extensions/SchemaBuilderExtensions.Resolvers.Tests.cs @@ -1,7 +1,6 @@ using System; using System.Threading.Tasks; using Snapshooter.Xunit; -using Xunit; using HotChocolate.Execution; using HotChocolate.Resolvers; using HotChocolate.Tests; diff --git a/src/HotChocolate/Core/test/Types.Tests/Extensions/SchemaBuilderExtensions.Types.Tests.cs b/src/HotChocolate/Core/test/Types.Tests/Extensions/SchemaBuilderExtensions.Types.Tests.cs index e3a297b7b81..87f2c4d04b3 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Extensions/SchemaBuilderExtensions.Types.Tests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Extensions/SchemaBuilderExtensions.Types.Tests.cs @@ -1,6 +1,5 @@ using System; using Snapshooter.Xunit; -using Xunit; using HotChocolate.Types; using HotChocolate.Language; diff --git a/src/HotChocolate/Core/test/Types.Tests/ForbiddenRuntimeTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/ForbiddenRuntimeTypeTests.cs index 2579e331bc7..8c98ef23de0 100644 --- a/src/HotChocolate/Core/test/Types.Tests/ForbiddenRuntimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/ForbiddenRuntimeTypeTests.cs @@ -3,7 +3,6 @@ using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate; diff --git a/src/HotChocolate/Core/test/Types.Tests/GraphQLNonNullTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/GraphQLNonNullTypeTests.cs index e2899fb3a05..47d45251704 100644 --- a/src/HotChocolate/Core/test/Types.Tests/GraphQLNonNullTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/GraphQLNonNullTypeTests.cs @@ -5,7 +5,6 @@ using HotChocolate.Tests; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate; diff --git a/src/HotChocolate/Core/test/Types.Tests/IgnoreTests.cs b/src/HotChocolate/Core/test/Types.Tests/IgnoreTests.cs index f82ee78c245..c613acbe2a3 100644 --- a/src/HotChocolate/Core/test/Types.Tests/IgnoreTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/IgnoreTests.cs @@ -3,7 +3,6 @@ using HotChocolate.Tests; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/Internal/ExtendedTypeNullabilityTests.cs b/src/HotChocolate/Core/test/Types.Tests/Internal/ExtendedTypeNullabilityTests.cs index 91d2e759409..63b8acf79c6 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Internal/ExtendedTypeNullabilityTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Internal/ExtendedTypeNullabilityTests.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/Internal/ExtendedTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Internal/ExtendedTypeTests.cs index f1a43af76ed..8651291ac9f 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Internal/ExtendedTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Internal/ExtendedTypeTests.cs @@ -5,7 +5,6 @@ using System.Linq; using System.Threading.Tasks; using HotChocolate.Types; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/Internal/TypeInfoTests.cs b/src/HotChocolate/Core/test/Types.Tests/Internal/TypeInfoTests.cs index f9c58d45bfc..ebe5c126c53 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Internal/TypeInfoTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Internal/TypeInfoTests.cs @@ -6,7 +6,6 @@ using System.Threading.Tasks; using HotChocolate.Types; using HotChocolate.Types.Descriptors; -using Xunit; namespace HotChocolate.Internal; diff --git a/src/HotChocolate/Core/test/Types.Tests/NamingConventionTests.cs b/src/HotChocolate/Core/test/Types.Tests/NamingConventionTests.cs index 2dc258e0bd4..ad1ade5b29b 100644 --- a/src/HotChocolate/Core/test/Types.Tests/NamingConventionTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/NamingConventionTests.cs @@ -7,7 +7,6 @@ using HotChocolate.Types.Descriptors; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate; diff --git a/src/HotChocolate/Core/test/Types.Tests/Regressions/NestedOptionalInt_2114.cs b/src/HotChocolate/Core/test/Types.Tests/Regressions/NestedOptionalInt_2114.cs index e79f80ffa24..30ed0a5567e 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Regressions/NestedOptionalInt_2114.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Regressions/NestedOptionalInt_2114.cs @@ -4,7 +4,6 @@ using System.Threading.Tasks; using HotChocolate.Execution; using HotChocolate.Types; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/ResolverContextStateExtensionTests.cs b/src/HotChocolate/Core/test/Types.Tests/ResolverContextStateExtensionTests.cs index 84427691c4d..b99d0322c76 100644 --- a/src/HotChocolate/Core/test/Types.Tests/ResolverContextStateExtensionTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/ResolverContextStateExtensionTests.cs @@ -10,7 +10,6 @@ using Microsoft.Extensions.DependencyInjection; using Moq; using Snapshooter.Xunit; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/Resolvers/CustomResolverCompilerTests.cs b/src/HotChocolate/Core/test/Types.Tests/Resolvers/CustomResolverCompilerTests.cs index b69bbf84970..e28a913c863 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Resolvers/CustomResolverCompilerTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Resolvers/CustomResolverCompilerTests.cs @@ -5,9 +5,7 @@ using HotChocolate.Execution; using HotChocolate.Execution.Configuration; using HotChocolate.Tests; -using Moq; using Snapshooter.Xunit; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/Resolvers/FieldMemberTests.cs b/src/HotChocolate/Core/test/Types.Tests/Resolvers/FieldMemberTests.cs index 9725e252b28..062a27dcde7 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Resolvers/FieldMemberTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Resolvers/FieldMemberTests.cs @@ -1,7 +1,6 @@ using System; using System.Linq.Expressions; using System.Reflection; -using Xunit; namespace HotChocolate.Resolvers; diff --git a/src/HotChocolate/Core/test/Types.Tests/Resolvers/FieldMiddlewareTests.cs b/src/HotChocolate/Core/test/Types.Tests/Resolvers/FieldMiddlewareTests.cs index 89fccb84513..3c8400b5dd6 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Resolvers/FieldMiddlewareTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Resolvers/FieldMiddlewareTests.cs @@ -4,7 +4,6 @@ using HotChocolate.Execution; using HotChocolate.Tests; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Resolvers; diff --git a/src/HotChocolate/Core/test/Types.Tests/Resolvers/FieldReferenceTests.cs b/src/HotChocolate/Core/test/Types.Tests/Resolvers/FieldReferenceTests.cs index efba40a1a3d..3471cb65b1d 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Resolvers/FieldReferenceTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Resolvers/FieldReferenceTests.cs @@ -1,5 +1,4 @@ using System; -using Xunit; namespace HotChocolate.Resolvers; diff --git a/src/HotChocolate/Core/test/Types.Tests/Resolvers/FieldResolverTests.cs b/src/HotChocolate/Core/test/Types.Tests/Resolvers/FieldResolverTests.cs index c737bc307f9..113334b9016 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Resolvers/FieldResolverTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Resolvers/FieldResolverTests.cs @@ -1,6 +1,5 @@ using System; using System.Threading.Tasks; -using Xunit; namespace HotChocolate.Resolvers; diff --git a/src/HotChocolate/Core/test/Types.Tests/Resolvers/MapFieldTests.cs b/src/HotChocolate/Core/test/Types.Tests/Resolvers/MapFieldTests.cs index efe74ffd0d0..0771027422c 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Resolvers/MapFieldTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Resolvers/MapFieldTests.cs @@ -4,7 +4,6 @@ using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Resolvers; diff --git a/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverDescriptorTests.cs b/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverDescriptorTests.cs index 6552c53ff06..05d493102c9 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverDescriptorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverDescriptorTests.cs @@ -1,6 +1,5 @@ using System.Linq; using HotChocolate.Resolvers.Expressions; -using Xunit; namespace HotChocolate.Resolvers; diff --git a/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverServiceTests.cs b/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverServiceTests.cs index 61ae5db8904..a980c44ab05 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverServiceTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverServiceTests.cs @@ -5,7 +5,6 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.ObjectPool; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Resolvers; diff --git a/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverTaskNullTests.cs b/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverTaskNullTests.cs index d285cdf6825..56fed83b3e0 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverTaskNullTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverTaskNullTests.cs @@ -3,7 +3,6 @@ using HotChocolate.Types; using Snapshooter; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Resolvers; diff --git a/src/HotChocolate/Core/test/Types.Tests/SchemaBuilderTests.cs b/src/HotChocolate/Core/test/Types.Tests/SchemaBuilderTests.cs index 3446fce1110..a11bec78fa9 100644 --- a/src/HotChocolate/Core/test/Types.Tests/SchemaBuilderTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/SchemaBuilderTests.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Configuration; @@ -10,10 +9,8 @@ using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; using HotChocolate.Tests; -using HotChocolate.Utilities; using Moq; using Snapshooter.Xunit; -using Xunit; using SnapshotExtensions = CookieCrumble.SnapshotExtensions; namespace HotChocolate; diff --git a/src/HotChocolate/Core/test/Types.Tests/SchemaCoordinateTests.cs b/src/HotChocolate/Core/test/Types.Tests/SchemaCoordinateTests.cs index bf9c58152ea..be8fea38e72 100644 --- a/src/HotChocolate/Core/test/Types.Tests/SchemaCoordinateTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/SchemaCoordinateTests.cs @@ -1,7 +1,6 @@ using ChilliCream.Testing; using HotChocolate.Types; using Snapshooter.Xunit; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/SchemaFirstTests.cs b/src/HotChocolate/Core/test/Types.Tests/SchemaFirstTests.cs index c3ca527bcf8..a2c41120e91 100644 --- a/src/HotChocolate/Core/test/Types.Tests/SchemaFirstTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/SchemaFirstTests.cs @@ -10,7 +10,6 @@ using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; using Snapshooter.Xunit; -using Xunit; using Snapshot = Snapshooter.Xunit.Snapshot; namespace HotChocolate; diff --git a/src/HotChocolate/Core/test/Types.Tests/SchemaSerializerTests.cs b/src/HotChocolate/Core/test/Types.Tests/SchemaSerializerTests.cs index 7b009264a05..9b292c773fa 100644 --- a/src/HotChocolate/Core/test/Types.Tests/SchemaSerializerTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/SchemaSerializerTests.cs @@ -6,7 +6,6 @@ using ChilliCream.Testing; using HotChocolate.Types; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/ArgumentTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/ArgumentTests.cs index 981998bde5e..ca8f5b65066 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/ArgumentTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/ArgumentTests.cs @@ -6,7 +6,6 @@ using HotChocolate.Resolvers; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Attributes/RequiredAttributeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Attributes/RequiredAttributeTests.cs index ced8d02419c..b8b8687df88 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Attributes/RequiredAttributeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Attributes/RequiredAttributeTests.cs @@ -3,7 +3,6 @@ using HotChocolate.Types.Descriptors; using HotChocolate.Utilities; using Snapshooter.Xunit; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ArgumentDescriptorTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ArgumentDescriptorTests.cs index c4d84e6edc8..ffad97bd314 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ArgumentDescriptorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ArgumentDescriptorTests.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using HotChocolate.Language; using HotChocolate.Types.Descriptors; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/DefaultNamingConventionsTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/DefaultNamingConventionsTests.cs index b4a0b1d9d58..0a9f024e569 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/DefaultNamingConventionsTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/DefaultNamingConventionsTests.cs @@ -1,5 +1,4 @@ using System; -using Xunit; // ReSharper disable once CheckNamespace namespace HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/DefaultTypeInspectorTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/DefaultTypeInspectorTests.cs index dd73fdead0f..c8885e2dfc1 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/DefaultTypeInspectorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/DefaultTypeInspectorTests.cs @@ -3,7 +3,6 @@ using System.Linq; using System.Reflection; using System.Threading.Tasks; -using Xunit; namespace HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/XmlDocumentationProviderTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/XmlDocumentationProviderTests.cs index 1a95d6e778d..2411195f418 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/XmlDocumentationProviderTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/XmlDocumentationProviderTests.cs @@ -2,7 +2,6 @@ using System.Linq; using System.Text.RegularExpressions; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/DescriptorContextTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/DescriptorContextTests.cs index 86c09e39224..3b20e23a92c 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/DescriptorContextTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/DescriptorContextTests.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using HotChocolate.Configuration; using HotChocolate.Utilities; -using Xunit; namespace HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/DirectiveArgumentDescriptorTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/DirectiveArgumentDescriptorTests.cs index 9d09cd5cb14..34e30ce1951 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/DirectiveArgumentDescriptorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/DirectiveArgumentDescriptorTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using HotChocolate.Types.Descriptors; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/DirectiveDescriptorTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/DirectiveDescriptorTests.cs index 3dfc78ed77a..760468b8bc2 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/DirectiveDescriptorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/DirectiveDescriptorTests.cs @@ -1,7 +1,6 @@ using System; using System.Linq; using HotChocolate.Types.Descriptors; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/InputFieldDescriptorTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/InputFieldDescriptorTests.cs index 574591c947e..16428475044 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/InputFieldDescriptorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/InputFieldDescriptorTests.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using HotChocolate.Language; using HotChocolate.Types.Descriptors; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/InputObjectTypeDescriptorTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/InputObjectTypeDescriptorTests.cs index 1645c960ceb..26d93bd10e0 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/InputObjectTypeDescriptorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/InputObjectTypeDescriptorTests.cs @@ -1,5 +1,4 @@ using HotChocolate.Types.Descriptors; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/InterfaceFieldDescriptorTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/InterfaceFieldDescriptorTests.cs index d57c7838766..49bc75e2758 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/InterfaceFieldDescriptorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/InterfaceFieldDescriptorTests.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Types.Descriptors; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ObjectFieldDescriptorTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ObjectFieldDescriptorTests.cs index 4ac8d63d85b..050c848d3a7 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ObjectFieldDescriptorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ObjectFieldDescriptorTests.cs @@ -4,7 +4,6 @@ using HotChocolate.Types.Descriptors; using HotChocolate.Types.Introspection; using Moq; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ObjectTypeDescriptorTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ObjectTypeDescriptorTests.cs index dc7c68faae5..1585c9427cc 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ObjectTypeDescriptorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ObjectTypeDescriptorTests.cs @@ -5,7 +5,6 @@ using HotChocolate.Resolvers; using HotChocolate.Types.Descriptors; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ResolveObjectFieldDescriptorExtensionsTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ResolveObjectFieldDescriptorExtensionsTests.cs index cd67b81ddb5..cb818c720a0 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ResolveObjectFieldDescriptorExtensionsTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ResolveObjectFieldDescriptorExtensionsTests.cs @@ -3,7 +3,6 @@ using System.Threading.Tasks; using HotChocolate.Resolvers; using Moq; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/TypeReferences/ClrTypeReferenceTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/TypeReferences/ClrTypeReferenceTests.cs index 4ed75b6e82e..da02264f8f2 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/TypeReferences/ClrTypeReferenceTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/TypeReferences/ClrTypeReferenceTests.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Internal; -using Xunit; // ReSharper disable once CheckNamespace namespace HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/TypeReferences/SchemaTypeReferenceTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/TypeReferences/SchemaTypeReferenceTests.cs index 391e3b87e13..66354543c8f 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/TypeReferences/SchemaTypeReferenceTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/TypeReferences/SchemaTypeReferenceTests.cs @@ -1,6 +1,5 @@ using System; using System.Threading.Tasks; -using Xunit; using static HotChocolate.Tests.TestHelper; // ReSharper disable once CheckNamespace diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/TypeReferences/SyntaxTypeReferenceTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/TypeReferences/SyntaxTypeReferenceTests.cs index 4f8e24b3187..88047919a75 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/TypeReferences/SyntaxTypeReferenceTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/TypeReferences/SyntaxTypeReferenceTests.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/DirectiveLocationTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/DirectiveLocationTests.cs index aeeecb59ea6..6951f186440 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/DirectiveLocationTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/DirectiveLocationTests.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/DirectiveTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/DirectiveTypeTests.cs index fc1b8e02dae..bbe17f17a00 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/DirectiveTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/DirectiveTypeTests.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Directives/CostDirectiveTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Directives/CostDirectiveTests.cs index 920bfdb2b2d..1d4cb03aab7 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Directives/CostDirectiveTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Directives/CostDirectiveTests.cs @@ -1,5 +1,4 @@ using System; -using Xunit; namespace HotChocolate.Types.Directives; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Directives/MultiplierPathStringTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Directives/MultiplierPathStringTests.cs index ec4de48ab0e..0ebddf55d64 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Directives/MultiplierPathStringTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Directives/MultiplierPathStringTests.cs @@ -1,5 +1,4 @@ using System; -using Xunit; namespace HotChocolate.Types.Directives; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Directives/SpecedDirectiveTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Directives/SpecedDirectiveTypeTests.cs index a1c3991a7af..35d4b4c7206 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Directives/SpecedDirectiveTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Directives/SpecedDirectiveTypeTests.cs @@ -1,6 +1,5 @@ using System.Linq; using HotChocolate.Utilities; -using Xunit; namespace HotChocolate.Types.Directives; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeDescriptorAttributeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeDescriptorAttributeTests.cs index 3f40288c9de..c6e147bb325 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeDescriptorAttributeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeDescriptorAttributeTests.cs @@ -2,7 +2,6 @@ using System.Linq; using System.Reflection; using HotChocolate.Types.Descriptors; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeExtensionTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeExtensionTests.cs index d745a30a5d7..08f3e7b59a9 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeExtensionTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeExtensionTests.cs @@ -2,7 +2,6 @@ using System.Linq; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeTests.cs index 351e8b65369..9df5b5fbdb1 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeTests.cs @@ -6,7 +6,6 @@ using HotChocolate.Types.Descriptors.Definitions; using Moq; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeUnsafeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeUnsafeTests.cs index d51f246cb7a..16772dbd509 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeUnsafeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeUnsafeTests.cs @@ -4,7 +4,6 @@ using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeAttributeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeAttributeTests.cs index d4adc0a76f1..258bf93c0a3 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeAttributeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeAttributeTests.cs @@ -5,7 +5,6 @@ using HotChocolate.Tests; using HotChocolate.Types.Descriptors; using Snapshooter.Xunit; -using Xunit; using QueryRequestBuilder = HotChocolate.Execution.QueryRequestBuilder; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeDictionaryTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeDictionaryTests.cs index ae49e68c1d9..aedbde4478e 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeDictionaryTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeDictionaryTests.cs @@ -3,7 +3,6 @@ using System.Threading.Tasks; using HotChocolate.Execution; using Snapshooter.Xunit; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/InputValueFormatterTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/InputValueFormatterTests.cs index c49b415b88f..dd0c58a3475 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/InputValueFormatterTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/InputValueFormatterTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using HotChocolate.Tests; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeAttributeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeAttributeTests.cs index 68ef8964564..82659626edc 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeAttributeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeAttributeTests.cs @@ -1,7 +1,6 @@ using System; using System.Reflection; using HotChocolate.Types.Descriptors; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeExtensionTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeExtensionTests.cs index 84c6ac1e8f3..471f83dfce7 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeExtensionTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeExtensionTests.cs @@ -1,6 +1,5 @@ #nullable enable -using System; using System.Linq; using Snapshooter.Xunit; using HotChocolate.Language; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeTests.cs index 706d811daa2..5335341e61e 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeTests.cs @@ -10,7 +10,6 @@ using HotChocolate.Types.Descriptors; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/ListTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/ListTypeTests.cs index 01f5d74dce4..61cd1749e74 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/ListTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/ListTypeTests.cs @@ -3,7 +3,6 @@ using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/NativeTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/NativeTypeTests.cs index 2aede7489d5..a56f829352d 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/NativeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/NativeTypeTests.cs @@ -1,5 +1,4 @@ using System; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/NonNullTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/NonNullTypeTests.cs index 8e96b964dd3..38492bfe131 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/NonNullTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/NonNullTypeTests.cs @@ -1,5 +1,4 @@ using System; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/ObjectFieldExpressionTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/ObjectFieldExpressionTests.cs index 52c962a31c9..dfcb29361a4 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/ObjectFieldExpressionTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/ObjectFieldExpressionTests.cs @@ -2,9 +2,7 @@ using System.Collections.Generic; using System.Linq; using HotChocolate.Execution; -using Snapshooter; using Snapshooter.Xunit; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeAttributeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeAttributeTests.cs index 0970973b146..25e5037eb21 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeAttributeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeAttributeTests.cs @@ -5,7 +5,6 @@ using HotChocolate.Types.Descriptors; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeExtensionTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeExtensionTests.cs index 56e2fac2820..f0f6a52943d 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeExtensionTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeExtensionTests.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/OneOfIntegrationTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/OneOfIntegrationTests.cs index f7840bcceb3..64d13ab6d82 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/OneOfIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/OneOfIntegrationTests.cs @@ -5,7 +5,6 @@ using HotChocolate.Tests; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/PaginationTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/PaginationTests.cs index 467c7c84e39..619f2e7a4b5 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/PaginationTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/PaginationTests.cs @@ -1,87 +1,88 @@ +// ReSharper disable UnusedAutoPropertyAccessor.Global +// ReSharper disable AutoPropertyCanBeMadeGetOnly.Global +// ReSharper disable ClassNeverInstantiated.Global +// ReSharper disable MemberCanBePrivate.Global + +#nullable enable + using System.Collections.Generic; using System.Threading.Tasks; using HotChocolate.Execution; +using HotChocolate.Tests; using HotChocolate.Types.Pagination; using Microsoft.Extensions.DependencyInjection; -using Snapshooter.Xunit; -using Xunit; -using static HotChocolate.Tests.TestHelper; - -#nullable enable namespace HotChocolate.Types; public class PaginationTests { - [Fact(Skip = "Test is flaky")] + [Fact] public async Task Execute_NestedOffsetPaging_NoCyclicDependencies() - { - await TryTest(async ct => - { - var executor = - await new ServiceCollection() - .AddGraphQL() - .AddQueryType() - .SetPagingOptions(new PagingOptions { DefaultPageSize = 50, }) - .Services - .BuildServiceProvider() - .GetRequestExecutorAsync(cancellationToken: ct); - - var executionResult = await executor - .ExecuteAsync(@" - { - users { + => await SnapshotTest + .Create( + async (snapshot, ct) => + { + var executor = + await new ServiceCollection() + .AddGraphQL() + .AddQueryType() + .SetPagingOptions(new PagingOptions { DefaultPageSize = 50, }) + .BuildRequestExecutorAsync(cancellationToken: ct); + + snapshot.Add( + await executor.ExecuteAsync( + """ + { + users { items { - parents { - items { - firstName - } + parents { + items { + firstName } - } + } + } + } } - }", - ct); + """, + ct)); + }) + .MatchAsync(); - executionResult.ToJson().MatchSnapshot(); - }); - } - - [Fact(Skip = "Flaky test.")] + [Fact] public async Task Execute_NestedOffsetPaging_With_Indirect_Cycles() - { - await TryTest(async ct => - { - var executor = - await new ServiceCollection() - .AddGraphQL() - .AddQueryType() - .SetPagingOptions(new PagingOptions { DefaultPageSize = 50, }) - .Services - .BuildServiceProvider() - .GetRequestExecutorAsync(cancellationToken: ct); - - var executionResult = await executor - .ExecuteAsync(@" - { - users { - items { - groups { + => await SnapshotTest + .Create( + async (snapshot, ct) => + { + var executor = + await new ServiceCollection() + .AddGraphQL() + .AddQueryType() + .SetPagingOptions(new PagingOptions { DefaultPageSize = 50, }) + .BuildRequestExecutorAsync(cancellationToken: ct); + + snapshot.Add(await executor + .ExecuteAsync( + """ + { + users { + items { + groups { items { - members { - items { - firstName - } + members { + items { + firstName } + } } + } } - } - } - }", - ct); - - executionResult.ToJson().MatchSnapshot(); - }); - } + } + } + """, + ct)); + }) + .MatchAsync(); public class User { @@ -106,19 +107,21 @@ protected override void Configure(IObjectTypeDescriptor descriptor) descriptor .Field(i => i.Parents) .UseOffsetPaging() - .Resolve(() => new[] - { - new User { FirstName = "Mother", }, - new User { FirstName = "Father", }, - }); + .Resolve( + () => new[] + { + new User { FirstName = "Mother", }, + new User { FirstName = "Father", }, + }); descriptor .Field(i => i.Groups) .UseOffsetPaging() - .Resolve(() => new[] - { - new Group { FirstName = "Admin", }, - }); + .Resolve( + () => new[] + { + new Group { FirstName = "Admin", }, + }); } } @@ -129,11 +132,12 @@ protected override void Configure(IObjectTypeDescriptor descriptor) descriptor .Field(i => i.Members) .UseOffsetPaging() - .Resolve(() => new[] - { - new User { FirstName = "Mother", }, - new User { FirstName = "Father", }, - }); + .Resolve( + () => new[] + { + new User { FirstName = "Mother", }, + new User { FirstName = "Father", }, + }); } } @@ -151,4 +155,4 @@ protected override void Configure(IObjectTypeDescriptor descriptor) .UseOffsetPaging(); } } -} +} \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdAttributeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdAttributeTests.cs index 11bc2196665..d5381cdc657 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdAttributeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdAttributeTests.cs @@ -10,7 +10,6 @@ using HotChocolate.Types.Descriptors.Definitions; using HotChocolate.Utilities; using Snapshooter.Xunit; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdDescriptorTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdDescriptorTests.cs index aa4ab466935..ba428ac0fc0 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdDescriptorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdDescriptorTests.cs @@ -2,7 +2,6 @@ using System.Threading.Tasks; using HotChocolate.Execution; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types.Relay; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdMiddlewareTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdMiddlewareTests.cs index 9ea9b1212fb..f5eeee7896d 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdMiddlewareTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdMiddlewareTests.cs @@ -1,7 +1,6 @@ using System.Threading.Tasks; using HotChocolate.Execution; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types.Relay; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdSerializerTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdSerializerTests.cs index 53cf0caca6a..f24df3e66ce 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdSerializerTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdSerializerTests.cs @@ -1,6 +1,5 @@ using System; using System.Text; -using Xunit; namespace HotChocolate.Types.Relay; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeFieldSupportTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeFieldSupportTests.cs index 2fd85f7f236..e087145f2c5 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeFieldSupportTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeFieldSupportTests.cs @@ -1,4 +1,3 @@ -using System; using System.Threading.Tasks; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeResolverTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeResolverTests.cs index ad632eb671f..22424a79d39 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeResolverTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeResolverTests.cs @@ -5,7 +5,6 @@ using HotChocolate.Types.Relay; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/RelaySchemaTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/RelaySchemaTests.cs index 12bd17ffaf9..735840fbbbf 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/RelaySchemaTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/RelaySchemaTests.cs @@ -1,4 +1,3 @@ -using System; using System.Threading.Tasks; using HotChocolate.Execution; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/SDL/EnumTypeSchemaFirstTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/SDL/EnumTypeSchemaFirstTests.cs index b2ee0af046c..337994d5e4a 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/SDL/EnumTypeSchemaFirstTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/SDL/EnumTypeSchemaFirstTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using HotChocolate.Tests; using Snapshooter.Xunit; -using Xunit; using System.Threading.Tasks; using Snapshooter; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/SDL/InputObjectTypeSchemaFirstTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/SDL/InputObjectTypeSchemaFirstTests.cs index 36d60dc975d..cd46c4ab0b6 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/SDL/InputObjectTypeSchemaFirstTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/SDL/InputObjectTypeSchemaFirstTests.cs @@ -1,5 +1,4 @@ using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types.SDL; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/SDL/ObjectTypeSchemaFirstTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/SDL/ObjectTypeSchemaFirstTests.cs index 7cfd6e44ba7..6ce9f294a7d 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/SDL/ObjectTypeSchemaFirstTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/SDL/ObjectTypeSchemaFirstTests.cs @@ -1,5 +1,4 @@ using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types.SDL; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/BooleanTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/BooleanTypeTests.cs index 11804ad5289..114dbaea007 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/BooleanTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/BooleanTypeTests.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ByteArrayTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ByteArrayTypeTests.cs index 019c5bacaee..4f73cac2608 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ByteArrayTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ByteArrayTypeTests.cs @@ -1,7 +1,6 @@ using System; using System.Text; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ByteTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ByteTypeTests.cs index 1e73dc87ba6..f3ea7de47c1 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ByteTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ByteTypeTests.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/DateTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/DateTimeTypeTests.cs index 251f76ce1ba..d9abef98f61 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/DateTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/DateTimeTypeTests.cs @@ -6,7 +6,6 @@ using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/DateTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/DateTypeTests.cs index 5a7505038e0..b9efc759bb0 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/DateTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/DateTypeTests.cs @@ -7,7 +7,6 @@ using HotChocolate.Tests; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/DecimalTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/DecimalTypeTests.cs index 3e7c9e97ac4..f489fe5fb80 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/DecimalTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/DecimalTypeTests.cs @@ -1,7 +1,6 @@ using System; using System.Text; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/FloatTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/FloatTypeTests.cs index 3ff599197e7..e059e45df01 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/FloatTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/FloatTypeTests.cs @@ -1,7 +1,6 @@ using System; using System.Text; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/IdTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/IdTypeTests.cs index aeff3074969..cfc9796eb72 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/IdTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/IdTypeTests.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/IntTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/IntTypeTests.cs index 63925153230..129d4d3d8f3 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/IntTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/IntTypeTests.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/Iso8601DurationTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/Iso8601DurationTests.cs index 2abc31fc035..bff76f88957 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/Iso8601DurationTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/Iso8601DurationTests.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/LongTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/LongTypeTests.cs index c2bff75138f..fc3585b459c 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/LongTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/LongTypeTests.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/MultiplierPathTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/MultiplierPathTypeTests.cs index d4c7274e364..67594feaac5 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/MultiplierPathTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/MultiplierPathTypeTests.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ScalarBindingTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ScalarBindingTests.cs index fa79fd26ac1..481ac6f5c5b 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ScalarBindingTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ScalarBindingTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ScalarsTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ScalarsTests.cs index e3a6965fc15..13fbfcda815 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ScalarsTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ScalarsTests.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ShortTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ShortTypeTests.cs index c961523ea7a..f32d19f66e8 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ShortTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ShortTypeTests.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/StringTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/StringTypeTests.cs index e9e590aef50..a81bc4922bf 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/StringTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/StringTypeTests.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/TimeSpanTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/TimeSpanTypeTests.cs index 20bf841be43..fc7d694fbe6 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/TimeSpanTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/TimeSpanTypeTests.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Language; -using Xunit; using Snapshooter.Xunit; using HotChocolate.Execution; using Snapshooter; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/UrlTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/UrlTypeTests.cs index 0f5469ec4b0..e3d011c5516 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/UrlTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/UrlTypeTests.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/UuidTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/UuidTypeTests.cs index 1740f03fa59..264642ad927 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/UuidTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/UuidTypeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/SubscriptionTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/SubscriptionTypeTests.cs index b8e4f8be76b..a5c8a2c13b9 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/SubscriptionTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/SubscriptionTypeTests.cs @@ -1,20 +1,21 @@ +// ReSharper disable UnusedAutoPropertyAccessor.Global +// ReSharper disable AutoPropertyCanBeMadeGetOnly.Global +// ReSharper disable ClassNeverInstantiated.Global +// ReSharper disable MemberCanBePrivate.Global + +#pragma warning disable CS0618 // Type or member is obsolete +#nullable enable + using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Threading; using System.Threading.Tasks; using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Subscriptions; +using HotChocolate.Tests; using Microsoft.Extensions.DependencyInjection; -using Snapshooter; -using Snapshooter.Xunit; -using static HotChocolate.Tests.TestHelper; -using Snapshot = Snapshooter.Xunit.Snapshot; - -#nullable enable -#pragma warning disable CS0618 namespace HotChocolate.Types; @@ -22,242 +23,219 @@ public class SubscriptionTypeTests : TypeTestBase { [Fact] public async Task Subscribe_With_Enumerable() - { - Snapshot.FullName(); - - await TryTest( - async ct => - { - // arrange - // act - var schema = SchemaBuilder.New() - .AddSubscriptionType( - t => t - .Field("test") - .Type() - .Resolve(ctx => ctx.GetEventMessage()) - .Subscribe(_ => new List { "a", "b", "c", })) - .ModifyOptions(t => t.StrictValidation = false) - .Create(); - - // assert - var executor = schema.MakeExecutable(); - var stream = (IResponseStream)await executor.ExecuteAsync( - "subscription { test }", - ct); - - var results = new StringBuilder(); - - await foreach (var queryResult in - stream.ReadResultsAsync().WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - results.AppendLine(queryResult.ToJson()); - } - - SnapshotExtension.MatchSnapshot(results.ToString()); - }); - } + var executor = + await new ServiceCollection() + .AddGraphQL() + .AddSubscriptionType( + t => t + .Field("test") + .Type() + .Resolve(ctx => ctx.GetEventMessage()) + .Subscribe(_ => new List { "a", "b", "c", })) + .ModifyOptions(t => t.StrictValidation = false) + .BuildRequestExecutorAsync(cancellationToken: ct); + + var result = await executor.ExecuteAsync( + """ + subscription { + test + } + """, + ct); + + await foreach (var queryResult in result.ExpectResponseStream() + .ReadResultsAsync().WithCancellation(ct)) + { + snapshot.Add(queryResult); + } + }) + .MatchAsync(); [Fact] public async Task Subscribe_With_Enumerable_Async() - { - Snapshot.FullName(); - - await TryTest( - async ct => - { - // arrange - // act - var schema = SchemaBuilder.New() - .AddSubscriptionType( - t => t - .Field("test") - .Type() - .Resolve(ctx => ctx.GetEventMessage()) - .Subscribe( - _ => Task.FromResult>( - new List { "a", "b", "c", }))) - .ModifyOptions(t => t.StrictValidation = false) - .Create(); - - // assert - var executor = schema.MakeExecutable(); - var stream = (IResponseStream)await executor.ExecuteAsync( - "subscription { test }", - ct); - - var results = new StringBuilder(); - - await foreach (var result in - stream.ReadResultsAsync().WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - results.AppendLine(result.ToJson()); - } - - SnapshotExtension.MatchSnapshot(results.ToString()); - }); - } + var executor = + await new ServiceCollection() + .AddGraphQL() + .AddSubscriptionType( + t => t + .Field("test") + .Type() + .Resolve(ctx => ctx.GetEventMessage()) + .Subscribe( + _ => Task.FromResult>( + new List { "a", "b", "c", }))) + .ModifyOptions(t => t.StrictValidation = false) + .BuildRequestExecutorAsync(cancellationToken: ct); + + var result = await executor.ExecuteAsync( + """ + subscription { + test + } + """, + ct); + + await foreach (var queryResult in result.ExpectResponseStream() + .ReadResultsAsync().WithCancellation(ct)) + { + snapshot.Add(queryResult); + } + }) + .MatchAsync(); [Fact] public async Task Subscribe_With_Observable() - { - Snapshot.FullName(); - - await TryTest( - async ct => - { - // arrange - var observable = new TestObservable(); - - // act - var schema = SchemaBuilder.New() - .AddSubscriptionType( - t => t - .Field("test") - .Type() - .Resolve(ctx => ctx.GetEventMessage()) - .Subscribe(_ => observable)) - .ModifyOptions(t => t.StrictValidation = false) - .Create(); - - // assert - var executor = schema.MakeExecutable(); - var stream = (IResponseStream)await executor.ExecuteAsync( - "subscription { test }", - ct); - - var results = new StringBuilder(); - - await foreach (var queryResult in - stream.ReadResultsAsync().WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - var result = queryResult; - results.AppendLine(result.ToJson()); - } + var observable = new TestObservable(); + + var executor = + await new ServiceCollection() + .AddGraphQL() + .AddSubscriptionType( + t => t + .Field("test") + .Type() + .Resolve(ctx => ctx.GetEventMessage()) + .Subscribe(_ => observable)) + .ModifyOptions(t => t.StrictValidation = false) + .BuildRequestExecutorAsync(cancellationToken: ct); + + var result = await executor.ExecuteAsync( + """ + subscription { + test + } + """, + ct); + + await foreach (var queryResult in result.ExpectResponseStream() + .ReadResultsAsync().WithCancellation(ct)) + { + snapshot.Add(queryResult); + } - Assert.True(observable.DisposeRaised); - SnapshotExtension.MatchSnapshot(results.ToString()); - }); - } + Assert.True(observable.DisposeRaised); + }) + .MatchAsync(); [Fact] public async Task Subscribe_With_Observable_Async() - { - Snapshot.FullName(); - - await TryTest( - async ct => - { - // arrange - var observable = new TestObservable(); - - // act - var schema = SchemaBuilder.New() - .AddSubscriptionType( - t => t - .Field("test") - .Type() - .Resolve(ctx => ctx.GetEventMessage()) - .Subscribe(_ => Task.FromResult>(observable))) - .ModifyOptions(t => t.StrictValidation = false) - .Create(); - - // assert - var executor = schema.MakeExecutable(); - var stream = (IResponseStream)await executor.ExecuteAsync( - "subscription { test }", - ct); - - var results = new StringBuilder(); - - await foreach (var result in - stream.ReadResultsAsync().WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - results.AppendLine(result.ToJson()); - } + var observable = new TestObservable(); + + var executor = + await new ServiceCollection() + .AddGraphQL() + .AddSubscriptionType( + t => t + .Field("test") + .Type() + .Resolve(ctx => ctx.GetEventMessage()) + .Subscribe(_ => Task.FromResult>(observable))) + .ModifyOptions(t => t.StrictValidation = false) + .BuildRequestExecutorAsync(cancellationToken: ct); + + var result = await executor.ExecuteAsync( + """ + subscription { + test + } + """, + ct); + + await foreach (var queryResult in result.ExpectResponseStream() + .ReadResultsAsync().WithCancellation(ct)) + { + snapshot.Add(queryResult); + } - Assert.True(observable.DisposeRaised); - SnapshotExtension.MatchSnapshot(results.ToString()); - }); - } + Assert.True(observable.DisposeRaised); + }) + .MatchAsync(); [Fact] public async Task Subscribe_With_AsyncEnumerable() - { - Snapshot.FullName(); - - await TryTest( - async ct => - { - // arrange - // act - var schema = SchemaBuilder.New() - .AddSubscriptionType( - t => t - .Field("test") - .Type() - .Resolve(ctx => ctx.GetEventMessage()) - .Subscribe(_ => new TestAsyncEnumerable())) - .ModifyOptions(t => t.StrictValidation = false) - .Create(); - - // assert - var executor = schema.MakeExecutable(); - var stream = (IResponseStream)await executor.ExecuteAsync( - "subscription { test }", - ct); - - var results = new StringBuilder(); - - await foreach (var result in - stream.ReadResultsAsync().WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - results.AppendLine(result.ToJson()); - } - - SnapshotExtension.MatchSnapshot(results.ToString()); - }); - } + var executor = + await new ServiceCollection() + .AddGraphQL() + .AddSubscriptionType( + t => t + .Field("test") + .Type() + .Resolve(ctx => ctx.GetEventMessage()) + .Subscribe(_ => new TestAsyncEnumerable())) + .ModifyOptions(t => t.StrictValidation = false) + .BuildRequestExecutorAsync(cancellationToken: ct); + + var result = await executor.ExecuteAsync( + """ + subscription { + test + } + """, + ct); + + await foreach (var queryResult in result.ExpectResponseStream() + .ReadResultsAsync().WithCancellation(ct)) + { + snapshot.Add(queryResult); + } + }) + .MatchAsync(); [Fact] public async Task Subscribe_With_AsyncEnumerable_Async() - { - Snapshot.FullName(); - - await TryTest( - async ct => - { - // arrange - // act - var schema = SchemaBuilder.New() - .AddSubscriptionType( - t => t - .Field("test") - .Type() - .Resolve(ctx => ctx.GetEventMessage()) - .Subscribe( - _ => Task.FromResult>( - new TestAsyncEnumerable()))) - .ModifyOptions(t => t.StrictValidation = false) - .Create(); - - // assert - var executor = schema.MakeExecutable(); - var stream = (IResponseStream)await executor.ExecuteAsync( - "subscription { test }", - ct); - - var results = new StringBuilder(); - - await foreach (var result in - stream.ReadResultsAsync().WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - results.AppendLine(result.ToJson()); - } - - SnapshotExtension.MatchSnapshot(results.ToString()); - }); - } + var executor = + await new ServiceCollection() + .AddGraphQL() + .AddSubscriptionType( + t => t + .Field("test") + .Type() + .Resolve(ctx => ctx.GetEventMessage()) + .Subscribe( + _ => Task.FromResult>( + new TestAsyncEnumerable()))) + .ModifyOptions(t => t.StrictValidation = false) + .BuildRequestExecutorAsync(cancellationToken: ct); + + var result = await executor.ExecuteAsync( + """ + subscription { + test + } + """, + ct); + + await foreach (var queryResult in result.ExpectResponseStream() + .ReadResultsAsync().WithCancellation(ct)) + { + snapshot.Add(queryResult); + } + }) + .MatchAsync(); [InlineData("onSomething")] [InlineData("onSomethingTask")] @@ -267,78 +245,62 @@ await TryTest( [InlineData("onSomethingObjValueTask")] [Theory] public async Task SubscribeAndResolve_Attribute_AsyncEnumerable(string field) - { - var snapshotFullName = Snapshot.FullName(new SnapshotNameExtension(field)); - - await TryTest( - async ct => - { - // arrange - // act - var schema = SchemaBuilder.New() - .AddSubscriptionType() - .ModifyOptions(t => t.StrictValidation = false) - .Create(); - - // assert - var executor = schema.MakeExecutable(); - var stream = (IResponseStream)await executor.ExecuteAsync( - "subscription { " + field + " }", - ct); - - var results = new StringBuilder(); - - await foreach (var result in - stream.ReadResultsAsync().WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - results.AppendLine(result.ToJson()); - } - - results.ToString().MatchSnapshot(snapshotFullName); - }); - } + var executor = + await new ServiceCollection() + .AddGraphQL() + .AddSubscriptionType() + .ModifyOptions(t => t.StrictValidation = false) + .BuildRequestExecutorAsync(cancellationToken: ct); + + var result = await executor.ExecuteAsync( + $"subscription {{ {field} }}", + ct); + + await foreach (var queryResult in result.ExpectResponseStream() + .ReadResultsAsync().WithCancellation(ct)) + { + snapshot.Add(queryResult); + } + }, + postFix: field) + .MatchAsync(); [InlineData("onSomething")] [Theory] public async Task SubscribeAndResolve_Attribute_ISourceStream(string field) - { - var snapshotFullName = Snapshot.FullName(new SnapshotNameExtension(field)); - - await TryTest( - async ct => - { - // arrange - // act - var executor = await CreateExecutorAsync( - r => r - .AddInMemorySubscriptions() - .AddQueryType(c => c.Name("Query").Field("a").Resolve("b")) - .AddMutationType() - .AddSubscriptionType()); - - // act - var subscriptionResult = (IResponseStream)await executor.ExecuteAsync( - "subscription { " + field + " (userId: \"1\") }", - ct); - - var mutationResult = await executor.ExecuteAsync( - "mutation { writeBoolean(userId: \"1\" message: true) }", - ct); - Assert.Null(mutationResult.ExpectQueryResult().Errors); - - // assert - var results = new StringBuilder(); - - await foreach (var result in - subscriptionResult.ReadResultsAsync().WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - results.AppendLine(result.ToJson()); - break; - } - - results.ToString().MatchSnapshot(snapshotFullName); - }); - } + var executor = await TestHelper.CreateExecutorAsync( + r => r + .AddInMemorySubscriptions() + .AddQueryType(c => c.Name("Query").Field("a").Resolve("b")) + .AddMutationType() + .AddSubscriptionType()); + + var subscriptionResult = await executor.ExecuteAsync( + "subscription { " + field + " (userId: \"1\") }", + ct); + + var mutationResult = await executor.ExecuteAsync( + "mutation { writeBoolean(userId: \"1\" message: true) }", + ct); + Assert.Null(mutationResult.ExpectQueryResult().Errors); + + await foreach (var queryResult in subscriptionResult.ExpectResponseStream() + .ReadResultsAsync().WithCancellation(ct)) + { + snapshot.Add(queryResult); + break; + } + }, + postFix: field) + .MatchAsync(); [InlineData("onSomething")] [InlineData("onSomethingTask")] @@ -348,36 +310,29 @@ await TryTest( [InlineData("onSomethingObjValueTask")] [Theory] public async Task SubscribeAndResolve_Attribute_Enumerable(string field) - { - var snapshotFullName = Snapshot.FullName(new SnapshotNameExtension(field)); - - await TryTest( - async ct => - { - // arrange - // act - var schema = SchemaBuilder.New() - .AddSubscriptionType() - .ModifyOptions(t => t.StrictValidation = false) - .Create(); - - // assert - var executor = schema.MakeExecutable(); - var stream = (IResponseStream)await executor.ExecuteAsync( - "subscription { " + field + " }", - ct); - - var results = new StringBuilder(); - - await foreach (var result in - stream.ReadResultsAsync().WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - results.AppendLine(result.ToJson()); - } - - results.ToString().MatchSnapshot(snapshotFullName); - }); - } + var executor = + await new ServiceCollection() + .AddGraphQL() + .AddSubscriptionType() + .ModifyOptions(t => t.StrictValidation = false) + .BuildRequestExecutorAsync(cancellationToken: ct); + + var result = await executor.ExecuteAsync( + $"subscription {{ {field} }}", + ct); + + await foreach (var queryResult in result.ExpectResponseStream() + .ReadResultsAsync().WithCancellation(ct)) + { + snapshot.Add(queryResult); + } + }, + postFix: field) + .MatchAsync(); [InlineData("onSomething")] [InlineData("onSomethingTask")] @@ -387,36 +342,29 @@ await TryTest( [InlineData("onSomethingObjValueTask")] [Theory] public async Task SubscribeAndResolve_Attribute_Queryable(string field) - { - var snapshotFullName = Snapshot.FullName(new SnapshotNameExtension(field)); - - await TryTest( - async ct => - { - // arrange - // act - var schema = SchemaBuilder.New() - .AddSubscriptionType() - .ModifyOptions(t => t.StrictValidation = false) - .Create(); - - // assert - var executor = schema.MakeExecutable(); - var stream = (IResponseStream)await executor.ExecuteAsync( - "subscription { " + field + " }", - ct); - - var results = new StringBuilder(); - - await foreach (var result in - stream.ReadResultsAsync().WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - results.AppendLine(result.ToJson()); - } - - results.ToString().MatchSnapshot(snapshotFullName); - }); - } + var executor = + await new ServiceCollection() + .AddGraphQL() + .AddSubscriptionType() + .ModifyOptions(t => t.StrictValidation = false) + .BuildRequestExecutorAsync(cancellationToken: ct); + + var result = await executor.ExecuteAsync( + $"subscription {{ {field} }}", + ct); + + await foreach (var queryResult in result.ExpectResponseStream() + .ReadResultsAsync().WithCancellation(ct)) + { + snapshot.Add(queryResult); + } + }, + postFix: field) + .MatchAsync(); [InlineData("onSomething")] [InlineData("onSomethingTask")] @@ -426,260 +374,208 @@ await TryTest( [InlineData("onSomethingObjValueTask")] [Theory] public async Task SubscribeAndResolve_Attribute_Observable(string field) - { - var snapshotFullName = Snapshot.FullName(new SnapshotNameExtension(field)); - - await TryTest( - async ct => - { - // arrange - // act - var schema = SchemaBuilder.New() - .AddSubscriptionType() - .ModifyOptions(t => t.StrictValidation = false) - .Create(); - - // assert - var executor = schema.MakeExecutable(); - var stream = (IResponseStream)await executor.ExecuteAsync( - "subscription { " + field + " }", - ct); - - var results = new StringBuilder(); - - await foreach (var queryResult in - stream.ReadResultsAsync().WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - var result = queryResult; - results.AppendLine(result.ToJson()); - } - - results.ToString().MatchSnapshot(snapshotFullName); - }); - } + var executor = + await new ServiceCollection() + .AddGraphQL() + .AddSubscriptionType() + .ModifyOptions(t => t.StrictValidation = false) + .BuildRequestExecutorAsync(cancellationToken: ct); + + var result = await executor.ExecuteAsync( + $"subscription {{ {field} }}", + ct); + + await foreach (var queryResult in result.ExpectResponseStream() + .ReadResultsAsync().WithCancellation(ct)) + { + snapshot.Add(queryResult); + } + }, + postFix: field) + .MatchAsync(); [Fact] public async Task Subscribe_Attribute_With_Argument_Topic() - { - var snapshot = new CookieCrumble.Snapshot(); - - await TryTest( - async ct => - { - // arrange - var executor = await CreateExecutorAsync( - r => r - .AddInMemorySubscriptions() - .AddQueryType(c => c.Name("Query").Field("a").Resolve("b")) - .AddMutationType() - .AddSubscriptionType()); - - // act - await using var subscriptionResult = await executor.ExecuteAsync( - "subscription { onMessage(userId: \"abc\") }", - ct); - var results = subscriptionResult.ExpectResponseStream().ReadResultsAsync(); - - // assert - var mutationResult = await executor.ExecuteAsync( - "mutation { writeMessage(userId: \"abc\" message: \"def\") }", - ct); - Assert.Null(mutationResult.ExpectQueryResult().Errors); - - await foreach (var queryResult in - results.WithCancellation(ct).ConfigureAwait(false)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - snapshot.Add(queryResult); - break; - } - }).ConfigureAwait(false); - - snapshot.MatchInline( - @"{ - ""data"": { - ""onMessage"": ""def"" - } - }"); - } + var executor = await TestHelper.CreateExecutorAsync( + r => r + .AddInMemorySubscriptions() + .AddQueryType(c => c.Name("Query").Field("a").Resolve("b")) + .AddMutationType() + .AddSubscriptionType()); + + // act + await using var subscriptionResult = await executor.ExecuteAsync( + "subscription { onMessage(userId: \"abc\") }", + ct); + var results = subscriptionResult.ExpectResponseStream().ReadResultsAsync(); + + // assert + var mutationResult = await executor.ExecuteAsync( + "mutation { writeMessage(userId: \"abc\" message: \"def\") }", + ct); + Assert.Null(mutationResult.ExpectQueryResult().Errors); + + await foreach (var queryResult in + results.WithCancellation(ct).ConfigureAwait(false)) + { + snapshot.Add(queryResult); + break; + } + }) + .MatchAsync(); [Fact] public async Task Subscribe_Attribute_With_Static_Topic_Defined_On_Attribute() - { - Snapshot.FullName(); - - await TryTest( - async ct => - { - // arrange - var executor = await CreateExecutorAsync( - r => r - .AddInMemorySubscriptions() - .AddQueryType(c => c.Name("Query").Field("a").Resolve("b")) - .AddMutationType() - .AddSubscriptionType()); - - // act - var stream = (IResponseStream)await executor.ExecuteAsync( - "subscription { onFixedMessage }", - ct); - - // assert - var mutationResult = await executor.ExecuteAsync( - "mutation { writeFixedMessage(message: \"def\") }", - ct); - Assert.Null(mutationResult.ExpectQueryResult().Errors); - - var results = new StringBuilder(); - - await foreach (var queryResult in - stream.ReadResultsAsync().WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - var result = queryResult; - results.AppendLine(result.ToJson()); - break; - } - - await stream.DisposeAsync(); - - SnapshotExtension.MatchSnapshot(results.ToString()); - }); - } + var executor = await TestHelper.CreateExecutorAsync( + r => r + .AddInMemorySubscriptions() + .AddQueryType(c => c.Name("Query").Field("a").Resolve("b")) + .AddMutationType() + .AddSubscriptionType()); + + // act + await using var subscriptionResult = await executor.ExecuteAsync( + "subscription { onFixedMessage }", + ct); + var results = subscriptionResult.ExpectResponseStream().ReadResultsAsync(); + + // assert + var mutationResult = await executor.ExecuteAsync( + "mutation { writeFixedMessage(message: \"def\") }", + ct); + Assert.Null(mutationResult.ExpectQueryResult().Errors); + + await foreach (var queryResult in + results.WithCancellation(ct).ConfigureAwait(false)) + { + snapshot.Add(queryResult); + break; + } + }) + .MatchAsync(); [Fact] public async Task Subscribe_Attribute_With_Static_Topic() - { - Snapshot.FullName(); - - await TryTest( - async ct => - { - // arrange - var executor = await CreateExecutorAsync( - r => r - .AddInMemorySubscriptions() - .AddQueryType(c => c.Name("Query").Field("a").Resolve("b")) - .AddMutationType() - .AddSubscriptionType()); - - // act - var stream = (IResponseStream)await executor.ExecuteAsync( - "subscription { onSysMessage }", - ct); - - // assert - var mutationResult = await executor.ExecuteAsync( - "mutation { writeSysMessage(message: \"def\") }", - ct); - Assert.Null(mutationResult.ExpectQueryResult().Errors); - - var results = new StringBuilder(); - - await foreach (var queryResult in - stream.ReadResultsAsync().WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - var result = queryResult; - results.AppendLine(result.ToJson()); - break; - } - - await stream.DisposeAsync(); - - SnapshotExtension.MatchSnapshot(results.ToString()); - }); - } + var executor = await TestHelper.CreateExecutorAsync( + r => r + .AddInMemorySubscriptions() + .AddQueryType(c => c.Name("Query").Field("a").Resolve("b")) + .AddMutationType() + .AddSubscriptionType()); + + // act + await using var subscriptionResult = await executor.ExecuteAsync( + "subscription { onSysMessage }", + ct); + var results = subscriptionResult.ExpectResponseStream().ReadResultsAsync(); + + // assert + var mutationResult = await executor.ExecuteAsync( + "mutation { writeSysMessage(message: \"def\") }", + ct); + Assert.Null(mutationResult.ExpectQueryResult().Errors); + + await foreach (var queryResult in + results.WithCancellation(ct).ConfigureAwait(false)) + { + snapshot.Add(queryResult); + break; + } + }) + .MatchAsync(); [Fact] public async Task Subscribe_Attribute_With_Static_Topic_Infer_Topic() - { - Snapshot.FullName(); - - await TryTest( - async ct => - { - // arrange - var executor = await CreateExecutorAsync( - r => r - .AddInMemorySubscriptions() - .AddQueryType(c => c.Name("Query").Field("a").Resolve("b")) - .AddMutationType() - .AddSubscriptionType()); - - // act - var stream = (IResponseStream)await executor.ExecuteAsync( - "subscription { onInferTopic }", - ct); - - // assert - var mutationResult = await executor.ExecuteAsync( - "mutation { writeOnInferTopic(message: \"def\") }", - ct); - Assert.Null(mutationResult.ExpectQueryResult().Errors); - - var results = new StringBuilder(); - - await foreach (var queryResult in - stream.ReadResultsAsync().WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - var result = queryResult; - results.AppendLine(result.ToJson()); - break; - } - - await stream.DisposeAsync(); - - SnapshotExtension.MatchSnapshot(results.ToString()); - }); - } + var executor = await TestHelper.CreateExecutorAsync( + r => r + .AddInMemorySubscriptions() + .AddQueryType(c => c.Name("Query").Field("a").Resolve("b")) + .AddMutationType() + .AddSubscriptionType()); + + // act + await using var subscriptionResult = await executor.ExecuteAsync( + "subscription { onInferTopic }", + ct); + var results = subscriptionResult.ExpectResponseStream().ReadResultsAsync(); + + // assert + var mutationResult = await executor.ExecuteAsync( + "mutation { writeOnInferTopic(message: \"def\") }", + ct); + Assert.Null(mutationResult.ExpectQueryResult().Errors); + + await foreach (var queryResult in + results.WithCancellation(ct).ConfigureAwait(false)) + { + snapshot.Add(queryResult); + break; + } + }) + .MatchAsync(); [Fact] public async Task Subscribe_Attribute_With_Explicitly_Defined_Subscribe() - { - Snapshot.FullName(); - - await TryTest( - async ct => - { - // arrange - var executor = await CreateExecutorAsync( - r => r - .AddInMemorySubscriptions() - .AddQueryType(c => c.Name("Query").Field("a").Resolve("b")) - .AddMutationType() - .AddSubscriptionType()); - - // act - var stream = (IResponseStream)await executor.ExecuteAsync( - "subscription { onExplicit }", - ct); - - // assert - var mutationResult = await executor.ExecuteAsync( - "mutation { writeOnExplicit(message: \"def\") }", - ct); - Assert.Null(mutationResult.ExpectQueryResult().Errors); - - var results = new StringBuilder(); - - await foreach (var queryResult in - stream.ReadResultsAsync().WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - var result = queryResult; - results.AppendLine(result.ToJson()); - break; - } - - await stream.DisposeAsync(); - - SnapshotExtension.MatchSnapshot(results.ToString()); - }); - } + var executor = await TestHelper.CreateExecutorAsync( + r => r + .AddInMemorySubscriptions() + .AddQueryType(c => c.Name("Query").Field("a").Resolve("b")) + .AddMutationType() + .AddSubscriptionType()); + + // act + await using var subscriptionResult = await executor.ExecuteAsync( + "subscription { onExplicit }", + ct); + var results = subscriptionResult.ExpectResponseStream().ReadResultsAsync(); + + // assert + var mutationResult = await executor.ExecuteAsync( + "mutation { writeOnExplicit(message: \"def\") }", + ct); + Assert.Null(mutationResult.ExpectQueryResult().Errors); + + await foreach (var queryResult in + results.WithCancellation(ct).ConfigureAwait(false)) + { + snapshot.Add(queryResult); + break; + } + }) + .MatchAsync(); [Fact] public async Task Subscribe_Attribute_Schema_Is_Generated_Correctly() { // arrange + var snapshot = new Snapshot(); + // act - var executor = await CreateExecutorAsync( + var executor = await TestHelper.CreateExecutorAsync( r => r .AddInMemorySubscriptions() .AddQueryType(c => c.Name("Query").Field("a").Resolve("b")) @@ -687,15 +583,19 @@ public async Task Subscribe_Attribute_Schema_Is_Generated_Correctly() .AddSubscriptionType()); // assert - SnapshotExtension.MatchSnapshot(executor.Schema.ToString()); + snapshot + .Add(executor.Schema) + .MatchMarkdown(); } [Fact] public async Task Subscribe_Attribute_Schema_Is_Generated_Correctly_2() { // arrange + var snapshot = new Snapshot(); + // act - var executor = await CreateExecutorAsync( + var executor = await TestHelper.CreateExecutorAsync( r => r .AddInMemorySubscriptions() .AddQueryType(c => c.Name("Query").Field("a").Resolve("b")) @@ -703,22 +603,28 @@ public async Task Subscribe_Attribute_Schema_Is_Generated_Correctly_2() .AddTypeExtension()); // assert - SnapshotExtension.MatchSnapshot(executor.Schema.ToString()); + snapshot + .Add(executor.Schema) + .MatchMarkdown(); } [Fact] public async Task Arguments_Can_Be_Declared_On_The_Stream_Schema() { // arrange + var snapshot = new Snapshot(); + // act - var executor = await CreateExecutorAsync( + var executor = await TestHelper.CreateExecutorAsync( r => r .AddInMemorySubscriptions() .AddQueryType(c => c.Name("Query").Field("a").Resolve("b")) .AddSubscriptionType()); // assert - SnapshotExtension.MatchSnapshot(executor.Schema.ToString()); + snapshot + .Add(executor.Schema) + .MatchMarkdown(); } [Fact] @@ -726,7 +632,7 @@ public async Task Arguments_Can_Be_Declared_On_The_Stream() { // arrange // act - var executor = await CreateExecutorAsync( + var executor = await TestHelper.CreateExecutorAsync( r => r .AddInMemorySubscriptions() .AddQueryType(c => c.Name("Query").Field("a").Resolve("b")) @@ -841,9 +747,7 @@ public class PureCodeFirstSourceStream public ValueTask> OnSomething( string userId, [Service] ITopicEventReceiver receiver) - { - return receiver.SubscribeAsync(userId); - } + => receiver.SubscribeAsync(userId); } public class PureCodeFirstEnumerable @@ -1148,4 +1052,4 @@ public string OnExplicit( [EventMessage] string message) => message; } -} +} \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/TypeExtensionsTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/TypeExtensionsTests.cs index c975a2928eb..0aeb729051f 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/TypeExtensionsTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/TypeExtensionsTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Language; using Moq; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/TypeFactoryTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/TypeFactoryTests.cs index 801c4af9cc9..bfaaa6d8a6d 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/TypeFactoryTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/TypeFactoryTests.cs @@ -1,6 +1,5 @@ using System.Linq; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/TypeTestBase.cs b/src/HotChocolate/Core/test/Types.Tests/Types/TypeTestBase.cs index 03d5fec401c..926febe1eab 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/TypeTestBase.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/TypeTestBase.cs @@ -6,9 +6,7 @@ public class TypeTestBase { protected T CreateDirective(T directiveType) where T : DirectiveType - { - return CreateDirective(directiveType, b => { }); - } + => CreateDirective(directiveType, b => { }); protected T CreateDirective(T directiveType, Action configure) @@ -31,9 +29,7 @@ protected T CreateDirective(T directiveType, protected static T CreateType(T type) where T : INamedType - { - return CreateType(type, b => { }); - } + => CreateType(type, b => { }); protected static T CreateType(T type, Action configure) diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/UnionTypeAttributeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/UnionTypeAttributeTests.cs index 495cc5f85fb..d597dbeb7e4 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/UnionTypeAttributeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/UnionTypeAttributeTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Types.Descriptors; using Snapshooter.Xunit; -using Xunit; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/UnionTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/UnionTypeTests.cs index 00af1b6bcd3..b15e3d5172a 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/UnionTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/UnionTypeTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Validation/DirectiveValidationRuleTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Validation/DirectiveValidationRuleTests.cs index c15eabbbb72..72cb103e8a3 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Validation/DirectiveValidationRuleTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Validation/DirectiveValidationRuleTests.cs @@ -1,5 +1,4 @@ using HotChocolate.Configuration.Validation; -using Xunit; namespace HotChocolate.Types.Validation; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Validation/InterfaceHasAtLeastOneImplementationRuleTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Validation/InterfaceHasAtLeastOneImplementationRuleTests.cs index b30394532cd..871bec093e8 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Validation/InterfaceHasAtLeastOneImplementationRuleTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Validation/InterfaceHasAtLeastOneImplementationRuleTests.cs @@ -1,5 +1,4 @@ using HotChocolate.Configuration.Validation; -using Xunit; namespace HotChocolate.Types.Validation; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Validation/InterfaceTypeValidationRuleTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Validation/InterfaceTypeValidationRuleTests.cs index 7707e7a8b2f..f7710377faf 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Validation/InterfaceTypeValidationRuleTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Validation/InterfaceTypeValidationRuleTests.cs @@ -1,5 +1,4 @@ using HotChocolate.Configuration.Validation; -using Xunit; namespace HotChocolate.Types.Validation; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Validation/ObjectTypeValidationRuleTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Validation/ObjectTypeValidationRuleTests.cs index 36ac8f9557f..017887e2dd7 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Validation/ObjectTypeValidationRuleTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Validation/ObjectTypeValidationRuleTests.cs @@ -1,5 +1,4 @@ using HotChocolate.Configuration.Validation; -using Xunit; namespace HotChocolate.Types.Validation; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/PaginationTests.Execute_NestedOffsetPaging_NoCyclicDependencies.md b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/PaginationTests.Execute_NestedOffsetPaging_NoCyclicDependencies.md new file mode 100644 index 00000000000..f0ece20c758 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/PaginationTests.Execute_NestedOffsetPaging_NoCyclicDependencies.md @@ -0,0 +1,24 @@ +# Execute_NestedOffsetPaging_NoCyclicDependencies + +```json +{ + "data": { + "users": { + "items": [ + { + "parents": { + "items": [ + { + "firstName": "Mother" + }, + { + "firstName": "Father" + } + ] + } + } + ] + } + } +} +``` diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/PaginationTests.Execute_NestedOffsetPaging_With_Indirect_Cycles.md b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/PaginationTests.Execute_NestedOffsetPaging_With_Indirect_Cycles.md new file mode 100644 index 00000000000..c7b1c9ed153 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/PaginationTests.Execute_NestedOffsetPaging_With_Indirect_Cycles.md @@ -0,0 +1,30 @@ +# Execute_NestedOffsetPaging_With_Indirect_Cycles + +```json +{ + "data": { + "users": { + "items": [ + { + "groups": { + "items": [ + { + "members": { + "items": [ + { + "firstName": "Mother" + }, + { + "firstName": "Father" + } + ] + } + } + ] + } + } + ] + } + } +} +``` diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Arguments_Can_Be_Declared_On_The_Stream_Schema.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Arguments_Can_Be_Declared_On_The_Stream_Schema.md similarity index 83% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Arguments_Can_Be_Declared_On_The_Stream_Schema.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Arguments_Can_Be_Declared_On_The_Stream_Schema.md index fa3382dffbf..62194eb1e65 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Arguments_Can_Be_Declared_On_The_Stream_Schema.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Arguments_Can_Be_Declared_On_The_Stream_Schema.md @@ -1,4 +1,7 @@ -schema { +# Arguments_Can_Be_Declared_On_The_Stream_Schema + +```graphql +schema { query: Query subscription: MySubscription } @@ -18,3 +21,4 @@ type MySubscription { type Query { a: String } +``` diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomething.md b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomething.md new file mode 100644 index 00000000000..6a54c5af6ef --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomething.md @@ -0,0 +1,32 @@ +# SubscribeAndResolve_Attribute_AsyncEnumerable + +## Result 1 + +```json +{ + "data": { + "onSomething": "a" + } +} +``` + +## Result 2 + +```json +{ + "data": { + "onSomething": "b" + } +} +``` + +## Result 3 + +```json +{ + "data": { + "onSomething": "c" + } +} +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObj.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObj.md similarity index 51% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObj.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObj.md index 17c171f53f0..f7fb4690566 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObj.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObj.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_AsyncEnumerable + +## Result 1 + +```json +{ "data": { "onSomethingObj": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingObj": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingObj": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObjTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObjTask.md similarity index 53% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObjTask.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObjTask.md index 4d5dd60f881..6dce121def3 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObjTask.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObjTask.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_AsyncEnumerable + +## Result 1 + +```json +{ "data": { "onSomethingObjTask": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingObjTask": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingObjTask": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObjValueTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObjValueTask.md similarity index 55% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObjValueTask.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObjValueTask.md index 33b97cf6202..a53859aba21 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObjValueTask.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObjValueTask.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_AsyncEnumerable + +## Result 1 + +```json +{ "data": { "onSomethingObjValueTask": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingObjValueTask": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingObjValueTask": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingTask.md similarity index 51% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingTask.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingTask.md index 5ac353bae65..60e3dca286e 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingTask.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingTask.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_AsyncEnumerable + +## Result 1 + +```json +{ "data": { "onSomethingTask": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingTask": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingTask": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingValueTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingValueTask.md similarity index 54% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingValueTask.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingValueTask.md index 0373948bad3..444f2eea749 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingValueTask.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingValueTask.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_AsyncEnumerable + +## Result 1 + +```json +{ "data": { "onSomethingValueTask": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingValueTask": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingValueTask": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomething.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomething.md similarity index 50% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomething.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomething.md index adc0847a8e4..f3d47f2f9e0 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomething.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomething.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Enumerable + +## Result 1 + +```json +{ "data": { "onSomething": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomething": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomething": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObj.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObj.md similarity index 52% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObj.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObj.md index 17c171f53f0..58470d13e4e 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObj.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObj.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Enumerable + +## Result 1 + +```json +{ "data": { "onSomethingObj": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingObj": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingObj": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObjTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObjTask.md similarity index 54% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObjTask.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObjTask.md index 4d5dd60f881..1db28f8c93d 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObjTask.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObjTask.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Enumerable + +## Result 1 + +```json +{ "data": { "onSomethingObjTask": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingObjTask": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingObjTask": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObjValueTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObjValueTask.md similarity index 56% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObjValueTask.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObjValueTask.md index 33b97cf6202..6cca0ff95ce 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObjValueTask.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObjValueTask.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Enumerable + +## Result 1 + +```json +{ "data": { "onSomethingObjValueTask": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingObjValueTask": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingObjValueTask": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingTask.md similarity index 52% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingTask.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingTask.md index 5ac353bae65..c76f0f07df2 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingTask.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingTask.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Enumerable + +## Result 1 + +```json +{ "data": { "onSomethingTask": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingTask": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingTask": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingValueTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingValueTask.md similarity index 55% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingValueTask.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingValueTask.md index 0373948bad3..9e12e404fca 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingValueTask.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingValueTask.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Enumerable + +## Result 1 + +```json +{ "data": { "onSomethingValueTask": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingValueTask": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingValueTask": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_ISourceStream_onSomething.md b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_ISourceStream_onSomething.md new file mode 100644 index 00000000000..ca780cd2f67 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_ISourceStream_onSomething.md @@ -0,0 +1,9 @@ +# SubscribeAndResolve_Attribute_ISourceStream + +```json +{ + "data": { + "onSomething": true + } +} +``` diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_ISourceStream_onSomething.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_ISourceStream_onSomething.snap deleted file mode 100644 index 04afcbc947e..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_ISourceStream_onSomething.snap +++ /dev/null @@ -1,5 +0,0 @@ -{ - "data": { - "onSomething": true - } -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomething.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomething.md similarity index 50% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomething.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomething.md index adc0847a8e4..3ef19d65d49 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomething.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomething.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Observable + +## Result 1 + +```json +{ "data": { "onSomething": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomething": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomething": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObj.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObj.md similarity index 52% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObj.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObj.md index 17c171f53f0..ccdb8d9ce0e 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObj.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObj.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Observable + +## Result 1 + +```json +{ "data": { "onSomethingObj": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingObj": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingObj": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObjTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObjTask.md similarity index 54% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObjTask.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObjTask.md index 4d5dd60f881..ad78eea850c 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObjTask.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObjTask.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Observable + +## Result 1 + +```json +{ "data": { "onSomethingObjTask": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingObjTask": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingObjTask": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObjValueTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObjValueTask.md similarity index 56% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObjValueTask.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObjValueTask.md index 33b97cf6202..31222f59829 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObjValueTask.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingObjValueTask.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Observable + +## Result 1 + +```json +{ "data": { "onSomethingObjValueTask": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingObjValueTask": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingObjValueTask": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingTask.md similarity index 52% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingTask.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingTask.md index 5ac353bae65..a30b21648c2 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingTask.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingTask.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Observable + +## Result 1 + +```json +{ "data": { "onSomethingTask": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingTask": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingTask": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingValueTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingValueTask.md similarity index 55% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingValueTask.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingValueTask.md index 0373948bad3..073a0db208b 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingValueTask.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Observable_onSomethingValueTask.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Observable + +## Result 1 + +```json +{ "data": { "onSomethingValueTask": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingValueTask": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingValueTask": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomething.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomething.md similarity index 50% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomething.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomething.md index adc0847a8e4..ac3ed9fb733 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomething.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomething.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Queryable + +## Result 1 + +```json +{ "data": { "onSomething": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomething": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomething": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomething.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomething.snap deleted file mode 100644 index adc0847a8e4..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomething.snap +++ /dev/null @@ -1,15 +0,0 @@ -{ - "data": { - "onSomething": "a" - } -} -{ - "data": { - "onSomething": "b" - } -} -{ - "data": { - "onSomething": "c" - } -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObj.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObj.md similarity index 52% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObj.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObj.md index 17c171f53f0..cdeab11d135 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObj.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObj.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Queryable + +## Result 1 + +```json +{ "data": { "onSomethingObj": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingObj": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingObj": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObjTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObjTask.md similarity index 54% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObjTask.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObjTask.md index 4d5dd60f881..ee7e5e4a45a 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingObjTask.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObjTask.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Queryable + +## Result 1 + +```json +{ "data": { "onSomethingObjTask": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingObjTask": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingObjTask": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObjValueTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObjValueTask.md similarity index 56% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObjValueTask.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObjValueTask.md index 33b97cf6202..7b7566041b6 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Enumerable_onSomethingObjValueTask.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingObjValueTask.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Queryable + +## Result 1 + +```json +{ "data": { "onSomethingObjValueTask": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingObjValueTask": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingObjValueTask": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingTask.md similarity index 53% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingTask.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingTask.md index 5ac353bae65..a2b14982385 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingTask.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingTask.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Queryable + +## Result 1 + +```json +{ "data": { "onSomethingTask": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingTask": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingTask": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingValueTask.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingValueTask.md similarity index 55% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingValueTask.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingValueTask.md index 0373948bad3..44400bc4a5f 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_AsyncEnumerable_onSomethingValueTask.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.SubscribeAndResolve_Attribute_Queryable_onSomethingValueTask.md @@ -1,15 +1,32 @@ -{ +# SubscribeAndResolve_Attribute_Queryable + +## Result 1 + +```json +{ "data": { "onSomethingValueTask": "a" } } +``` + +## Result 2 + +```json { "data": { "onSomethingValueTask": "b" } } +``` + +## Result 3 + +```json { "data": { "onSomethingValueTask": "c" } } +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Schema_Is_Generated_Correctly.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Schema_Is_Generated_Correctly.md similarity index 90% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Schema_Is_Generated_Correctly.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Schema_Is_Generated_Correctly.md index 4b0b0a4a4b0..e23837b66fe 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Schema_Is_Generated_Correctly.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Schema_Is_Generated_Correctly.md @@ -1,4 +1,7 @@ -schema { +# Subscribe_Attribute_Schema_Is_Generated_Correctly + +```graphql +schema { query: Query mutation: MyMutation subscription: MySubscription @@ -28,3 +31,4 @@ type MySubscription { type Query { a: String } +``` diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Schema_Is_Generated_Correctly_2.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Schema_Is_Generated_Correctly_2.md similarity index 60% rename from src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Schema_Is_Generated_Correctly_2.snap rename to src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Schema_Is_Generated_Correctly_2.md index 041b360f6cf..acfb8155669 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Schema_Is_Generated_Correctly_2.snap +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_Schema_Is_Generated_Correctly_2.md @@ -1,4 +1,7 @@ -schema { +# Subscribe_Attribute_Schema_Is_Generated_Correctly_2 + +```graphql +schema { query: Query subscription: Subscription } @@ -10,3 +13,4 @@ type Query { type Subscription { onExplicit: String! } +``` diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Argument_Topic.md b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Argument_Topic.md new file mode 100644 index 00000000000..2eddb1167a2 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Argument_Topic.md @@ -0,0 +1,9 @@ +# Subscribe_Attribute_With_Argument_Topic + +```json +{ + "data": { + "onMessage": "def" + } +} +``` diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Argument_Topic.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Argument_Topic.snap deleted file mode 100644 index 1fc5a4f7f9e..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Argument_Topic.snap +++ /dev/null @@ -1,5 +0,0 @@ -{ - "data": { - "onMessage": "def" - } -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Explicitly_Defined_Subscribe.md b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Explicitly_Defined_Subscribe.md new file mode 100644 index 00000000000..55206d23f2e --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Explicitly_Defined_Subscribe.md @@ -0,0 +1,9 @@ +# Subscribe_Attribute_With_Explicitly_Defined_Subscribe + +```json +{ + "data": { + "onExplicit": "def" + } +} +``` diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Explicitly_Defined_Subscribe.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Explicitly_Defined_Subscribe.snap deleted file mode 100644 index 8c8c1389b52..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Explicitly_Defined_Subscribe.snap +++ /dev/null @@ -1,5 +0,0 @@ -{ - "data": { - "onExplicit": "def" - } -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic.md b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic.md new file mode 100644 index 00000000000..c016dd4726c --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic.md @@ -0,0 +1,9 @@ +# Subscribe_Attribute_With_Static_Topic + +```json +{ + "data": { + "onSysMessage": "def" + } +} +``` diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic.snap deleted file mode 100644 index ba7bfb6ff89..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic.snap +++ /dev/null @@ -1,5 +0,0 @@ -{ - "data": { - "onSysMessage": "def" - } -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic_Defined_On_Attribute.md b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic_Defined_On_Attribute.md new file mode 100644 index 00000000000..4745850a0b8 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic_Defined_On_Attribute.md @@ -0,0 +1,9 @@ +# Subscribe_Attribute_With_Static_Topic_Defined_On_Attribute + +```json +{ + "data": { + "onFixedMessage": "def" + } +} +``` diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic_Defined_On_Attribute.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic_Defined_On_Attribute.snap deleted file mode 100644 index c6b2e6c2065..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic_Defined_On_Attribute.snap +++ /dev/null @@ -1,5 +0,0 @@ -{ - "data": { - "onFixedMessage": "def" - } -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic_Infer_Topic.md b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic_Infer_Topic.md new file mode 100644 index 00000000000..47b8fc4d65a --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic_Infer_Topic.md @@ -0,0 +1,9 @@ +# Subscribe_Attribute_With_Static_Topic_Infer_Topic + +```json +{ + "data": { + "onInferTopic": "def" + } +} +``` diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic_Infer_Topic.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic_Infer_Topic.snap deleted file mode 100644 index e470d727ef0..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Static_Topic_Infer_Topic.snap +++ /dev/null @@ -1,5 +0,0 @@ -{ - "data": { - "onInferTopic": "def" - } -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Two_Topic_Attributes_Error.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Two_Topic_Attributes_Error.snap deleted file mode 100644 index 234ef408071..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_Attribute_With_Two_Topic_Attributes_Error.snap +++ /dev/null @@ -1,6 +0,0 @@ -For more details look at the `Errors` property. - -1. For more details look at the `Errors` property. - -1. The topic is declared multiple times on HotChocolate.Types.SubscriptionTypeTests+InvalidSubscription_TwoTopicAttributes.OnMessage. (TopicAttribute) - (HotChocolate.Types.ObjectType) diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_AsyncEnumerable.md b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_AsyncEnumerable.md new file mode 100644 index 00000000000..59f1f47b611 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_AsyncEnumerable.md @@ -0,0 +1,32 @@ +# Subscribe_With_AsyncEnumerable + +## Result 1 + +```json +{ + "data": { + "test": "a" + } +} +``` + +## Result 2 + +```json +{ + "data": { + "test": "b" + } +} +``` + +## Result 3 + +```json +{ + "data": { + "test": "c" + } +} +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_AsyncEnumerable.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_AsyncEnumerable.snap deleted file mode 100644 index 8ba2dc58ffe..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_AsyncEnumerable.snap +++ /dev/null @@ -1,15 +0,0 @@ -{ - "data": { - "test": "a" - } -} -{ - "data": { - "test": "b" - } -} -{ - "data": { - "test": "c" - } -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_AsyncEnumerable_Async.md b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_AsyncEnumerable_Async.md new file mode 100644 index 00000000000..5fa2caca031 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_AsyncEnumerable_Async.md @@ -0,0 +1,32 @@ +# Subscribe_With_AsyncEnumerable_Async + +## Result 1 + +```json +{ + "data": { + "test": "a" + } +} +``` + +## Result 2 + +```json +{ + "data": { + "test": "b" + } +} +``` + +## Result 3 + +```json +{ + "data": { + "test": "c" + } +} +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_AsyncEnumerable_Async.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_AsyncEnumerable_Async.snap deleted file mode 100644 index 8ba2dc58ffe..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_AsyncEnumerable_Async.snap +++ /dev/null @@ -1,15 +0,0 @@ -{ - "data": { - "test": "a" - } -} -{ - "data": { - "test": "b" - } -} -{ - "data": { - "test": "c" - } -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Enumerable.md b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Enumerable.md new file mode 100644 index 00000000000..8f074ba6d2d --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Enumerable.md @@ -0,0 +1,32 @@ +# Subscribe_With_Enumerable + +## Result 1 + +```json +{ + "data": { + "test": "a" + } +} +``` + +## Result 2 + +```json +{ + "data": { + "test": "b" + } +} +``` + +## Result 3 + +```json +{ + "data": { + "test": "c" + } +} +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Enumerable.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Enumerable.snap deleted file mode 100644 index 8ba2dc58ffe..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Enumerable.snap +++ /dev/null @@ -1,15 +0,0 @@ -{ - "data": { - "test": "a" - } -} -{ - "data": { - "test": "b" - } -} -{ - "data": { - "test": "c" - } -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Enumerable_Async.md b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Enumerable_Async.md new file mode 100644 index 00000000000..39764347a15 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Enumerable_Async.md @@ -0,0 +1,32 @@ +# Subscribe_With_Enumerable_Async + +## Result 1 + +```json +{ + "data": { + "test": "a" + } +} +``` + +## Result 2 + +```json +{ + "data": { + "test": "b" + } +} +``` + +## Result 3 + +```json +{ + "data": { + "test": "c" + } +} +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Enumerable_Async.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Enumerable_Async.snap deleted file mode 100644 index 8ba2dc58ffe..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Enumerable_Async.snap +++ /dev/null @@ -1,15 +0,0 @@ -{ - "data": { - "test": "a" - } -} -{ - "data": { - "test": "b" - } -} -{ - "data": { - "test": "c" - } -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Observable.md b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Observable.md new file mode 100644 index 00000000000..870f833f11d --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Observable.md @@ -0,0 +1,32 @@ +# Subscribe_With_Observable + +## Result 1 + +```json +{ + "data": { + "test": "a" + } +} +``` + +## Result 2 + +```json +{ + "data": { + "test": "b" + } +} +``` + +## Result 3 + +```json +{ + "data": { + "test": "c" + } +} +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Observable.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Observable.snap deleted file mode 100644 index 8ba2dc58ffe..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Observable.snap +++ /dev/null @@ -1,15 +0,0 @@ -{ - "data": { - "test": "a" - } -} -{ - "data": { - "test": "b" - } -} -{ - "data": { - "test": "c" - } -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Observable_Async.md b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Observable_Async.md new file mode 100644 index 00000000000..55bc32af814 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Observable_Async.md @@ -0,0 +1,32 @@ +# Subscribe_With_Observable_Async + +## Result 1 + +```json +{ + "data": { + "test": "a" + } +} +``` + +## Result 2 + +```json +{ + "data": { + "test": "b" + } +} +``` + +## Result 3 + +```json +{ + "data": { + "test": "c" + } +} +``` + diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Observable_Async.snap b/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Observable_Async.snap deleted file mode 100644 index 8ba2dc58ffe..00000000000 --- a/src/HotChocolate/Core/test/Types.Tests/Types/__snapshots__/SubscriptionTypeTests.Subscribe_With_Observable_Async.snap +++ /dev/null @@ -1,15 +0,0 @@ -{ - "data": { - "test": "a" - } -} -{ - "data": { - "test": "b" - } -} -{ - "data": { - "test": "c" - } -} diff --git a/src/HotChocolate/Core/test/Types.Tests/Utilities/BaseTypesTests.cs b/src/HotChocolate/Core/test/Types.Tests/Utilities/BaseTypesTests.cs index 568105a12fd..96c1240c66b 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Utilities/BaseTypesTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Utilities/BaseTypesTests.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Internal; using HotChocolate.Types; -using Xunit; namespace HotChocolate.Utilities; diff --git a/src/HotChocolate/Core/test/Types.Tests/Utilities/DictionaryToObjectConverterTests.cs b/src/HotChocolate/Core/test/Types.Tests/Utilities/DictionaryToObjectConverterTests.cs index 2594a6a5b7d..9c7edf4f7bb 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Utilities/DictionaryToObjectConverterTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Utilities/DictionaryToObjectConverterTests.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Utilities; diff --git a/src/HotChocolate/Core/test/Types.Tests/Utilities/ExpressionUtilsTests.cs b/src/HotChocolate/Core/test/Types.Tests/Utilities/ExpressionUtilsTests.cs index 485f4630eb4..2a0e53d76db 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Utilities/ExpressionUtilsTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Utilities/ExpressionUtilsTests.cs @@ -1,7 +1,6 @@ using System; using System.Linq.Expressions; using System.Reflection; -using Xunit; namespace HotChocolate.Utilities; diff --git a/src/HotChocolate/Core/test/Types.Tests/Utilities/InputObjectToDictionaryConverterTests.cs b/src/HotChocolate/Core/test/Types.Tests/Utilities/InputObjectToDictionaryConverterTests.cs index f9987480565..dc3ccfd33ae 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Utilities/InputObjectToDictionaryConverterTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Utilities/InputObjectToDictionaryConverterTests.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using HotChocolate.Types; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Utilities; diff --git a/src/HotChocolate/Core/test/Types.Tests/Utilities/ObjectValueToDictionaryConverterTests.cs b/src/HotChocolate/Core/test/Types.Tests/Utilities/ObjectValueToDictionaryConverterTests.cs index 29b73e876ea..6d4c046a501 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Utilities/ObjectValueToDictionaryConverterTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Utilities/ObjectValueToDictionaryConverterTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Utilities; diff --git a/src/HotChocolate/Core/test/Types.Tests/Utilities/ReflectionUtilsTests.cs b/src/HotChocolate/Core/test/Types.Tests/Utilities/ReflectionUtilsTests.cs index 9af16f6e3d1..59472485daf 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Utilities/ReflectionUtilsTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Utilities/ReflectionUtilsTests.cs @@ -1,6 +1,4 @@ -using Xunit; - -namespace HotChocolate.Utilities; +namespace HotChocolate.Utilities; public class ReflectionUtilsTests { diff --git a/src/HotChocolate/Core/test/Types.Tests/Utilities/TypeConversionTests.cs b/src/HotChocolate/Core/test/Types.Tests/Utilities/TypeConversionTests.cs index aeb0f840404..2996ff1201c 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Utilities/TypeConversionTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Utilities/TypeConversionTests.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Utilities; diff --git a/src/HotChocolate/Core/test/Utilities/SnapshotTest.cs b/src/HotChocolate/Core/test/Utilities/SnapshotTest.cs new file mode 100644 index 00000000000..8f067bfea30 --- /dev/null +++ b/src/HotChocolate/Core/test/Utilities/SnapshotTest.cs @@ -0,0 +1,112 @@ +using System; +using System.Threading; +using System.Threading.Tasks; +using CookieCrumble; + +namespace HotChocolate.Tests; + +public sealed class SnapshotTest +{ + private readonly Snapshot _snapshot; + private readonly Func _action; + private int _allowedRetries = 3; + private int _timeout = 30_000; + + private SnapshotTest( + Func action, + string? postFix = null, + string? extension = null) + { + _snapshot = new Snapshot(postFix, extension); + _action = action; + } + + public static SnapshotTest Create( + Func action, + string? postFix = null, + string? extension = null) + => new(action, postFix: postFix, extension: extension); + + public SnapshotTest SetRetries(int retries) + { + _allowedRetries = retries; + return this; + } + + public SnapshotTest SetTimeout(int milliseconds) + { + _timeout = milliseconds; + return this; + } + + public async Task RunAsync() + => await TryRunAsync(_snapshot, _action, _allowedRetries, _timeout, match: false).ConfigureAwait(false); + + public async Task MatchAsync() + => await TryRunAsync(_snapshot, _action, _allowedRetries, _timeout).ConfigureAwait(false); + + private static async Task TryRunAsync( + Snapshot snapshot, + Func action, + int allowedRetries = 3, + int timeout = 30_000, + bool match = true) + { + // we will try four times .... + var attempt = 0; + var wait = 250; + + while (true) + { + attempt++; + + var success = await ExecuteAsync(attempt).ConfigureAwait(false); + + if (success) + { + break; + } + + await Task.Delay(wait).ConfigureAwait(false); + wait *= 2; + } + return; + + // ReSharper disable once VariableHidesOuterVariable + async Task ExecuteAsync(int attempt) + { + using var cts = new CancellationTokenSource(timeout); + var ct = cts.Token; + + if (attempt < allowedRetries) + { + try + { + snapshot.Clear(); + await action(snapshot, ct).ConfigureAwait(false); + + if (match) + { + snapshot.MatchMarkdown(); + } + + return true; + } + catch + { + return false; + } + } + + snapshot.Clear(); + await action(snapshot, ct).ConfigureAwait(false); + + if (match) + { + snapshot.MatchMarkdown(); + } + + return true; + } + } +} \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Utilities/TestHelper.cs b/src/HotChocolate/Core/test/Utilities/TestHelper.cs index fe5a1fcb49b..f13d5398587 100644 --- a/src/HotChocolate/Core/test/Utilities/TestHelper.cs +++ b/src/HotChocolate/Core/test/Utilities/TestHelper.cs @@ -7,7 +7,6 @@ using HotChocolate.Execution.Configuration; using HotChocolate.StarWars; using HotChocolate.Types; -using Xunit; using Xunit.Abstractions; namespace HotChocolate.Tests; @@ -210,51 +209,4 @@ public static void AddDefaultConfiguration( .Services .AddStarWarsRepositories(); } - - public static async Task TryTest( - Func action, - int allowedRetries = 3, - int timeout = 30_000) - { - // we will try four times .... - var attempt = 0; - var wait = 250; - - while (true) - { - attempt++; - - var success = await ExecuteAsync(attempt).ConfigureAwait(false); - - if (success) - { - break; - } - - await Task.Delay(wait).ConfigureAwait(false); - wait *= 2; - } - - // ReSharper disable once VariableHidesOuterVariable - async Task ExecuteAsync(int attempt) - { - using var cts = new CancellationTokenSource(timeout); - - if (attempt < allowedRetries) - { - try - { - await action(cts.Token).ConfigureAwait(false); - return true; - } - catch - { - return false; - } - } - - await action(cts.Token).ConfigureAwait(false); - return true; - } - } -} +} \ No newline at end of file diff --git a/src/HotChocolate/Core/test/Validation.Tests/AllVariableUsagesAreAllowedRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/AllVariableUsagesAreAllowedRuleTests.cs index 29e05162a51..87f35e2ee40 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/AllVariableUsagesAreAllowedRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/AllVariableUsagesAreAllowedRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/AllVariablesUsedRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/AllVariablesUsedRuleTests.cs index a557d5ea253..773628441a9 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/AllVariablesUsedRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/AllVariablesUsedRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/ArgumentNamesRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/ArgumentNamesRuleTests.cs index 7e7c9d623f3..e4fa6219b0c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/ArgumentNamesRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/ArgumentNamesRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/ArgumentUniquenessRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/ArgumentUniquenessRuleTests.cs index 33316dc18c4..0a83675d379 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/ArgumentUniquenessRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/ArgumentUniquenessRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/DirectivesAreDefinedRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/DirectivesAreDefinedRuleTests.cs index bcb9028abae..1f527fa0a68 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/DirectivesAreDefinedRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/DirectivesAreDefinedRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/DocumentValidatorVisitorTestBase.cs b/src/HotChocolate/Core/test/Validation.Tests/DocumentValidatorVisitorTestBase.cs index f0f1dc57370..06639ed1af0 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/DocumentValidatorVisitorTestBase.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/DocumentValidatorVisitorTestBase.cs @@ -5,7 +5,6 @@ using HotChocolate.StarWars; using HotChocolate.Validation.Options; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/ExecutableDefinitionsRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/ExecutableDefinitionsRuleTests.cs index 78c4e1802b9..11f2723608b 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/ExecutableDefinitionsRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/ExecutableDefinitionsRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/Extensions/HotChocolateValidationBuilderExtensionsTests.cs b/src/HotChocolate/Core/test/Validation.Tests/Extensions/HotChocolateValidationBuilderExtensionsTests.cs index 56ecfce55d6..bb301e9b52f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/Extensions/HotChocolateValidationBuilderExtensionsTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/Extensions/HotChocolateValidationBuilderExtensionsTests.cs @@ -1,6 +1,5 @@ using System; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation.Extensions; diff --git a/src/HotChocolate/Core/test/Validation.Tests/FieldMustBeDefinedRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/FieldMustBeDefinedRuleTests.cs index 8501871c72e..55a8c4ab199 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/FieldMustBeDefinedRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/FieldMustBeDefinedRuleTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/FieldsOnCorrectTypeRule.cs b/src/HotChocolate/Core/test/Validation.Tests/FieldsOnCorrectTypeRule.cs index cecac4d94bb..5f4f8c2e1ce 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/FieldsOnCorrectTypeRule.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/FieldsOnCorrectTypeRule.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/FragmentNameUniquenessRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/FragmentNameUniquenessRuleTests.cs index 1280b865f6d..cac4a524008 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/FragmentNameUniquenessRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/FragmentNameUniquenessRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadIsPossibleRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadIsPossibleRuleTests.cs index a5644f5284f..3e5769bb60c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadIsPossibleRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadIsPossibleRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadTargetDefinedRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadTargetDefinedRuleTests.cs index 303b9d3dc19..b5a28573b2f 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadTargetDefinedRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadTargetDefinedRuleTests.cs @@ -1,7 +1,6 @@ using Microsoft.Extensions.DependencyInjection; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadTypeExistenceRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadTypeExistenceRuleTests.cs index 57c50416298..b9f12bd84c5 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadTypeExistenceRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadTypeExistenceRuleTests.cs @@ -1,7 +1,6 @@ using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadsMustNotFormCyclesRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadsMustNotFormCyclesRuleTests.cs index 136fa079c5b..c3ed69273fc 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadsMustNotFormCyclesRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadsMustNotFormCyclesRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/FragmentsMustBeUsedRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/FragmentsMustBeUsedRuleTests.cs index fe953ce532d..6435dde7439 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/FragmentsMustBeUsedRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/FragmentsMustBeUsedRuleTests.cs @@ -1,7 +1,6 @@ using Microsoft.Extensions.DependencyInjection; using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/FragmentsOnCompositeTypesRule.cs b/src/HotChocolate/Core/test/Validation.Tests/FragmentsOnCompositeTypesRule.cs index ca2319be79f..0ce6653ba5c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/FragmentsOnCompositeTypesRule.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/FragmentsOnCompositeTypesRule.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/InputObjectFieldNamesRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/InputObjectFieldNamesRuleTests.cs index bef7a0edbf5..67dc7cdd5e1 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/InputObjectFieldNamesRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/InputObjectFieldNamesRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/InputObjectRequiredFieldsRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/InputObjectRequiredFieldsRuleTests.cs index eab55e4c398..abb8bbf7eb6 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/InputObjectRequiredFieldsRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/InputObjectRequiredFieldsRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/KnownFragmentNamesRule.cs b/src/HotChocolate/Core/test/Validation.Tests/KnownFragmentNamesRule.cs index 540a8298a37..79c7d5aa65c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/KnownFragmentNamesRule.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/KnownFragmentNamesRule.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/LeafFieldSelectionsRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/LeafFieldSelectionsRuleTests.cs index fe09e1c9c53..e8d55e52d98 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/LeafFieldSelectionsRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/LeafFieldSelectionsRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/LoneAnonymousOperationRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/LoneAnonymousOperationRuleTests.cs index 7e40784ea20..9a5df820f42 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/LoneAnonymousOperationRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/LoneAnonymousOperationRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/MaxDepthRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/MaxDepthRuleTests.cs index f154e00b664..836ee3801e8 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/MaxDepthRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/MaxDepthRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/MaxDepthRuleTestsSkipIntrospection.cs b/src/HotChocolate/Core/test/Validation.Tests/MaxDepthRuleTestsSkipIntrospection.cs index 64c1609a6fb..2c80e8f789e 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/MaxDepthRuleTestsSkipIntrospection.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/MaxDepthRuleTestsSkipIntrospection.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/NoUndefinedVariablesRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/NoUndefinedVariablesRuleTests.cs index 56de04ee041..289696f7d5c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/NoUndefinedVariablesRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/NoUndefinedVariablesRuleTests.cs @@ -1,4 +1,3 @@ -using Xunit; using Microsoft.Extensions.DependencyInjection; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/NoUnusedFragmentsRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/NoUnusedFragmentsRuleTests.cs index 1f69a7b7e21..ce5e01b85b8 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/NoUnusedFragmentsRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/NoUnusedFragmentsRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/NoUnusedVariablesRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/NoUnusedVariablesRuleTests.cs index 7ff67d64245..6ca48c1855c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/NoUnusedVariablesRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/NoUnusedVariablesRuleTests.cs @@ -1,4 +1,3 @@ -using Xunit; using Microsoft.Extensions.DependencyInjection; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/OneOfRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/OneOfRuleTests.cs index ce0c4bb1b67..a8b982b9bfc 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/OneOfRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/OneOfRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/OperationNameUniquenessRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/OperationNameUniquenessRuleTests.cs index b6b6534ed47..3c04747c5b0 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/OperationNameUniquenessRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/OperationNameUniquenessRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/Options/ValidationOptionsTests.cs b/src/HotChocolate/Core/test/Validation.Tests/Options/ValidationOptionsTests.cs index c26976e5bee..d0c781db926 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/Options/ValidationOptionsTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/Options/ValidationOptionsTests.cs @@ -1,5 +1,3 @@ -using Xunit; - namespace HotChocolate.Validation.Options; public class ValidationOptionsTests diff --git a/src/HotChocolate/Core/test/Validation.Tests/RequiredArgumentRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/RequiredArgumentRuleTests.cs index 3abd2c58430..6bb6c364339 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/RequiredArgumentRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/RequiredArgumentRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/SubscriptionSingleRootFieldRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/SubscriptionSingleRootFieldRuleTests.cs index 16d2d00687d..6e991bc87f9 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/SubscriptionSingleRootFieldRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/SubscriptionSingleRootFieldRuleTests.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/TestHelper.cs b/src/HotChocolate/Core/test/Validation.Tests/TestHelper.cs index 1d75d7ba98c..a64353f09f1 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/TestHelper.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/TestHelper.cs @@ -5,7 +5,6 @@ using HotChocolate.Language; using HotChocolate.Validation.Options; using Snapshooter.Xunit; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/ValuesOfCorrectTypeRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/ValuesOfCorrectTypeRuleTests.cs index 82004a7d0d6..71396a36aef 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/ValuesOfCorrectTypeRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/ValuesOfCorrectTypeRuleTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/VariableUniquenessRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/VariableUniquenessRuleTests.cs index a45747b90d3..3417279293b 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/VariableUniquenessRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/VariableUniquenessRuleTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Core/test/Validation.Tests/VariablesAreInputTypesRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/VariablesAreInputTypesRuleTests.cs index 960bb8d27d4..9c86a8c3395 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/VariablesAreInputTypesRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/VariablesAreInputTypesRuleTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Validation; diff --git a/src/HotChocolate/Data/src/Data/Extensions/HotChocolateDataRequestBuilderExtensions.cs b/src/HotChocolate/Data/src/Data/Extensions/HotChocolateDataRequestBuilderExtensions.cs index 480d5c70dcd..9e2db63de67 100644 --- a/src/HotChocolate/Data/src/Data/Extensions/HotChocolateDataRequestBuilderExtensions.cs +++ b/src/HotChocolate/Data/src/Data/Extensions/HotChocolateDataRequestBuilderExtensions.cs @@ -5,7 +5,6 @@ using HotChocolate.Data.Projections; using HotChocolate.Data.Sorting; using HotChocolate.Execution.Configuration; -using HotChocolate.Execution.Processing; using HotChocolate.Internal; namespace Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Data/src/Data/Filters/Context/FilterContextResolverContextExtensions.cs b/src/HotChocolate/Data/src/Data/Filters/Context/FilterContextResolverContextExtensions.cs index a8c292a7bc0..9b33647a710 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Context/FilterContextResolverContextExtensions.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Context/FilterContextResolverContextExtensions.cs @@ -1,4 +1,3 @@ -using HotChocolate.Data.Filters.Expressions; using HotChocolate.Language; using HotChocolate.Resolvers; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/src/Data/Filters/Context/FilterInfo.cs b/src/HotChocolate/Data/src/Data/Filters/Context/FilterInfo.cs index 6fcc29529e4..8a494b7e7ad 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Context/FilterInfo.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Context/FilterInfo.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/src/Data/Filters/Convention/FilterTypeInterceptor.cs b/src/HotChocolate/Data/src/Data/Filters/Convention/FilterTypeInterceptor.cs index 6eff55fb0c7..ba5d2ab4e6c 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Convention/FilterTypeInterceptor.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Convention/FilterTypeInterceptor.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.Linq; using System.Reflection; using HotChocolate.Configuration; using HotChocolate.Internal; diff --git a/src/HotChocolate/Data/src/Data/Filters/Convention/IFilterConvention.cs b/src/HotChocolate/Data/src/Data/Filters/Convention/IFilterConvention.cs index f20f887105c..3489838b650 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Convention/IFilterConvention.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Convention/IFilterConvention.cs @@ -2,7 +2,6 @@ using System.Diagnostics.CodeAnalysis; using System.Reflection; using HotChocolate.Configuration; -using HotChocolate.Resolvers; using HotChocolate.Types; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Data/src/Data/Filters/Expressions/Extensions/QueryableFilterContextExtensions.cs b/src/HotChocolate/Data/src/Data/Filters/Expressions/Extensions/QueryableFilterContextExtensions.cs index 2befef6f1ae..c11e8f90ca8 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Expressions/Extensions/QueryableFilterContextExtensions.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Expressions/Extensions/QueryableFilterContextExtensions.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq.Expressions; using HotChocolate.Utilities; diff --git a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableGreaterThanHandler.cs b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableGreaterThanHandler.cs index a0cd2d0be59..b1e61dcb971 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableGreaterThanHandler.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableGreaterThanHandler.cs @@ -1,4 +1,3 @@ -using System; using System.Linq.Expressions; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableGreaterThanOrEqualsHandler.cs b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableGreaterThanOrEqualsHandler.cs index 2c5ad2f37f5..13843e0e404 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableGreaterThanOrEqualsHandler.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableGreaterThanOrEqualsHandler.cs @@ -1,4 +1,3 @@ -using System; using System.Linq.Expressions; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableInHandler.cs b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableInHandler.cs index 8435d6bb161..de4157887ca 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableInHandler.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableInHandler.cs @@ -1,5 +1,4 @@ using System.Linq.Expressions; -using HotChocolate.Internal; using HotChocolate.Language; using HotChocolate.Types; using HotChocolate.Utilities; diff --git a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableLowerThanHandler.cs b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableLowerThanHandler.cs index f07ead2e7e9..eb6a4522ec0 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableLowerThanHandler.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableLowerThanHandler.cs @@ -1,4 +1,3 @@ -using System; using System.Linq.Expressions; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableLowerThanOrEqualsHandler.cs b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableLowerThanOrEqualsHandler.cs index d03a9660849..38f857bb20f 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableLowerThanOrEqualsHandler.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableLowerThanOrEqualsHandler.cs @@ -1,4 +1,3 @@ -using System; using System.Linq.Expressions; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotGreaterThanHandler.cs b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotGreaterThanHandler.cs index 10974443fb9..a9742c4085a 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotGreaterThanHandler.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotGreaterThanHandler.cs @@ -1,4 +1,3 @@ -using System; using System.Linq.Expressions; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotGreaterThanOrEqualsHandler.cs b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotGreaterThanOrEqualsHandler.cs index 4c9092492ed..b0adbc4da71 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotGreaterThanOrEqualsHandler.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotGreaterThanOrEqualsHandler.cs @@ -1,4 +1,3 @@ -using System; using System.Linq.Expressions; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotInHandler.cs b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotInHandler.cs index 3e5424e96b4..b2c3a77d31f 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotInHandler.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotInHandler.cs @@ -1,5 +1,4 @@ using System.Linq.Expressions; -using HotChocolate.Internal; using HotChocolate.Language; using HotChocolate.Types; using HotChocolate.Utilities; diff --git a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotLowerThanHandler.cs b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotLowerThanHandler.cs index ed671cb09f4..f6e0e938de4 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotLowerThanHandler.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotLowerThanHandler.cs @@ -1,4 +1,3 @@ -using System; using System.Linq.Expressions; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotLowerThanOrEqualsHandler.cs b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotLowerThanOrEqualsHandler.cs index 2dab14d7994..9a7357a8646 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotLowerThanOrEqualsHandler.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableNotLowerThanOrEqualsHandler.cs @@ -1,4 +1,3 @@ -using System; using System.Linq.Expressions; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableOperationHandler.cs b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableOperationHandler.cs index 85803f0a924..ff2c97ae02a 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableOperationHandler.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableOperationHandler.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using HotChocolate.Configuration; diff --git a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/List/QueryableListAnyOperationHandler.cs b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/List/QueryableListAnyOperationHandler.cs index 568e3d434c4..6b3d764e654 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/List/QueryableListAnyOperationHandler.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/List/QueryableListAnyOperationHandler.cs @@ -1,4 +1,3 @@ -using System; using System.Linq.Expressions; using HotChocolate.Configuration; using HotChocolate.Language; diff --git a/src/HotChocolate/Data/src/Data/Filters/Extensions/FilterFieldDescriptorExtensions.cs b/src/HotChocolate/Data/src/Data/Filters/Extensions/FilterFieldDescriptorExtensions.cs index 2cdaafeddef..8653c5be679 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Extensions/FilterFieldDescriptorExtensions.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Extensions/FilterFieldDescriptorExtensions.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Data.Filters; using HotChocolate.Language; -using HotChocolate.Types; using HotChocolate.Types.Descriptors; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Data/src/Data/Filters/Extensions/FilterObjectFieldDescriptorExtensions.cs b/src/HotChocolate/Data/src/Data/Filters/Extensions/FilterObjectFieldDescriptorExtensions.cs index 8c055aed379..d7d8537a278 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Extensions/FilterObjectFieldDescriptorExtensions.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Extensions/FilterObjectFieldDescriptorExtensions.cs @@ -4,8 +4,6 @@ using HotChocolate.Configuration; using HotChocolate.Data; using HotChocolate.Data.Filters; -using HotChocolate.Internal; -using HotChocolate.Resolvers; using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; using static HotChocolate.Data.DataResources; diff --git a/src/HotChocolate/Data/src/Data/Filters/FilterInputType.cs b/src/HotChocolate/Data/src/Data/Filters/FilterInputType.cs index 646d00fd341..cdc34aad10d 100644 --- a/src/HotChocolate/Data/src/Data/Filters/FilterInputType.cs +++ b/src/HotChocolate/Data/src/Data/Filters/FilterInputType.cs @@ -3,7 +3,6 @@ using HotChocolate.Configuration; using HotChocolate.Internal; using HotChocolate.Types; -using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; using static HotChocolate.Internal.FieldInitHelper; diff --git a/src/HotChocolate/Data/src/Data/Filters/IFilterFieldDefinition.cs b/src/HotChocolate/Data/src/Data/Filters/IFilterFieldDefinition.cs index 301629c66e4..7bb56d603fd 100644 --- a/src/HotChocolate/Data/src/Data/Filters/IFilterFieldDefinition.cs +++ b/src/HotChocolate/Data/src/Data/Filters/IFilterFieldDefinition.cs @@ -1,5 +1,4 @@ using System.Linq.Expressions; -using System.Collections.Generic; using System.Reflection; using HotChocolate.Types; using HotChocolate.Types.Descriptors.Definitions; diff --git a/src/HotChocolate/Data/src/Data/Filters/Naming/FilterInputTypeNameDependencyDescriptor~1.cs b/src/HotChocolate/Data/src/Data/Filters/Naming/FilterInputTypeNameDependencyDescriptor~1.cs index 66ccdd29c5d..b47ca98828f 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Naming/FilterInputTypeNameDependencyDescriptor~1.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Naming/FilterInputTypeNameDependencyDescriptor~1.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Types; -using HotChocolate.Types.Descriptors; using HotChocolate.Types.Helpers; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/src/Data/Filters/Visitor/FilterFieldHandler.cs b/src/HotChocolate/Data/src/Data/Filters/Visitor/FilterFieldHandler.cs index 04debbe461d..d3e18613c12 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Visitor/FilterFieldHandler.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Visitor/FilterFieldHandler.cs @@ -2,7 +2,6 @@ using HotChocolate.Configuration; using HotChocolate.Language; using HotChocolate.Language.Visitors; -using HotChocolate.Types; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/src/Data/Filters/Visitor/FilterProvider.cs b/src/HotChocolate/Data/src/Data/Filters/Visitor/FilterProvider.cs index 1510c514ecc..9004cb81cf4 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Visitor/FilterProvider.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Visitor/FilterProvider.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using HotChocolate.Configuration; -using HotChocolate.Resolvers; using HotChocolate.Types; using HotChocolate.Types.Descriptors; using HotChocolate.Utilities; diff --git a/src/HotChocolate/Data/src/Data/Filters/Visitor/FilterVisitorContext.cs b/src/HotChocolate/Data/src/Data/Filters/Visitor/FilterVisitorContext.cs index f6cc22681e2..b73729b17aa 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Visitor/FilterVisitorContext.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Visitor/FilterVisitorContext.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using HotChocolate.Types; -using HotChocolate.Utilities; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/src/Data/Filters/Visitor/IFilterVisitorContext.cs b/src/HotChocolate/Data/src/Data/Filters/Visitor/IFilterVisitorContext.cs index 6ecf2ad5dbe..776efabf50a 100644 --- a/src/HotChocolate/Data/src/Data/Filters/Visitor/IFilterVisitorContext.cs +++ b/src/HotChocolate/Data/src/Data/Filters/Visitor/IFilterVisitorContext.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using HotChocolate.Language.Visitors; using HotChocolate.Types; -using HotChocolate.Utilities; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/src/Data/IQueryBuilder.cs b/src/HotChocolate/Data/src/Data/IQueryBuilder.cs index e00f05dad59..8732eb74524 100644 --- a/src/HotChocolate/Data/src/Data/IQueryBuilder.cs +++ b/src/HotChocolate/Data/src/Data/IQueryBuilder.cs @@ -1,4 +1,3 @@ -using System.Threading.Tasks; using HotChocolate.Resolvers; namespace HotChocolate.Data; diff --git a/src/HotChocolate/Data/src/Data/Projections/Context/ISelectedField.cs b/src/HotChocolate/Data/src/Data/Projections/Context/ISelectedField.cs index f645348869c..0499488dfe0 100644 --- a/src/HotChocolate/Data/src/Data/Projections/Context/ISelectedField.cs +++ b/src/HotChocolate/Data/src/Data/Projections/Context/ISelectedField.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using HotChocolate.Execution.Processing; -using HotChocolate.Resolvers; using HotChocolate.Types; #nullable enable diff --git a/src/HotChocolate/Data/src/Data/Projections/Context/SelectedField.cs b/src/HotChocolate/Data/src/Data/Projections/Context/SelectedField.cs index d7eb01adae9..bbb109b5d6e 100644 --- a/src/HotChocolate/Data/src/Data/Projections/Context/SelectedField.cs +++ b/src/HotChocolate/Data/src/Data/Projections/Context/SelectedField.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using HotChocolate.Execution.Processing; -using HotChocolate.Language; using HotChocolate.Resolvers; using HotChocolate.Types; using static HotChocolate.Data.ThrowHelper; diff --git a/src/HotChocolate/Data/src/Data/Projections/Convention/IProjectionConvention.cs b/src/HotChocolate/Data/src/Data/Projections/Convention/IProjectionConvention.cs index 53fc7b1e727..e8094c070c9 100644 --- a/src/HotChocolate/Data/src/Data/Projections/Convention/IProjectionConvention.cs +++ b/src/HotChocolate/Data/src/Data/Projections/Convention/IProjectionConvention.cs @@ -1,5 +1,4 @@ using HotChocolate.Execution.Processing; -using HotChocolate.Resolvers; using HotChocolate.Types.Descriptors; namespace HotChocolate.Data.Projections; diff --git a/src/HotChocolate/Data/src/Data/Projections/Convention/IProjectionProvider.cs b/src/HotChocolate/Data/src/Data/Projections/Convention/IProjectionProvider.cs index 38b840a068e..314a210d92e 100644 --- a/src/HotChocolate/Data/src/Data/Projections/Convention/IProjectionProvider.cs +++ b/src/HotChocolate/Data/src/Data/Projections/Convention/IProjectionProvider.cs @@ -1,5 +1,4 @@ using HotChocolate.Execution.Processing; -using HotChocolate.Resolvers; using HotChocolate.Types.Descriptors; namespace HotChocolate.Data.Projections; diff --git a/src/HotChocolate/Data/src/Data/Projections/Convention/ProjectionConvention.cs b/src/HotChocolate/Data/src/Data/Projections/Convention/ProjectionConvention.cs index 4931d305d29..2c517875437 100644 --- a/src/HotChocolate/Data/src/Data/Projections/Convention/ProjectionConvention.cs +++ b/src/HotChocolate/Data/src/Data/Projections/Convention/ProjectionConvention.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using HotChocolate.Execution.Processing; -using HotChocolate.Resolvers; using HotChocolate.Types.Descriptors; using HotChocolate.Utilities; using static HotChocolate.Data.ThrowHelper; diff --git a/src/HotChocolate/Data/src/Data/Projections/Expressions/Handlers/QueryableProjectionListHandler.cs b/src/HotChocolate/Data/src/Data/Projections/Expressions/Handlers/QueryableProjectionListHandler.cs index 92fc93e9bcf..ac6f36810c9 100644 --- a/src/HotChocolate/Data/src/Data/Projections/Expressions/Handlers/QueryableProjectionListHandler.cs +++ b/src/HotChocolate/Data/src/Data/Projections/Expressions/Handlers/QueryableProjectionListHandler.cs @@ -1,4 +1,3 @@ -using System; using System.Diagnostics.CodeAnalysis; using System.Linq.Expressions; using System.Reflection; diff --git a/src/HotChocolate/Data/src/Data/Projections/Expressions/Handlers/QueryableProjectionScalarHandler.cs b/src/HotChocolate/Data/src/Data/Projections/Expressions/Handlers/QueryableProjectionScalarHandler.cs index 93729b5d2f5..b3d1d36b093 100644 --- a/src/HotChocolate/Data/src/Data/Projections/Expressions/Handlers/QueryableProjectionScalarHandler.cs +++ b/src/HotChocolate/Data/src/Data/Projections/Expressions/Handlers/QueryableProjectionScalarHandler.cs @@ -1,9 +1,7 @@ -using System; using System.Diagnostics.CodeAnalysis; using System.Linq.Expressions; using System.Reflection; using HotChocolate.Execution.Processing; -using HotChocolate.Types; namespace HotChocolate.Data.Projections.Expressions.Handlers; diff --git a/src/HotChocolate/Data/src/Data/Projections/Expressions/QueryableProjectionScopeExtensions.cs b/src/HotChocolate/Data/src/Data/Projections/Expressions/QueryableProjectionScopeExtensions.cs index 353f2566907..95abfc79d50 100644 --- a/src/HotChocolate/Data/src/Data/Projections/Expressions/QueryableProjectionScopeExtensions.cs +++ b/src/HotChocolate/Data/src/Data/Projections/Expressions/QueryableProjectionScopeExtensions.cs @@ -3,7 +3,6 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Linq.Expressions; -using System.Reflection; namespace HotChocolate.Data.Projections.Expressions; diff --git a/src/HotChocolate/Data/src/Data/Projections/Extensions/SingleOrDefaultObjectFieldDescriptorExtensions.cs b/src/HotChocolate/Data/src/Data/Projections/Extensions/SingleOrDefaultObjectFieldDescriptorExtensions.cs index 0168165b90c..c7d087a3874 100644 --- a/src/HotChocolate/Data/src/Data/Projections/Extensions/SingleOrDefaultObjectFieldDescriptorExtensions.cs +++ b/src/HotChocolate/Data/src/Data/Projections/Extensions/SingleOrDefaultObjectFieldDescriptorExtensions.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Data.Projections; -using HotChocolate.Internal; using HotChocolate.Resolvers; using HotChocolate.Types.Descriptors.Definitions; diff --git a/src/HotChocolate/Data/src/Data/Projections/Optimizers/IsProjectedProjectionOptimizer.cs b/src/HotChocolate/Data/src/Data/Projections/Optimizers/IsProjectedProjectionOptimizer.cs index 4495d33f324..7f588c89085 100644 --- a/src/HotChocolate/Data/src/Data/Projections/Optimizers/IsProjectedProjectionOptimizer.cs +++ b/src/HotChocolate/Data/src/Data/Projections/Optimizers/IsProjectedProjectionOptimizer.cs @@ -1,7 +1,6 @@ using System; using HotChocolate.Execution.Processing; using HotChocolate.Language; -using HotChocolate.Resolvers; using HotChocolate.Types; using static HotChocolate.Data.Projections.ProjectionConvention; diff --git a/src/HotChocolate/Data/src/Data/Sorting/Context/SortingInfo.cs b/src/HotChocolate/Data/src/Data/Sorting/Context/SortingInfo.cs index 496dfc98ae1..2e7d4cc790a 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/Context/SortingInfo.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/Context/SortingInfo.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/src/Data/Sorting/Convention/ISortConvention.cs b/src/HotChocolate/Data/src/Data/Sorting/Convention/ISortConvention.cs index 01cab370a65..0a1d0847e66 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/Convention/ISortConvention.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/Convention/ISortConvention.cs @@ -2,7 +2,6 @@ using System.Diagnostics.CodeAnalysis; using System.Reflection; using HotChocolate.Configuration; -using HotChocolate.Resolvers; using HotChocolate.Types; using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; diff --git a/src/HotChocolate/Data/src/Data/Sorting/Convention/SortConvention.cs b/src/HotChocolate/Data/src/Data/Sorting/Convention/SortConvention.cs index d21774b5251..320744f1a78 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/Convention/SortConvention.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/Convention/SortConvention.cs @@ -4,9 +4,7 @@ using System.Linq; using System.Reflection; using HotChocolate.Configuration; -using HotChocolate.Data.Utilities; using HotChocolate.Internal; -using HotChocolate.Resolvers; using HotChocolate.Types; using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; diff --git a/src/HotChocolate/Data/src/Data/Sorting/Convention/SortTypeInterceptor.cs b/src/HotChocolate/Data/src/Data/Sorting/Convention/SortTypeInterceptor.cs index 6abb66b5cce..041157b25dd 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/Convention/SortTypeInterceptor.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/Convention/SortTypeInterceptor.cs @@ -1,6 +1,4 @@ -using System; using System.Collections.Generic; -using System.Linq; using HotChocolate.Configuration; using HotChocolate.Data.Filters; using HotChocolate.Internal; diff --git a/src/HotChocolate/Data/src/Data/Sorting/Expressions/Handlers/QueryableDefaultSortFieldHandler.cs b/src/HotChocolate/Data/src/Data/Sorting/Expressions/Handlers/QueryableDefaultSortFieldHandler.cs index 967f8e79b94..50f6b89fa7d 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/Expressions/Handlers/QueryableDefaultSortFieldHandler.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/Expressions/Handlers/QueryableDefaultSortFieldHandler.cs @@ -1,4 +1,3 @@ -using System; using System.Diagnostics.CodeAnalysis; using System.Linq.Expressions; using System.Reflection; diff --git a/src/HotChocolate/Data/src/Data/Sorting/Expressions/QueryableSortProvider.cs b/src/HotChocolate/Data/src/Data/Sorting/Expressions/QueryableSortProvider.cs index 89724781a81..935d44b6dc0 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/Expressions/QueryableSortProvider.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/Expressions/QueryableSortProvider.cs @@ -3,7 +3,6 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Linq.Expressions; -using System.Threading.Tasks; using HotChocolate.Configuration; using HotChocolate.Language; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/Data/src/Data/Sorting/Extensions/SortObjectFieldDescriptorExtensions.cs b/src/HotChocolate/Data/src/Data/Sorting/Extensions/SortObjectFieldDescriptorExtensions.cs index 3fef9372467..c57d4701999 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/Extensions/SortObjectFieldDescriptorExtensions.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/Extensions/SortObjectFieldDescriptorExtensions.cs @@ -4,7 +4,6 @@ using HotChocolate.Configuration; using HotChocolate.Data; using HotChocolate.Data.Sorting; -using HotChocolate.Resolvers; using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; using static HotChocolate.Data.DataResources; diff --git a/src/HotChocolate/Data/src/Data/Sorting/Fields/ISortEnumValue.cs b/src/HotChocolate/Data/src/Data/Sorting/Fields/ISortEnumValue.cs index dcd1f2ebbb4..2f383dadd3c 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/Fields/ISortEnumValue.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/Fields/ISortEnumValue.cs @@ -1,5 +1,3 @@ -using System.Reflection; -using HotChocolate.Internal; using HotChocolate.Types; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Data/src/Data/Sorting/Fields/SortField.cs b/src/HotChocolate/Data/src/Data/Sorting/Fields/SortField.cs index d4868d43099..730ed9fb74f 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/Fields/SortField.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/Fields/SortField.cs @@ -1,4 +1,3 @@ -using System; using System.Reflection; using HotChocolate.Configuration; using HotChocolate.Internal; diff --git a/src/HotChocolate/Data/src/Data/Sorting/ISortInputTypeDefinition.cs b/src/HotChocolate/Data/src/Data/Sorting/ISortInputTypeDefinition.cs index 3fffc5036c8..db990e231c7 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/ISortInputTypeDefinition.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/ISortInputTypeDefinition.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Types; -using HotChocolate.Types.Descriptors.Definitions; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Data/src/Data/Sorting/Naming/SortInputTypeNameDependencyDescriptor~1.cs b/src/HotChocolate/Data/src/Data/Sorting/Naming/SortInputTypeNameDependencyDescriptor~1.cs index 889987d55b5..c721ca4da01 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/Naming/SortInputTypeNameDependencyDescriptor~1.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/Naming/SortInputTypeNameDependencyDescriptor~1.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Types; -using HotChocolate.Types.Descriptors; using HotChocolate.Types.Helpers; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Data/src/Data/Sorting/SortEnumType.cs b/src/HotChocolate/Data/src/Data/Sorting/SortEnumType.cs index d41fa6aa337..2fdb8fe5528 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/SortEnumType.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/SortEnumType.cs @@ -4,7 +4,6 @@ using HotChocolate.Configuration; using HotChocolate.Language; using HotChocolate.Types; -using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Data/src/Data/Sorting/SortFieldDefinition.cs b/src/HotChocolate/Data/src/Data/Sorting/SortFieldDefinition.cs index 9753707cb45..e6eb9732d9e 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/SortFieldDefinition.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/SortFieldDefinition.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; using System.Linq.Expressions; using System.Reflection; -using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Data/src/Data/Sorting/SortInputType.cs b/src/HotChocolate/Data/src/Data/Sorting/SortInputType.cs index eea6b9b462d..ca908e91d9e 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/SortInputType.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/SortInputType.cs @@ -1,9 +1,7 @@ using System; -using System.Linq; using HotChocolate.Configuration; using HotChocolate.Internal; using HotChocolate.Types; -using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; using static HotChocolate.Internal.FieldInitHelper; diff --git a/src/HotChocolate/Data/src/Data/Sorting/Visitor/SortProvider.cs b/src/HotChocolate/Data/src/Data/Sorting/Visitor/SortProvider.cs index 9291205cfd0..6b367abf69f 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/Visitor/SortProvider.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/Visitor/SortProvider.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using HotChocolate.Configuration; -using HotChocolate.Resolvers; using HotChocolate.Types; using HotChocolate.Types.Descriptors; using HotChocolate.Utilities; diff --git a/src/HotChocolate/Data/src/Data/Sorting/Visitor/SortVisiorContextExtensions.cs b/src/HotChocolate/Data/src/Data/Sorting/Visitor/SortVisiorContextExtensions.cs index 81a24f4cded..b06bc24ef90 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/Visitor/SortVisiorContextExtensions.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/Visitor/SortVisiorContextExtensions.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace HotChocolate.Data.Sorting; public static class SortVisitorContextExtensions diff --git a/src/HotChocolate/Data/src/Data/Sorting/Visitor/SortVisitorBase`2.cs b/src/HotChocolate/Data/src/Data/Sorting/Visitor/SortVisitorBase`2.cs index 16725b32130..d38db3062f3 100644 --- a/src/HotChocolate/Data/src/Data/Sorting/Visitor/SortVisitorBase`2.cs +++ b/src/HotChocolate/Data/src/Data/Sorting/Visitor/SortVisitorBase`2.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Language; using HotChocolate.Language.Visitors; diff --git a/src/HotChocolate/Data/test/Data.AutoMapper.Tests/TestExtensions.cs b/src/HotChocolate/Data/test/Data.AutoMapper.Tests/TestExtensions.cs index 51a66c3e75d..7d84dc58f8f 100644 --- a/src/HotChocolate/Data/test/Data.AutoMapper.Tests/TestExtensions.cs +++ b/src/HotChocolate/Data/test/Data.AutoMapper.Tests/TestExtensions.cs @@ -1,4 +1,3 @@ -using System.Buffers; using CookieCrumble; using HotChocolate.Execution; using static CookieCrumble.Formatters.SnapshotValueFormatters; diff --git a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorStructTests.cs b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorStructTests.cs index c7c17edf6ac..517cad9b95a 100644 --- a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorStructTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorStructTests.cs @@ -1,9 +1,6 @@ -using System; -using System.Collections.Generic; using System.Threading.Tasks; using CookieCrumble; using HotChocolate.Execution; -using HotChocolate.Types; namespace HotChocolate.Data.Filters.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorListTests.cs b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorListTests.cs index 630d9147f84..705877e48ae 100644 --- a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorListTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorListTests.cs @@ -2,7 +2,6 @@ using System.Threading.Tasks; using CookieCrumble; using HotChocolate.Execution; -using Xunit; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorDateOnlyTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorDateOnlyTests.cs index c4562538b79..1bd8aa57e0f 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorDateOnlyTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorDateOnlyTests.cs @@ -1,8 +1,5 @@ using System; using HotChocolate.Language; -using HotChocolate.Types; - -using Xunit; namespace HotChocolate.Data.Filters.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorListTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorListTests.cs index c26d926f7e0..99e4f40d2e8 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorListTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorListTests.cs @@ -1,7 +1,5 @@ -using System; using System.Collections.Generic; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Data.Filters.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorMethodTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorMethodTests.cs index c96d373f02d..490149ffac0 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorMethodTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorMethodTests.cs @@ -7,7 +7,6 @@ using HotChocolate.Language.Visitors; using HotChocolate.Types; using HotChocolate.Types.Descriptors; -using Xunit; using static HotChocolate.Language.Utf8GraphQLParser; namespace HotChocolate.Data.Filters.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorTimeOnlyTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorTimeOnlyTests.cs index 17872c9a6ca..68843bd3e13 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorTimeOnlyTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorTimeOnlyTests.cs @@ -1,6 +1,5 @@ using System; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Data.Filters.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/FilterTypeAttributeTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/FilterTypeAttributeTests.cs index 9a0f075dc31..3b0a9c775a4 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/FilterTypeAttributeTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/FilterTypeAttributeTests.cs @@ -2,7 +2,6 @@ using System.Reflection; using HotChocolate.Types; using HotChocolate.Types.Descriptors; -using Xunit; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/TypeInspectorTests .cs b/src/HotChocolate/Data/test/Data.Filters.Tests/TypeInspectorTests .cs index 10e68fb1e86..99aa41a11ba 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/TypeInspectorTests .cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/TypeInspectorTests .cs @@ -1,7 +1,5 @@ using HotChocolate.Data.Filters; -using HotChocolate.Internal; using HotChocolate.Types.Descriptors; -using Xunit; namespace HotChocolate.Data.Tests; diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/ProjectionVisitorTestBase.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/ProjectionVisitorTestBase.cs index b2bf62c7418..c98124175c8 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/ProjectionVisitorTestBase.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/ProjectionVisitorTestBase.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Linq; using HotChocolate.Data.Projections.Expressions; using HotChocolate.Execution; diff --git a/src/HotChocolate/Data/test/Data.Projections.Tests/ProjectionsAttributeTests.cs b/src/HotChocolate/Data/test/Data.Projections.Tests/ProjectionsAttributeTests.cs index e3de44c0b44..bf444e8d0eb 100644 --- a/src/HotChocolate/Data/test/Data.Projections.Tests/ProjectionsAttributeTests.cs +++ b/src/HotChocolate/Data/test/Data.Projections.Tests/ProjectionsAttributeTests.cs @@ -4,8 +4,6 @@ using CookieCrumble; using HotChocolate.Types; -using Xunit; - namespace HotChocolate.Data; public class ProjectionAttributeTests diff --git a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorExpressionTests.cs b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorExpressionTests.cs index 5f04d885d0e..e0a68f6546c 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorExpressionTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorExpressionTests.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; using CookieCrumble; using HotChocolate.Execution; diff --git a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorExpressionTests.cs b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorExpressionTests.cs index e36eb95dcca..fb119508b5a 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorExpressionTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorExpressionTests.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; using CookieCrumble; using HotChocolate.Execution; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/Context/SortingContextParameterExpressionBuilderTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/Context/SortingContextParameterExpressionBuilderTests.cs index ae688fe4e6d..d39273bea9d 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/Context/SortingContextParameterExpressionBuilderTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/Context/SortingContextParameterExpressionBuilderTests.cs @@ -3,7 +3,6 @@ using System.Threading.Tasks; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/Convention/SortConventionScopeTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/Convention/SortConventionScopeTests.cs index 869288e35ad..11063c9110b 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/Convention/SortConventionScopeTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/Convention/SortConventionScopeTests.cs @@ -1,11 +1,7 @@ -using System; -using System.Collections.Generic; using System.Linq; using CookieCrumble; using HotChocolate.Types; -using Xunit; - namespace HotChocolate.Data.Sorting; public class SortConventionScopeTests diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/ExecutorBuilder.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/ExecutorBuilder.cs index 8f9b0b87fdf..fdccc70f2e0 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/ExecutorBuilder.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/ExecutorBuilder.cs @@ -1,8 +1,6 @@ using System; using System.Linq; -using System.Linq.Expressions; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Data.Sorting.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/QueryableSortVisitorAscObjectTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/QueryableSortVisitorAscObjectTests.cs index 92d2edd326c..49efd57a189 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/QueryableSortVisitorAscObjectTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/QueryableSortVisitorAscObjectTests.cs @@ -1,7 +1,6 @@ using System; using System.Linq; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Data.Sorting.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/QueryableSortVisitorAscTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/QueryableSortVisitorAscTests.cs index 9e12f7bdaa4..bf09f43f925 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/QueryableSortVisitorAscTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/QueryableSortVisitorAscTests.cs @@ -1,7 +1,6 @@ using System; using System.Linq; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Data.Sorting.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/QueryableSortVisitorDescObjectTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/QueryableSortVisitorDescObjectTests.cs index 6715c367be1..17953fb9016 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/QueryableSortVisitorDescObjectTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/QueryableSortVisitorDescObjectTests.cs @@ -1,7 +1,6 @@ using System; using System.Linq; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Data.Sorting.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/QueryableSortVisitorDescTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/QueryableSortVisitorDescTests.cs index 603d155e7d0..afa45d2aec3 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/QueryableSortVisitorDescTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/Expression/QueryableSortVisitorDescTests.cs @@ -1,7 +1,6 @@ using System; using System.Linq; using HotChocolate.Language; -using Xunit; namespace HotChocolate.Data.Sorting.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/SortAttributeTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/SortAttributeTests.cs index 40bfcf20e11..74c5166a653 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/SortAttributeTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/SortAttributeTests.cs @@ -4,7 +4,6 @@ using CookieCrumble; using HotChocolate.Types; using HotChocolate.Types.Descriptors; -using Xunit; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/SortConventionExtensionsTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/SortConventionExtensionsTests.cs index 2df45e14227..2e541690e88 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/SortConventionExtensionsTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/SortConventionExtensionsTests.cs @@ -3,11 +3,9 @@ using HotChocolate.Configuration; using HotChocolate.Data.Sorting; using HotChocolate.Data.Sorting.Expressions; -using HotChocolate.Resolvers; using HotChocolate.Types; using HotChocolate.Types.Descriptors; using Microsoft.Extensions.DependencyInjection; -using Xunit; namespace HotChocolate.Data; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/SortInputTypeTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/SortInputTypeTests.cs index ea88ec796cd..212cd3bd9e3 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/SortInputTypeTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/SortInputTypeTests.cs @@ -6,8 +6,6 @@ using HotChocolate.Language; using HotChocolate.Types; -using Xunit; - namespace HotChocolate.Data.Tests; public class SortInputTypeTest : SortTestBase diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/SortTestBase.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/SortTestBase.cs index cde07a5b396..aac62564d50 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/SortTestBase.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/SortTestBase.cs @@ -1,5 +1,4 @@ using System; -using HotChocolate.Data.Sorting; using HotChocolate.Types; namespace HotChocolate.Data.Tests; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/SortTypeAttributeTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/SortTypeAttributeTests.cs index 6db7124bb61..5984decd4ad 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/SortTypeAttributeTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/SortTypeAttributeTests.cs @@ -2,7 +2,6 @@ using System.Reflection; using HotChocolate.Types; using HotChocolate.Types.Descriptors; -using Xunit; using static HotChocolate.Data.Sorting.SortTypeAttributeTests.GenericTypeSortAttribute; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/Types/ObjectInputTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/Types/ObjectInputTests.cs index f2d312f647c..7dfdc2fe3da 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/Types/ObjectInputTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/Types/ObjectInputTests.cs @@ -2,8 +2,6 @@ using CookieCrumble; using HotChocolate.Types; -using Xunit; - namespace HotChocolate.Data.Sorting; public class ObjectInputTests diff --git a/src/HotChocolate/Data/test/Data.Tests/ExecutableTests.cs b/src/HotChocolate/Data/test/Data.Tests/ExecutableTests.cs index 12ec2c71fbc..514e3b5a364 100644 --- a/src/HotChocolate/Data/test/Data.Tests/ExecutableTests.cs +++ b/src/HotChocolate/Data/test/Data.Tests/ExecutableTests.cs @@ -1,7 +1,6 @@ using System.Linq; using System.Threading.Tasks; using CookieCrumble; -using Xunit; namespace HotChocolate.Data; diff --git a/src/HotChocolate/Diagnostics/src/Diagnostics/Listeners/ActivityDataLoaderDiagnosticListener.cs b/src/HotChocolate/Diagnostics/src/Diagnostics/Listeners/ActivityDataLoaderDiagnosticListener.cs index e827720c4d7..15dc64421e7 100644 --- a/src/HotChocolate/Diagnostics/src/Diagnostics/Listeners/ActivityDataLoaderDiagnosticListener.cs +++ b/src/HotChocolate/Diagnostics/src/Diagnostics/Listeners/ActivityDataLoaderDiagnosticListener.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using GreenDonut; using HotChocolate.Diagnostics.Scopes; using static HotChocolate.Diagnostics.HotChocolateActivitySource; diff --git a/src/HotChocolate/Diagnostics/test/Diagnostics.Tests/QueryInstrumentationTests.cs b/src/HotChocolate/Diagnostics/test/Diagnostics.Tests/QueryInstrumentationTests.cs index 7b9d6ea55f8..f06ed342320 100644 --- a/src/HotChocolate/Diagnostics/test/Diagnostics.Tests/QueryInstrumentationTests.cs +++ b/src/HotChocolate/Diagnostics/test/Diagnostics.Tests/QueryInstrumentationTests.cs @@ -5,7 +5,6 @@ using HotChocolate.Execution; using Snapshooter; using Snapshooter.Xunit; -using Xunit; using static HotChocolate.Diagnostics.ActivityTestHelper; namespace HotChocolate.Diagnostics; diff --git a/src/HotChocolate/Fusion/src/CommandLine/Commands/RootCommand.cs b/src/HotChocolate/Fusion/src/CommandLine/Commands/RootCommand.cs index c4f3e3b9c89..af2160b67d5 100644 --- a/src/HotChocolate/Fusion/src/CommandLine/Commands/RootCommand.cs +++ b/src/HotChocolate/Fusion/src/CommandLine/Commands/RootCommand.cs @@ -1,6 +1,5 @@ using System.CommandLine; using System.Diagnostics.CodeAnalysis; -using static System.IO.Path; namespace HotChocolate.Fusion.CommandLine.Commands; diff --git a/src/HotChocolate/Fusion/src/Composition/LogEntryHelper.cs b/src/HotChocolate/Fusion/src/Composition/LogEntryHelper.cs index f70c68c6d96..ef43d396aee 100644 --- a/src/HotChocolate/Fusion/src/Composition/LogEntryHelper.cs +++ b/src/HotChocolate/Fusion/src/Composition/LogEntryHelper.cs @@ -1,4 +1,3 @@ -using System.Security; using HotChocolate.Language; using HotChocolate.Skimmed; using static HotChocolate.Fusion.Composition.Properties.CompositionResources; diff --git a/src/HotChocolate/Fusion/src/Core/DependencyInjection/GatewayConfigurationTypeModule.cs b/src/HotChocolate/Fusion/src/Core/DependencyInjection/GatewayConfigurationTypeModule.cs index c7c528a89cc..ad69cb490db 100644 --- a/src/HotChocolate/Fusion/src/Core/DependencyInjection/GatewayConfigurationTypeModule.cs +++ b/src/HotChocolate/Fusion/src/Core/DependencyInjection/GatewayConfigurationTypeModule.cs @@ -1,11 +1,9 @@ using HotChocolate; using HotChocolate.Execution.Configuration; -using HotChocolate.Fusion; using HotChocolate.Fusion.Metadata; using HotChocolate.Fusion.Utilities; using HotChocolate.Language; using HotChocolate.Types; -using HotChocolate.Types.Descriptors.Definitions; using static System.Threading.Tasks.TaskCreationOptions; namespace Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Fusion/src/Core/Execution/FederatedQueryContext.cs b/src/HotChocolate/Fusion/src/Core/Execution/FederatedQueryContext.cs index 4a7f2e4be8a..b56f27ba69e 100644 --- a/src/HotChocolate/Fusion/src/Core/Execution/FederatedQueryContext.cs +++ b/src/HotChocolate/Fusion/src/Core/Execution/FederatedQueryContext.cs @@ -3,7 +3,6 @@ using HotChocolate.Fusion.Clients; using HotChocolate.Fusion.Execution.Nodes; using HotChocolate.Fusion.Metadata; -using HotChocolate.Fusion.Planning; using HotChocolate.Fusion.Utilities; using HotChocolate.Types.Relay; diff --git a/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Parallel.cs b/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Parallel.cs index a87c0584557..81c15d673da 100644 --- a/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Parallel.cs +++ b/src/HotChocolate/Fusion/src/Core/Execution/Nodes/Parallel.cs @@ -1,4 +1,3 @@ -using System.Diagnostics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/HotChocolate/Fusion/src/Core/Metadata/IVariableDefinition.cs b/src/HotChocolate/Fusion/src/Core/Metadata/IVariableDefinition.cs index f0000f9c505..d9f35805275 100644 --- a/src/HotChocolate/Fusion/src/Core/Metadata/IVariableDefinition.cs +++ b/src/HotChocolate/Fusion/src/Core/Metadata/IVariableDefinition.cs @@ -1,5 +1,3 @@ -using HotChocolate.Language; - namespace HotChocolate.Fusion.Metadata; /// diff --git a/src/HotChocolate/Fusion/src/Core/Planning/QueryPlannerHelpers.cs b/src/HotChocolate/Fusion/src/Core/Planning/QueryPlannerHelpers.cs index e818f77edad..26f6fc9d6d1 100644 --- a/src/HotChocolate/Fusion/src/Core/Planning/QueryPlannerHelpers.cs +++ b/src/HotChocolate/Fusion/src/Core/Planning/QueryPlannerHelpers.cs @@ -1,6 +1,5 @@ using HotChocolate.Execution.Processing; using HotChocolate.Fusion.Metadata; -using static HotChocolate.Fusion.FusionResources; namespace HotChocolate.Fusion.Planning; diff --git a/src/HotChocolate/Fusion/test/CommandLine.Tests/CommandTestBase.cs b/src/HotChocolate/Fusion/test/CommandLine.Tests/CommandTestBase.cs index b5f58bb5c0e..abb653836b3 100644 --- a/src/HotChocolate/Fusion/test/CommandLine.Tests/CommandTestBase.cs +++ b/src/HotChocolate/Fusion/test/CommandLine.Tests/CommandTestBase.cs @@ -1,12 +1,6 @@ using System.Collections.Concurrent; -using System.CommandLine.Parsing; -using CookieCrumble; -using HotChocolate.Fusion; -using HotChocolate.Fusion.CommandLine; using HotChocolate.Fusion.CommandLine.Helpers; using HotChocolate.Fusion.Composition; -using HotChocolate.Fusion.Shared; -using static HotChocolate.Fusion.Shared.DemoProjectSchemaExtensions; namespace CommandLine.Tests; diff --git a/src/HotChocolate/Fusion/test/CommandLine.Tests/PackageHelperTests.cs b/src/HotChocolate/Fusion/test/CommandLine.Tests/PackageHelperTests.cs index cd23a833d1d..57eba16426e 100644 --- a/src/HotChocolate/Fusion/test/CommandLine.Tests/PackageHelperTests.cs +++ b/src/HotChocolate/Fusion/test/CommandLine.Tests/PackageHelperTests.cs @@ -1,11 +1,9 @@ -using System.Collections.Concurrent; using System.Text; using System.Text.Json; using CookieCrumble; using HotChocolate.Fusion.CommandLine.Helpers; using HotChocolate.Fusion.Composition; using HotChocolate.Fusion.Shared; -using HotChocolate.Skimmed.Serialization; using static HotChocolate.Fusion.CommandLine.Helpers.PackageHelper; using static HotChocolate.Fusion.Shared.DemoProjectSchemaExtensions; diff --git a/src/HotChocolate/Fusion/test/Composition.Tests/DataTypesTests.cs b/src/HotChocolate/Fusion/test/Composition.Tests/DataTypesTests.cs index 105825f0ddc..f4de12386c7 100644 --- a/src/HotChocolate/Fusion/test/Composition.Tests/DataTypesTests.cs +++ b/src/HotChocolate/Fusion/test/Composition.Tests/DataTypesTests.cs @@ -1,5 +1,4 @@ using CookieCrumble; -using HotChocolate.Fusion.Composition; using HotChocolate.Fusion.Shared; using HotChocolate.Skimmed.Serialization; using Xunit.Abstractions; diff --git a/src/HotChocolate/Fusion/test/Composition.Tests/ErrorTests.cs b/src/HotChocolate/Fusion/test/Composition.Tests/ErrorTests.cs index 788d2a94f80..8375a939c38 100644 --- a/src/HotChocolate/Fusion/test/Composition.Tests/ErrorTests.cs +++ b/src/HotChocolate/Fusion/test/Composition.Tests/ErrorTests.cs @@ -1,6 +1,4 @@ -using CookieCrumble; using HotChocolate.Fusion.Shared; -using HotChocolate.Skimmed.Serialization; using Xunit.Abstractions; namespace HotChocolate.Fusion.Composition; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/ConfigurationRewriterTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/ConfigurationRewriterTests.cs index dc42762772e..35fb59c076e 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/ConfigurationRewriterTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/ConfigurationRewriterTests.cs @@ -1,20 +1,11 @@ using CookieCrumble; -using HotChocolate.Execution; -using HotChocolate.Execution.Configuration; using HotChocolate.Fusion.Composition; using HotChocolate.Fusion.Metadata; -using HotChocolate.Fusion.Planning; using HotChocolate.Fusion.Shared; -using HotChocolate.Language; using HotChocolate.Skimmed.Serialization; -using HotChocolate.Types.Relay; -using Microsoft.Extensions.DependencyInjection; using Xunit.Abstractions; using static HotChocolate.Fusion.Shared.DemoProjectSchemaExtensions; -using static HotChocolate.Language.Utf8GraphQLParser; -using static HotChocolate.Fusion.TestHelper; using HttpClientConfiguration = HotChocolate.Fusion.Metadata.HttpClientConfiguration; -using HotChocolate.Utilities; namespace HotChocolate.Fusion; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/DataTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/DataTests.cs index 600ae061c63..c2b83b0760f 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/DataTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/DataTests.cs @@ -1,10 +1,8 @@ using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Fusion.Composition; -using HotChocolate.Fusion.Composition.Features; using HotChocolate.Fusion.Shared; using HotChocolate.Skimmed.Serialization; -using HotChocolate.Types.Relay; using Microsoft.Extensions.DependencyInjection; using Xunit.Abstractions; using static HotChocolate.Fusion.Shared.DemoProjectSchemaExtensions; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/ErrorTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/ErrorTests.cs index a00f7bea4e5..f27b938814b 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/ErrorTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/ErrorTests.cs @@ -4,7 +4,6 @@ using HotChocolate.Fusion.Composition; using HotChocolate.Fusion.Composition.Features; using HotChocolate.Fusion.Shared; -using HotChocolate.Language; using HotChocolate.Skimmed.Serialization; using HotChocolate.Utilities; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/EventStreamTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/EventStreamTests.cs index ce54a9abcab..bac88c05c48 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/EventStreamTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/EventStreamTests.cs @@ -1,14 +1,9 @@ using CookieCrumble; using HotChocolate.Execution; -using HotChocolate.Execution.Configuration; using HotChocolate.Fusion.Clients; using HotChocolate.Fusion.Composition; -using HotChocolate.Fusion.Composition.Features; -using HotChocolate.Fusion.Planning; using HotChocolate.Fusion.Shared; -using HotChocolate.Language; using HotChocolate.Skimmed.Serialization; -using HotChocolate.Types.Relay; using Microsoft.Extensions.DependencyInjection; using Xunit.Abstractions; using static HotChocolate.Fusion.Shared.DemoProjectSchemaExtensions; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/FileUploadTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/FileUploadTests.cs index 534232675d2..4525ae7b291 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/FileUploadTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/FileUploadTests.cs @@ -1,15 +1,10 @@ using CookieCrumble; using HotChocolate.Execution; -using HotChocolate.Execution.Configuration; using HotChocolate.Fusion.Clients; using HotChocolate.Fusion.Composition; -using HotChocolate.Fusion.Composition.Features; -using HotChocolate.Fusion.Planning; using HotChocolate.Fusion.Shared; -using HotChocolate.Language; using HotChocolate.Skimmed.Serialization; using HotChocolate.Types; -using HotChocolate.Types.Relay; using Microsoft.Extensions.DependencyInjection; using Xunit.Abstractions; using static HotChocolate.Fusion.Shared.DemoProjectSchemaExtensions; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/TestHelper.cs b/src/HotChocolate/Fusion/test/Core.Tests/TestHelper.cs index c444ecddfaf..49940f1e5ab 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/TestHelper.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/TestHelper.cs @@ -1,7 +1,6 @@ using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Fusion.Execution.Nodes; -using HotChocolate.Fusion.Planning; using HotChocolate.Language; using HotChocolate.Skimmed.Serialization; diff --git a/src/HotChocolate/Language/src/Language.Web/GraphQLRequest.cs b/src/HotChocolate/Language/src/Language.Web/GraphQLRequest.cs index ab944e7019c..dcd2be453c3 100644 --- a/src/HotChocolate/Language/src/Language.Web/GraphQLRequest.cs +++ b/src/HotChocolate/Language/src/Language.Web/GraphQLRequest.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; - namespace HotChocolate.Language; public sealed class GraphQLRequest diff --git a/src/HotChocolate/Language/src/Language.Web/GraphQLSocketMessage.cs b/src/HotChocolate/Language/src/Language.Web/GraphQLSocketMessage.cs index 28462794991..901403ee077 100644 --- a/src/HotChocolate/Language/src/Language.Web/GraphQLSocketMessage.cs +++ b/src/HotChocolate/Language/src/Language.Web/GraphQLSocketMessage.cs @@ -1,5 +1,3 @@ -using System; - namespace HotChocolate.Language; public readonly ref struct GraphQLSocketMessage diff --git a/src/HotChocolate/Language/src/Language.Web/IDocumentHashProvider.cs b/src/HotChocolate/Language/src/Language.Web/IDocumentHashProvider.cs index 82111ea2233..3beba377735 100644 --- a/src/HotChocolate/Language/src/Language.Web/IDocumentHashProvider.cs +++ b/src/HotChocolate/Language/src/Language.Web/IDocumentHashProvider.cs @@ -1,5 +1,3 @@ -using System; - namespace HotChocolate.Language; public interface IDocumentHashProvider diff --git a/src/HotChocolate/Language/src/Language.Web/MD5DocumentHashProvider.cs b/src/HotChocolate/Language/src/Language.Web/MD5DocumentHashProvider.cs index a5c9b0c0e0b..6e6488627c0 100644 --- a/src/HotChocolate/Language/src/Language.Web/MD5DocumentHashProvider.cs +++ b/src/HotChocolate/Language/src/Language.Web/MD5DocumentHashProvider.cs @@ -1,7 +1,5 @@ -using System; using System.Runtime.CompilerServices; using System.Security.Cryptography; -using System.Threading; using static HotChocolate.Language.Properties.LangWebResources; namespace HotChocolate.Language; diff --git a/src/HotChocolate/Language/src/Language.Web/Sha1DocumentHashProvider.cs b/src/HotChocolate/Language/src/Language.Web/Sha1DocumentHashProvider.cs index ce820b45a8c..260ba2095f3 100644 --- a/src/HotChocolate/Language/src/Language.Web/Sha1DocumentHashProvider.cs +++ b/src/HotChocolate/Language/src/Language.Web/Sha1DocumentHashProvider.cs @@ -1,7 +1,5 @@ -using System; using System.Runtime.CompilerServices; using System.Security.Cryptography; -using System.Threading; using static HotChocolate.Language.Properties.LangWebResources; namespace HotChocolate.Language; diff --git a/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Constants.cs b/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Constants.cs index b284d601887..cbc00f95a67 100644 --- a/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Constants.cs +++ b/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Constants.cs @@ -1,5 +1,3 @@ -using System; - namespace HotChocolate.Language; public ref partial struct Utf8GraphQLRequestParser diff --git a/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Json.cs b/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Json.cs index 1ec3f772642..2e0e4bfabe0 100644 --- a/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Json.cs +++ b/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Json.cs @@ -1,6 +1,4 @@ -using System; using System.Buffers; -using System.Collections.Generic; using static HotChocolate.Language.Properties.LangWebResources; namespace HotChocolate.Language; diff --git a/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Message.cs b/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Message.cs index 55b62cc63ee..8971c89e5e9 100644 --- a/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Message.cs +++ b/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Message.cs @@ -1,5 +1,3 @@ -using System; - namespace HotChocolate.Language; public ref partial struct Utf8GraphQLRequestParser diff --git a/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Request.cs b/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Request.cs index cc5709df286..48d28b2c539 100644 --- a/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Request.cs +++ b/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Request.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; - namespace HotChocolate.Language; public ref partial struct Utf8GraphQLRequestParser diff --git a/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Response.cs b/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Response.cs index 51854c1a280..edbc7faf026 100644 --- a/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Response.cs +++ b/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Response.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.Runtime.CompilerServices; using static HotChocolate.Language.Properties.LangWebResources; diff --git a/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Syntax.cs b/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Syntax.cs index f2beb5053f3..83650935d61 100644 --- a/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Syntax.cs +++ b/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Syntax.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Runtime.CompilerServices; using static HotChocolate.Language.Properties.LangWebResources; diff --git a/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Utilities.cs b/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Utilities.cs index 97612a1eeed..583437d83f5 100644 --- a/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Utilities.cs +++ b/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Utilities.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using static HotChocolate.Language.Properties.LangWebResources; diff --git a/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Values.cs b/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Values.cs index ea15c82e1c1..5dafcdc7736 100644 --- a/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Values.cs +++ b/src/HotChocolate/Language/src/Language.Web/Utf8GraphQLRequestParser.Values.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Globalization; using System.Runtime.CompilerServices; using static HotChocolate.Language.Properties.LangWebResources; diff --git a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SelectionSetNodeTests.cs b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SelectionSetNodeTests.cs index f77146ae4b6..61ab71c66cb 100644 --- a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SelectionSetNodeTests.cs +++ b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SelectionSetNodeTests.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; using Snapshooter.Xunit; using Xunit; diff --git a/src/HotChocolate/Language/test/Language.Tests/Visitors/DefaultSyntaxNavigatorTests.cs b/src/HotChocolate/Language/test/Language.Tests/Visitors/DefaultSyntaxNavigatorTests.cs index dbd35ab554e..56813c36545 100644 --- a/src/HotChocolate/Language/test/Language.Tests/Visitors/DefaultSyntaxNavigatorTests.cs +++ b/src/HotChocolate/Language/test/Language.Tests/Visitors/DefaultSyntaxNavigatorTests.cs @@ -1,7 +1,6 @@ #nullable enable using System; -using System.Collections.Generic; using System.Linq; using Xunit; using static HotChocolate.Language.Utf8GraphQLParser.Syntax; diff --git a/src/HotChocolate/Language/test/Language.Web.Tests/MD5DocumentHashProviderTests.cs b/src/HotChocolate/Language/test/Language.Web.Tests/MD5DocumentHashProviderTests.cs index d75c1b94cc6..5b33d15fccf 100644 --- a/src/HotChocolate/Language/test/Language.Web.Tests/MD5DocumentHashProviderTests.cs +++ b/src/HotChocolate/Language/test/Language.Web.Tests/MD5DocumentHashProviderTests.cs @@ -1,6 +1,5 @@ using System.Text; using CookieCrumble; -using Xunit; namespace HotChocolate.Language; diff --git a/src/HotChocolate/Language/test/Language.Web.Tests/Sha1DocumentHashProviderTests.cs b/src/HotChocolate/Language/test/Language.Web.Tests/Sha1DocumentHashProviderTests.cs index cf8560f2413..2e20b1ca496 100644 --- a/src/HotChocolate/Language/test/Language.Web.Tests/Sha1DocumentHashProviderTests.cs +++ b/src/HotChocolate/Language/test/Language.Web.Tests/Sha1DocumentHashProviderTests.cs @@ -1,6 +1,5 @@ using System.Text; using CookieCrumble; -using Xunit; namespace HotChocolate.Language; diff --git a/src/HotChocolate/Language/test/Language.Web.Tests/Sha256DocumentHashProviderTests.cs b/src/HotChocolate/Language/test/Language.Web.Tests/Sha256DocumentHashProviderTests.cs index e220037885a..564961c7f11 100644 --- a/src/HotChocolate/Language/test/Language.Web.Tests/Sha256DocumentHashProviderTests.cs +++ b/src/HotChocolate/Language/test/Language.Web.Tests/Sha256DocumentHashProviderTests.cs @@ -1,6 +1,5 @@ using System.Text; using CookieCrumble; -using Xunit; namespace HotChocolate.Language; diff --git a/src/HotChocolate/Marten/src/Data/Filtering/Handlers/MartenQueryableStringInHandler.cs b/src/HotChocolate/Marten/src/Data/Filtering/Handlers/MartenQueryableStringInHandler.cs index 9f593b15375..ad2fb571750 100644 --- a/src/HotChocolate/Marten/src/Data/Filtering/Handlers/MartenQueryableStringInHandler.cs +++ b/src/HotChocolate/Marten/src/Data/Filtering/Handlers/MartenQueryableStringInHandler.cs @@ -1,7 +1,6 @@ using System.Linq.Expressions; using HotChocolate.Data.Filters; using HotChocolate.Data.Filters.Expressions; -using HotChocolate.Data.Marten.Filtering; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/Marten/src/Data/ThrowHelper.cs b/src/HotChocolate/Marten/src/Data/ThrowHelper.cs index b09d3f9cc81..91a9acd7d61 100644 --- a/src/HotChocolate/Marten/src/Data/ThrowHelper.cs +++ b/src/HotChocolate/Marten/src/Data/ThrowHelper.cs @@ -1,7 +1,5 @@ using System.Globalization; -using System.Reflection; using HotChocolate.Data.Filters; -using HotChocolate.Data.Sorting; using HotChocolate.Language; using HotChocolate.Language.Utilities; using HotChocolate.Types; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/SchemaCacheCollectionFixture.cs b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/SchemaCacheCollectionFixture.cs index b70e47734ac..7658c7bb822 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/SchemaCacheCollectionFixture.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/SchemaCacheCollectionFixture.cs @@ -1,5 +1,3 @@ -using HotChocolate.Data.Filters; - namespace HotChocolate.Data; [CollectionDefinition(DefinitionName)] diff --git a/src/HotChocolate/MongoDb/src/Data/Driver/AndFilterDefinition.cs b/src/HotChocolate/MongoDb/src/Data/Driver/AndFilterDefinition.cs index 0aa193d2873..b35082e20a7 100644 --- a/src/HotChocolate/MongoDb/src/Data/Driver/AndFilterDefinition.cs +++ b/src/HotChocolate/MongoDb/src/Data/Driver/AndFilterDefinition.cs @@ -1,8 +1,5 @@ -using System.Collections.Generic; -using System.Linq; using MongoDB.Bson; using MongoDB.Bson.Serialization; -using MongoDB.Driver.Linq; namespace HotChocolate.Data.MongoDb; diff --git a/src/HotChocolate/MongoDb/src/Data/Driver/MongoDbCombinedProjectionDefinition.cs b/src/HotChocolate/MongoDb/src/Data/Driver/MongoDbCombinedProjectionDefinition.cs index dbceadf5983..9c7e43bf32e 100644 --- a/src/HotChocolate/MongoDb/src/Data/Driver/MongoDbCombinedProjectionDefinition.cs +++ b/src/HotChocolate/MongoDb/src/Data/Driver/MongoDbCombinedProjectionDefinition.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; -using System.Linq; using MongoDB.Bson; using MongoDB.Bson.Serialization; using MongoDB.Driver.Core.Misc; diff --git a/src/HotChocolate/MongoDb/src/Data/Driver/MongoDbCombinedSortDefinition.cs b/src/HotChocolate/MongoDb/src/Data/Driver/MongoDbCombinedSortDefinition.cs index a81f3a633bf..4b08127a810 100644 --- a/src/HotChocolate/MongoDb/src/Data/Driver/MongoDbCombinedSortDefinition.cs +++ b/src/HotChocolate/MongoDb/src/Data/Driver/MongoDbCombinedSortDefinition.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; -using System.Linq; using MongoDB.Bson; using MongoDB.Bson.Serialization; using MongoDB.Driver.Core.Misc; diff --git a/src/HotChocolate/MongoDb/src/Data/Driver/MongoDbDirectionalSortOperation.cs b/src/HotChocolate/MongoDb/src/Data/Driver/MongoDbDirectionalSortOperation.cs index b2800fc0e6a..f67cfde4082 100644 --- a/src/HotChocolate/MongoDb/src/Data/Driver/MongoDbDirectionalSortOperation.cs +++ b/src/HotChocolate/MongoDb/src/Data/Driver/MongoDbDirectionalSortOperation.cs @@ -1,4 +1,3 @@ -using System; using MongoDB.Bson; using MongoDB.Bson.Serialization; using MongoDB.Driver; diff --git a/src/HotChocolate/MongoDb/src/Data/Driver/MongoDbIncludeProjectionOperation.cs b/src/HotChocolate/MongoDb/src/Data/Driver/MongoDbIncludeProjectionOperation.cs index 723616d4e6e..1194f778f15 100644 --- a/src/HotChocolate/MongoDb/src/Data/Driver/MongoDbIncludeProjectionOperation.cs +++ b/src/HotChocolate/MongoDb/src/Data/Driver/MongoDbIncludeProjectionOperation.cs @@ -1,6 +1,5 @@ using MongoDB.Bson; using MongoDB.Bson.Serialization; -using MongoDB.Driver; using MongoDB.Driver.Core.Misc; namespace HotChocolate.Data.MongoDb; diff --git a/src/HotChocolate/MongoDb/src/Data/Driver/NotMongoDbFilterDefinition.cs b/src/HotChocolate/MongoDb/src/Data/Driver/NotMongoDbFilterDefinition.cs index 96258979536..a84c46f1960 100644 --- a/src/HotChocolate/MongoDb/src/Data/Driver/NotMongoDbFilterDefinition.cs +++ b/src/HotChocolate/MongoDb/src/Data/Driver/NotMongoDbFilterDefinition.cs @@ -1,4 +1,3 @@ -using System; using MongoDB.Bson; using MongoDB.Bson.Serialization; diff --git a/src/HotChocolate/MongoDb/src/Data/Driver/OrMongoDbFilterDefinition.cs b/src/HotChocolate/MongoDb/src/Data/Driver/OrMongoDbFilterDefinition.cs index 4cfd1153bf9..9e58530e986 100644 --- a/src/HotChocolate/MongoDb/src/Data/Driver/OrMongoDbFilterDefinition.cs +++ b/src/HotChocolate/MongoDb/src/Data/Driver/OrMongoDbFilterDefinition.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; -using System.Linq; using MongoDB.Bson; using MongoDB.Bson.Serialization; diff --git a/src/HotChocolate/MongoDb/src/Data/Driver/StringFieldDefinitionHelper.cs b/src/HotChocolate/MongoDb/src/Data/Driver/StringFieldDefinitionHelper.cs index b91d1444efa..02fe226e024 100644 --- a/src/HotChocolate/MongoDb/src/Data/Driver/StringFieldDefinitionHelper.cs +++ b/src/HotChocolate/MongoDb/src/Data/Driver/StringFieldDefinitionHelper.cs @@ -1,4 +1,3 @@ -using System.Linq; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; diff --git a/src/HotChocolate/MongoDb/src/Data/ErrorHelper.cs b/src/HotChocolate/MongoDb/src/Data/ErrorHelper.cs index 7c3d32520de..823ec8ce116 100644 --- a/src/HotChocolate/MongoDb/src/Data/ErrorHelper.cs +++ b/src/HotChocolate/MongoDb/src/Data/ErrorHelper.cs @@ -1,4 +1,3 @@ -using System.Linq; using HotChocolate.Data.Filters; using HotChocolate.Data.Sorting; using HotChocolate.Language; diff --git a/src/HotChocolate/MongoDb/src/Data/Execution/MongoDbAggregateFluentExecutable.cs b/src/HotChocolate/MongoDb/src/Data/Execution/MongoDbAggregateFluentExecutable.cs index 5a3f5ce5f5c..380a1d853c3 100644 --- a/src/HotChocolate/MongoDb/src/Data/Execution/MongoDbAggregateFluentExecutable.cs +++ b/src/HotChocolate/MongoDb/src/Data/Execution/MongoDbAggregateFluentExecutable.cs @@ -1,6 +1,4 @@ using System.Collections; -using System.Threading; -using System.Threading.Tasks; using MongoDB.Driver; namespace HotChocolate.Data.MongoDb; diff --git a/src/HotChocolate/MongoDb/src/Data/Execution/MongoDbCollectionExecutable.cs b/src/HotChocolate/MongoDb/src/Data/Execution/MongoDbCollectionExecutable.cs index 172cae71a14..6c40f612845 100644 --- a/src/HotChocolate/MongoDb/src/Data/Execution/MongoDbCollectionExecutable.cs +++ b/src/HotChocolate/MongoDb/src/Data/Execution/MongoDbCollectionExecutable.cs @@ -1,6 +1,4 @@ using System.Collections; -using System.Threading; -using System.Threading.Tasks; using MongoDB.Bson; using MongoDB.Bson.Serialization; using MongoDB.Driver; diff --git a/src/HotChocolate/MongoDb/src/Data/Execution/MongoDbFindFluentExecutable.cs b/src/HotChocolate/MongoDb/src/Data/Execution/MongoDbFindFluentExecutable.cs index 17d7ad70d44..da4aa5a82a9 100644 --- a/src/HotChocolate/MongoDb/src/Data/Execution/MongoDbFindFluentExecutable.cs +++ b/src/HotChocolate/MongoDb/src/Data/Execution/MongoDbFindFluentExecutable.cs @@ -1,6 +1,4 @@ using System.Collections; -using System.Threading; -using System.Threading.Tasks; using MongoDB.Driver; namespace HotChocolate.Data.MongoDb; diff --git a/src/HotChocolate/MongoDb/src/Data/Extensions/MongoDbDataRequestBuilderExtensions.cs b/src/HotChocolate/MongoDb/src/Data/Extensions/MongoDbDataRequestBuilderExtensions.cs index b8cec20845f..2361a3519fa 100644 --- a/src/HotChocolate/MongoDb/src/Data/Extensions/MongoDbDataRequestBuilderExtensions.cs +++ b/src/HotChocolate/MongoDb/src/Data/Extensions/MongoDbDataRequestBuilderExtensions.cs @@ -1,9 +1,7 @@ -using System; using HotChocolate.Data.MongoDb; using HotChocolate.Data.MongoDb.Paging; using HotChocolate.Execution.Configuration; using HotChocolate.Types; -using HotChocolate.Types.Pagination; using MongoDB.Bson; namespace Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/MongoDb/src/Data/Extensions/MongoSortVisitorContextExtensions.cs b/src/HotChocolate/MongoDb/src/Data/Extensions/MongoSortVisitorContextExtensions.cs index 8608eccfdaf..71b8f22e60b 100644 --- a/src/HotChocolate/MongoDb/src/Data/Extensions/MongoSortVisitorContextExtensions.cs +++ b/src/HotChocolate/MongoDb/src/Data/Extensions/MongoSortVisitorContextExtensions.cs @@ -1,5 +1,4 @@ using System.Diagnostics.CodeAnalysis; -using System.Linq; namespace HotChocolate.Data.MongoDb.Sorting; diff --git a/src/HotChocolate/MongoDb/src/Data/Extensions/SchemaBuilderExtensions.cs b/src/HotChocolate/MongoDb/src/Data/Extensions/SchemaBuilderExtensions.cs index 5e17c476512..2eaede12bab 100644 --- a/src/HotChocolate/MongoDb/src/Data/Extensions/SchemaBuilderExtensions.cs +++ b/src/HotChocolate/MongoDb/src/Data/Extensions/SchemaBuilderExtensions.cs @@ -1,4 +1,3 @@ -using HotChocolate.Data.Filters; using HotChocolate.Data.MongoDb.Filters; namespace HotChocolate.Data.MongoDb; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Convention/Extensions/MongoDbFilterConventionDescriptorExtensions.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Convention/Extensions/MongoDbFilterConventionDescriptorExtensions.cs index b802b6852b0..e2763098b9f 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Convention/Extensions/MongoDbFilterConventionDescriptorExtensions.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Convention/Extensions/MongoDbFilterConventionDescriptorExtensions.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Data.Filters; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableGreaterThanHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableGreaterThanHandler.cs index 3ab816bdb38..50f136bc267 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableGreaterThanHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableGreaterThanHandler.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Data.Filters; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableGreaterThanOrEqualsHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableGreaterThanOrEqualsHandler.cs index 17ec2d7a5b3..572654e4f5a 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableGreaterThanOrEqualsHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableGreaterThanOrEqualsHandler.cs @@ -1,8 +1,6 @@ -using System; using HotChocolate.Data.Filters; using HotChocolate.Language; using HotChocolate.Types; -using MongoDB.Bson; using MongoDB.Driver; namespace HotChocolate.Data.MongoDb.Filters; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableLowerThanHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableLowerThanHandler.cs index 610d4c838c1..7bda5a4b5b6 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableLowerThanHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableLowerThanHandler.cs @@ -1,8 +1,6 @@ -using System; using HotChocolate.Data.Filters; using HotChocolate.Language; using HotChocolate.Types; -using MongoDB.Bson; using MongoDB.Driver; namespace HotChocolate.Data.MongoDb.Filters; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableLowerThanOrEqualsHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableLowerThanOrEqualsHandler.cs index 842e07df250..5b788416d61 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableLowerThanOrEqualsHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableLowerThanOrEqualsHandler.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Data.Filters; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableNotGreaterThanHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableNotGreaterThanHandler.cs index 96eed3e25aa..bd1d3e31500 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableNotGreaterThanHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableNotGreaterThanHandler.cs @@ -1,8 +1,6 @@ -using System; using HotChocolate.Data.Filters; using HotChocolate.Language; using HotChocolate.Types; -using MongoDB.Bson; using MongoDB.Driver; namespace HotChocolate.Data.MongoDb.Filters; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableNotGreaterThanOrEqualsHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableNotGreaterThanOrEqualsHandler.cs index db6fb887a1d..8ad75613f78 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableNotGreaterThanOrEqualsHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableNotGreaterThanOrEqualsHandler.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Data.Filters; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableNotLowerThanHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableNotLowerThanHandler.cs index 6f4f1970a62..d04a7b5b2f2 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableNotLowerThanHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableNotLowerThanHandler.cs @@ -1,8 +1,6 @@ -using System; using HotChocolate.Data.Filters; using HotChocolate.Language; using HotChocolate.Types; -using MongoDB.Bson; using MongoDB.Driver; namespace HotChocolate.Data.MongoDb.Filters; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableNotLowerThanOrEqualsHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableNotLowerThanOrEqualsHandler.cs index 1c694d5f93b..dac71028493 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableNotLowerThanOrEqualsHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/Comparable/MongoDbComparableNotLowerThanOrEqualsHandler.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Data.Filters; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/List/MongoDbListAllOperationHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/List/MongoDbListAllOperationHandler.cs index 98caf08b1e3..8a632b37c7c 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/List/MongoDbListAllOperationHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/List/MongoDbListAllOperationHandler.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using HotChocolate.Data.Filters; using MongoDB.Bson; using MongoDB.Driver; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/List/MongoDbListAnyOperationHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/List/MongoDbListAnyOperationHandler.cs index 73c16983c8f..3e150cb9f62 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/List/MongoDbListAnyOperationHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/List/MongoDbListAnyOperationHandler.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Configuration; using HotChocolate.Data.Filters; using HotChocolate.Language; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/MongoDbEqualsOperationHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/MongoDbEqualsOperationHandler.cs index 3e89e2162a0..87c6021a406 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/MongoDbEqualsOperationHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/MongoDbEqualsOperationHandler.cs @@ -2,7 +2,6 @@ using HotChocolate.Data.Filters; using HotChocolate.Language; using HotChocolate.Types; -using MongoDB.Bson; using MongoDB.Driver; namespace HotChocolate.Data.MongoDb.Filters; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/MongoDbNotEqualsOperationHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/MongoDbNotEqualsOperationHandler.cs index b25fc47353f..7e3e1c4f6ef 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/MongoDbNotEqualsOperationHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/MongoDbNotEqualsOperationHandler.cs @@ -2,7 +2,6 @@ using HotChocolate.Data.Filters; using HotChocolate.Language; using HotChocolate.Types; -using MongoDB.Bson; using MongoDB.Driver; namespace HotChocolate.Data.MongoDb.Filters; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/MongoDbOperationHandlerBase.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/MongoDbOperationHandlerBase.cs index fadfbe31691..748da86d43d 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/MongoDbOperationHandlerBase.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/MongoDbOperationHandlerBase.cs @@ -1,8 +1,6 @@ -using System; using System.Diagnostics.CodeAnalysis; using HotChocolate.Data.Filters; using HotChocolate.Data.Filters.Internal; -using HotChocolate.Internal; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringContainsHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringContainsHandler.cs index fb0869b368c..1f3a0ce8272 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringContainsHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringContainsHandler.cs @@ -1,10 +1,8 @@ -using System; using System.Text.RegularExpressions; using HotChocolate.Data.Filters; using HotChocolate.Language; using HotChocolate.Types; using MongoDB.Bson; -using MongoDB.Driver; namespace HotChocolate.Data.MongoDb.Filters; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringEndsWithHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringEndsWithHandler.cs index fa3d0f60dda..f9f8ed55916 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringEndsWithHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringEndsWithHandler.cs @@ -1,10 +1,8 @@ -using System; using System.Text.RegularExpressions; using HotChocolate.Data.Filters; using HotChocolate.Language; using HotChocolate.Types; using MongoDB.Bson; -using MongoDB.Driver; namespace HotChocolate.Data.MongoDb.Filters; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringNotContainsHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringNotContainsHandler.cs index 0a14df07fa9..9e498a51493 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringNotContainsHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringNotContainsHandler.cs @@ -1,10 +1,8 @@ -using System; using System.Text.RegularExpressions; using HotChocolate.Data.Filters; using HotChocolate.Language; using HotChocolate.Types; using MongoDB.Bson; -using MongoDB.Driver; namespace HotChocolate.Data.MongoDb.Filters; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringNotEndsWithHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringNotEndsWithHandler.cs index 07813cc33cc..ceecebdfb27 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringNotEndsWithHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringNotEndsWithHandler.cs @@ -1,10 +1,8 @@ -using System; using System.Text.RegularExpressions; using HotChocolate.Data.Filters; using HotChocolate.Language; using HotChocolate.Types; using MongoDB.Bson; -using MongoDB.Driver; namespace HotChocolate.Data.MongoDb.Filters; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringNotStartsWithHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringNotStartsWithHandler.cs index c0ba8112582..29802f143f6 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringNotStartsWithHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringNotStartsWithHandler.cs @@ -1,10 +1,8 @@ -using System; using System.Text.RegularExpressions; using HotChocolate.Data.Filters; using HotChocolate.Language; using HotChocolate.Types; using MongoDB.Bson; -using MongoDB.Driver; namespace HotChocolate.Data.MongoDb.Filters; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringStartsWithHandler.cs b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringStartsWithHandler.cs index 72604794f58..21ca030d31a 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringStartsWithHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/Handlers/String/MongoDbStringStartsWithHandler.cs @@ -1,10 +1,8 @@ -using System; using System.Text.RegularExpressions; using HotChocolate.Data.Filters; using HotChocolate.Language; using HotChocolate.Types; using MongoDB.Bson; -using MongoDB.Driver; namespace HotChocolate.Data.MongoDb.Filters; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/MongoDbFilterScope.cs b/src/HotChocolate/MongoDb/src/Data/Filters/MongoDbFilterScope.cs index 5c817b9f77c..646ce2807d8 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/MongoDbFilterScope.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/MongoDbFilterScope.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using HotChocolate.Data.Filters; namespace HotChocolate.Data.MongoDb.Filters; diff --git a/src/HotChocolate/MongoDb/src/Data/Filters/MongoDbFilterVisitorContext.cs b/src/HotChocolate/MongoDb/src/Data/Filters/MongoDbFilterVisitorContext.cs index 81953f3d8b7..3179e044c9e 100644 --- a/src/HotChocolate/MongoDb/src/Data/Filters/MongoDbFilterVisitorContext.cs +++ b/src/HotChocolate/MongoDb/src/Data/Filters/MongoDbFilterVisitorContext.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using HotChocolate.Data.Filters; using HotChocolate.Internal; diff --git a/src/HotChocolate/MongoDb/src/Data/Paging/AggregateFluentPagingContainer.cs b/src/HotChocolate/MongoDb/src/Data/Paging/AggregateFluentPagingContainer.cs index c21ee310f46..2120838a5d2 100644 --- a/src/HotChocolate/MongoDb/src/Data/Paging/AggregateFluentPagingContainer.cs +++ b/src/HotChocolate/MongoDb/src/Data/Paging/AggregateFluentPagingContainer.cs @@ -1,6 +1,3 @@ -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.Types.Pagination; using MongoDB.Driver; diff --git a/src/HotChocolate/MongoDb/src/Data/Paging/FindFluentPagingContainer.cs b/src/HotChocolate/MongoDb/src/Data/Paging/FindFluentPagingContainer.cs index 7e2ffdf70a7..679dfbd0949 100644 --- a/src/HotChocolate/MongoDb/src/Data/Paging/FindFluentPagingContainer.cs +++ b/src/HotChocolate/MongoDb/src/Data/Paging/FindFluentPagingContainer.cs @@ -1,8 +1,4 @@ -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.Types.Pagination; -using MongoDB.Bson; using MongoDB.Driver; namespace HotChocolate.Data.MongoDb.Paging; diff --git a/src/HotChocolate/MongoDb/src/Data/Paging/IMongoPagingContainer.cs b/src/HotChocolate/MongoDb/src/Data/Paging/IMongoPagingContainer.cs index d3f3048f11c..3d26af62320 100644 --- a/src/HotChocolate/MongoDb/src/Data/Paging/IMongoPagingContainer.cs +++ b/src/HotChocolate/MongoDb/src/Data/Paging/IMongoPagingContainer.cs @@ -1,6 +1,3 @@ -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.Types.Pagination; namespace HotChocolate.Data.MongoDb.Paging; diff --git a/src/HotChocolate/MongoDb/src/Data/Paging/MongoCursorPagingHandler.cs b/src/HotChocolate/MongoDb/src/Data/Paging/MongoCursorPagingHandler.cs index de58f7fc0a2..a5b176d5827 100644 --- a/src/HotChocolate/MongoDb/src/Data/Paging/MongoCursorPagingHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Paging/MongoCursorPagingHandler.cs @@ -1,6 +1,3 @@ -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.Types.Pagination; namespace HotChocolate.Data.MongoDb.Paging; diff --git a/src/HotChocolate/MongoDb/src/Data/Paging/MongoDbCursorPagingHandler.cs b/src/HotChocolate/MongoDb/src/Data/Paging/MongoDbCursorPagingHandler.cs index fa0b6a7c631..2baa07d4bf6 100644 --- a/src/HotChocolate/MongoDb/src/Data/Paging/MongoDbCursorPagingHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Paging/MongoDbCursorPagingHandler.cs @@ -1,4 +1,3 @@ -using System.Threading.Tasks; using HotChocolate.Resolvers; using HotChocolate.Types.Pagination; using MongoDB.Driver; diff --git a/src/HotChocolate/MongoDb/src/Data/Paging/MongoDbCursorPagingProvider.cs b/src/HotChocolate/MongoDb/src/Data/Paging/MongoDbCursorPagingProvider.cs index 621f518855e..30e48a57028 100644 --- a/src/HotChocolate/MongoDb/src/Data/Paging/MongoDbCursorPagingProvider.cs +++ b/src/HotChocolate/MongoDb/src/Data/Paging/MongoDbCursorPagingProvider.cs @@ -1,4 +1,3 @@ -using System; using System.Reflection; using HotChocolate.Internal; using HotChocolate.Types.Pagination; diff --git a/src/HotChocolate/MongoDb/src/Data/Paging/MongoDbOffsetPagingHandler.cs b/src/HotChocolate/MongoDb/src/Data/Paging/MongoDbOffsetPagingHandler.cs index 61eff376e09..f257a1d4f10 100644 --- a/src/HotChocolate/MongoDb/src/Data/Paging/MongoDbOffsetPagingHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Paging/MongoDbOffsetPagingHandler.cs @@ -1,4 +1,3 @@ -using System.Threading.Tasks; using HotChocolate.Resolvers; using HotChocolate.Types.Pagination; using MongoDB.Driver; diff --git a/src/HotChocolate/MongoDb/src/Data/Paging/MongoDbOffsetPagingProvider.cs b/src/HotChocolate/MongoDb/src/Data/Paging/MongoDbOffsetPagingProvider.cs index 6a3248d3d99..edf3dd1d1f3 100644 --- a/src/HotChocolate/MongoDb/src/Data/Paging/MongoDbOffsetPagingProvider.cs +++ b/src/HotChocolate/MongoDb/src/Data/Paging/MongoDbOffsetPagingProvider.cs @@ -1,4 +1,3 @@ -using System; using System.Reflection; using HotChocolate.Internal; using HotChocolate.Types.Pagination; diff --git a/src/HotChocolate/MongoDb/src/Data/Projections/Convention/Extensions/MongoDbProjectionProviderDescriptorExtensions.cs b/src/HotChocolate/MongoDb/src/Data/Projections/Convention/Extensions/MongoDbProjectionProviderDescriptorExtensions.cs index 2d2c2fd8ae9..2a813590007 100644 --- a/src/HotChocolate/MongoDb/src/Data/Projections/Convention/Extensions/MongoDbProjectionProviderDescriptorExtensions.cs +++ b/src/HotChocolate/MongoDb/src/Data/Projections/Convention/Extensions/MongoDbProjectionProviderDescriptorExtensions.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Data.MongoDb.Projections; using HotChocolate.Data.Projections; using HotChocolate.Data.Projections.Handlers; diff --git a/src/HotChocolate/MongoDb/src/Data/Projections/Convention/Extensions/MongoProjectionVisitorContextExtensions.cs b/src/HotChocolate/MongoDb/src/Data/Projections/Convention/Extensions/MongoProjectionVisitorContextExtensions.cs index 0ccd0f39650..e1722881809 100644 --- a/src/HotChocolate/MongoDb/src/Data/Projections/Convention/Extensions/MongoProjectionVisitorContextExtensions.cs +++ b/src/HotChocolate/MongoDb/src/Data/Projections/Convention/Extensions/MongoProjectionVisitorContextExtensions.cs @@ -1,5 +1,4 @@ using System.Diagnostics.CodeAnalysis; -using System.Linq; using HotChocolate.Data.MongoDb; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/MongoDb/src/Data/Projections/Convention/Handlers/MongoDbProjectionFieldHandler.cs b/src/HotChocolate/MongoDb/src/Data/Projections/Convention/Handlers/MongoDbProjectionFieldHandler.cs index 977c1b8b97a..e5660f6e0f9 100644 --- a/src/HotChocolate/MongoDb/src/Data/Projections/Convention/Handlers/MongoDbProjectionFieldHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Projections/Convention/Handlers/MongoDbProjectionFieldHandler.cs @@ -1,7 +1,6 @@ using System.Diagnostics.CodeAnalysis; using HotChocolate.Data.Projections; using HotChocolate.Execution.Processing; -using HotChocolate.Types; namespace HotChocolate.Data.MongoDb.Projections; diff --git a/src/HotChocolate/MongoDb/src/Data/Projections/Convention/Handlers/MongoDbProjectionScalarHandler.cs b/src/HotChocolate/MongoDb/src/Data/Projections/Convention/Handlers/MongoDbProjectionScalarHandler.cs index c591904c25b..da16610f32a 100644 --- a/src/HotChocolate/MongoDb/src/Data/Projections/Convention/Handlers/MongoDbProjectionScalarHandler.cs +++ b/src/HotChocolate/MongoDb/src/Data/Projections/Convention/Handlers/MongoDbProjectionScalarHandler.cs @@ -2,7 +2,6 @@ using HotChocolate.Data.Projections; using HotChocolate.Data.Sorting; using HotChocolate.Execution.Processing; -using HotChocolate.Types; namespace HotChocolate.Data.MongoDb.Projections; diff --git a/src/HotChocolate/MongoDb/src/Data/Projections/Convention/MongoDbProjectionVisitorContext.cs b/src/HotChocolate/MongoDb/src/Data/Projections/Convention/MongoDbProjectionVisitorContext.cs index 4a1f8a0c4c6..9deca6e1dcb 100644 --- a/src/HotChocolate/MongoDb/src/Data/Projections/Convention/MongoDbProjectionVisitorContext.cs +++ b/src/HotChocolate/MongoDb/src/Data/Projections/Convention/MongoDbProjectionVisitorContext.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using HotChocolate.Data.Projections; using HotChocolate.Resolvers; using HotChocolate.Types; diff --git a/src/HotChocolate/MongoDb/src/Data/Sorting/Convention/Extensions/MongoSortingConventionDescriptorExtensions.cs b/src/HotChocolate/MongoDb/src/Data/Sorting/Convention/Extensions/MongoSortingConventionDescriptorExtensions.cs index d5a48fcb29e..e667ff5d522 100644 --- a/src/HotChocolate/MongoDb/src/Data/Sorting/Convention/Extensions/MongoSortingConventionDescriptorExtensions.cs +++ b/src/HotChocolate/MongoDb/src/Data/Sorting/Convention/Extensions/MongoSortingConventionDescriptorExtensions.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Data.Sorting; namespace HotChocolate.Data; diff --git a/src/HotChocolate/MongoDb/src/Data/Sorting/Handlers/MongoDbSortVisitorContext.cs b/src/HotChocolate/MongoDb/src/Data/Sorting/Handlers/MongoDbSortVisitorContext.cs index 3cd20059872..a8a45c983a0 100644 --- a/src/HotChocolate/MongoDb/src/Data/Sorting/Handlers/MongoDbSortVisitorContext.cs +++ b/src/HotChocolate/MongoDb/src/Data/Sorting/Handlers/MongoDbSortVisitorContext.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using HotChocolate.Data.Sorting; namespace HotChocolate.Data.MongoDb.Sorting; diff --git a/src/HotChocolate/MongoDb/src/Data/ThrowHelper.cs b/src/HotChocolate/MongoDb/src/Data/ThrowHelper.cs index 1aece437b13..979d95edf20 100644 --- a/src/HotChocolate/MongoDb/src/Data/ThrowHelper.cs +++ b/src/HotChocolate/MongoDb/src/Data/ThrowHelper.cs @@ -1,4 +1,3 @@ -using System; using System.Globalization; using HotChocolate.Data.Filters; using HotChocolate.Data.MongoDb.Filters; diff --git a/src/HotChocolate/MongoDb/src/Types/BsonType.cs b/src/HotChocolate/MongoDb/src/Types/BsonType.cs index b72badaaa8d..b508850ebe4 100644 --- a/src/HotChocolate/MongoDb/src/Types/BsonType.cs +++ b/src/HotChocolate/MongoDb/src/Types/BsonType.cs @@ -1,8 +1,5 @@ -using System; using System.Collections; -using System.Collections.Generic; using System.Globalization; -using HotChocolate.Configuration; using HotChocolate.Language; using HotChocolate.Types.MongoDb.Resources; using HotChocolate.Utilities; diff --git a/src/HotChocolate/MongoDb/src/Types/ObjectIdType.cs b/src/HotChocolate/MongoDb/src/Types/ObjectIdType.cs index 169ec6a68ab..af6e6bd4146 100644 --- a/src/HotChocolate/MongoDb/src/Types/ObjectIdType.cs +++ b/src/HotChocolate/MongoDb/src/Types/ObjectIdType.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Language; using HotChocolate.Types.MongoDb.Resources; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbOffsetPagingProviderTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbOffsetPagingProviderTests.cs index b648610c9e7..e266a69de84 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbOffsetPagingProviderTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbOffsetPagingProviderTests.cs @@ -1,12 +1,7 @@ -using System; -using System.Linq; -using System.Reflection; using HotChocolate.Data.MongoDb; using HotChocolate.Data.MongoDb.Paging; -using HotChocolate.Internal; using HotChocolate.Types.Descriptors; using MongoDB.Driver; -using Xunit; namespace HotChocolate.Data; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/SchemaCache.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/SchemaCache.cs index 63cd2b42fc2..19ebd92bf5b 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/SchemaCache.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/SchemaCache.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Concurrent; using HotChocolate.Data.Filters; using HotChocolate.Execution; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/VisitorTestBase.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/VisitorTestBase.cs index 0a67e868dc4..fc413410ea3 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/VisitorTestBase.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/VisitorTestBase.cs @@ -1,10 +1,8 @@ -using System; using HotChocolate.Data.Filters; using HotChocolate.Execution; using HotChocolate.Resolvers; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; -using MongoDB.Driver; using Squadron; namespace HotChocolate.Data.MongoDb.Filters; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/ProjectionVisitorTestBase.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/ProjectionVisitorTestBase.cs index d57a3b71623..02b8fa824fd 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/ProjectionVisitorTestBase.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/ProjectionVisitorTestBase.cs @@ -1,9 +1,7 @@ -using System; using HotChocolate.Execution; using HotChocolate.Resolvers; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; -using MongoDB.Driver; using Squadron; namespace HotChocolate.Data.MongoDb.Projections; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/SchemaCache.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/SchemaCache.cs index 82988dc4b50..1128a5985bb 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/SchemaCache.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/SchemaCache.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Concurrent; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/SchemaCache.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/SchemaCache.cs index 991d3075528..3e1381a3e59 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/SchemaCache.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/SchemaCache.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Concurrent; using HotChocolate.Data.Sorting; using HotChocolate.Execution; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/SortVisitorTestBase.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/SortVisitorTestBase.cs index 8947f6220d6..467953d2d33 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/SortVisitorTestBase.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/SortVisitorTestBase.cs @@ -1,15 +1,8 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using HotChocolate.Data; using HotChocolate.Data.Sorting; using HotChocolate.Execution; -using HotChocolate.Execution.Configuration; using HotChocolate.Resolvers; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; -using MongoDB.Bson; -using MongoDB.Driver; using Squadron; namespace HotChocolate.Data.MongoDb.Sorting; diff --git a/src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/Pipeline/CreateMutationTypeMiddleware.cs b/src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/Pipeline/CreateMutationTypeMiddleware.cs index a9eab8b1b93..6be64acea97 100644 --- a/src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/Pipeline/CreateMutationTypeMiddleware.cs +++ b/src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/Pipeline/CreateMutationTypeMiddleware.cs @@ -1,7 +1,5 @@ -using System.Text.Json; using HotChocolate.OpenApi.Helpers; using HotChocolate.OpenApi.Properties; -using HotChocolate.Resolvers; using HotChocolate.Skimmed; using static HotChocolate.OpenApi.Helpers.OpenApiNamingHelper; diff --git a/src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/Pipeline/CreateQueryTypeMiddleware.cs b/src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/Pipeline/CreateQueryTypeMiddleware.cs index c97944aefc0..d87328703d9 100644 --- a/src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/Pipeline/CreateQueryTypeMiddleware.cs +++ b/src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/Pipeline/CreateQueryTypeMiddleware.cs @@ -1,7 +1,5 @@ -using System.Text.Json; using HotChocolate.OpenApi.Helpers; using HotChocolate.OpenApi.Properties; -using HotChocolate.Resolvers; using HotChocolate.Skimmed; using InputField = HotChocolate.Skimmed.InputField; using ObjectType = HotChocolate.Skimmed.ObjectType; diff --git a/src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/Pipeline/DiscoverOperationsMiddleware.cs b/src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/Pipeline/DiscoverOperationsMiddleware.cs index 283a278db7f..41def66b600 100644 --- a/src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/Pipeline/DiscoverOperationsMiddleware.cs +++ b/src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/Pipeline/DiscoverOperationsMiddleware.cs @@ -1,6 +1,5 @@ using System.Text.RegularExpressions; using HotChocolate.OpenApi.Helpers; -using Microsoft.OpenApi.Models; namespace HotChocolate.OpenApi.Pipeline; diff --git a/src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/RequestExecutorBuilderExtension.cs b/src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/RequestExecutorBuilderExtension.cs index 11fe8baa5a0..d5435ab1cd4 100644 --- a/src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/RequestExecutorBuilderExtension.cs +++ b/src/HotChocolate/OpenApi/src/HotChocolate.OpenApi/RequestExecutorBuilderExtension.cs @@ -5,7 +5,6 @@ using HotChocolate.Skimmed; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; -using Microsoft.OpenApi.Models; using Microsoft.OpenApi.Readers; using static HotChocolate.OpenApi.Properties.OpenApiResources; using IField = HotChocolate.Skimmed.IField; diff --git a/src/HotChocolate/OpenApi/tests/HotChocolate.OpenApi.Tests/IntegrationTests.cs b/src/HotChocolate/OpenApi/tests/HotChocolate.OpenApi.Tests/IntegrationTests.cs index ca04de04061..0ab8a98d6a4 100644 --- a/src/HotChocolate/OpenApi/tests/HotChocolate.OpenApi.Tests/IntegrationTests.cs +++ b/src/HotChocolate/OpenApi/tests/HotChocolate.OpenApi.Tests/IntegrationTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using Microsoft.AspNetCore.TestHost; using Moq; -using static System.IO.Path; namespace HotChocolate.OpenApi.Tests; diff --git a/src/HotChocolate/OpenApi/tests/HotChocolate.OpenApi.Tests/SchemaGenerationTests.cs b/src/HotChocolate/OpenApi/tests/HotChocolate.OpenApi.Tests/SchemaGenerationTests.cs index 24db0b3a559..92de613f217 100644 --- a/src/HotChocolate/OpenApi/tests/HotChocolate.OpenApi.Tests/SchemaGenerationTests.cs +++ b/src/HotChocolate/OpenApi/tests/HotChocolate.OpenApi.Tests/SchemaGenerationTests.cs @@ -2,7 +2,6 @@ using HotChocolate.Execution; using HotChocolate.Skimmed.Serialization; using Microsoft.OpenApi.Readers; -using Xunit; using Xunit.Abstractions; using static System.IO.Path; diff --git a/src/HotChocolate/Raven/src/Data/DocumentStoreParameterExpressionBuilder.cs b/src/HotChocolate/Raven/src/Data/DocumentStoreParameterExpressionBuilder.cs index 1c446b1aaea..14d4c399554 100644 --- a/src/HotChocolate/Raven/src/Data/DocumentStoreParameterExpressionBuilder.cs +++ b/src/HotChocolate/Raven/src/Data/DocumentStoreParameterExpressionBuilder.cs @@ -5,7 +5,6 @@ using HotChocolate.Resolvers.Expressions.Parameters; using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; -using Raven.Client.Documents; using Raven.Client.Documents.Session; using static HotChocolate.Resolvers.FieldClassMiddlewareFactory; diff --git a/src/HotChocolate/Raven/src/Data/Filtering/Handlers/RavenComparableInHandler.cs b/src/HotChocolate/Raven/src/Data/Filtering/Handlers/RavenComparableInHandler.cs index dc8606dbb5a..db316c408ba 100644 --- a/src/HotChocolate/Raven/src/Data/Filtering/Handlers/RavenComparableInHandler.cs +++ b/src/HotChocolate/Raven/src/Data/Filtering/Handlers/RavenComparableInHandler.cs @@ -4,7 +4,6 @@ using HotChocolate.Language; using HotChocolate.Types; using HotChocolate.Utilities; -using Raven.Client.Documents.Linq; namespace HotChocolate.Data.Raven.Filtering.Handlers; diff --git a/src/HotChocolate/Raven/src/Data/RavenExecutableExtensions.cs b/src/HotChocolate/Raven/src/Data/RavenExecutableExtensions.cs index 916a46d4d60..588a622c703 100644 --- a/src/HotChocolate/Raven/src/Data/RavenExecutableExtensions.cs +++ b/src/HotChocolate/Raven/src/Data/RavenExecutableExtensions.cs @@ -1,5 +1,4 @@ using HotChocolate.Data.Raven; -using HotChocolate.Data.Sorting.Expressions; using Raven.Client.Documents; using Raven.Client.Documents.Linq; using Raven.Client.Documents.Session; diff --git a/src/HotChocolate/Raven/src/Data/RavenRequestExecutorBuilderExtensions.cs b/src/HotChocolate/Raven/src/Data/RavenRequestExecutorBuilderExtensions.cs index f187500d72c..f9e8131ac7e 100644 --- a/src/HotChocolate/Raven/src/Data/RavenRequestExecutorBuilderExtensions.cs +++ b/src/HotChocolate/Raven/src/Data/RavenRequestExecutorBuilderExtensions.cs @@ -1,6 +1,5 @@ using HotChocolate.Data.Raven; using HotChocolate.Execution.Configuration; -using Microsoft.Extensions.DependencyInjection; using Raven.Client.Documents; using Raven.Client.Documents.Session; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/FilterVisitorTestBase.cs b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/FilterVisitorTestBase.cs index e9306ec3432..8d3da2f61f8 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/FilterVisitorTestBase.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/FilterVisitorTestBase.cs @@ -1,5 +1,3 @@ -using HotChocolate.Data.Raven.Pagination; -using HotChocolate.Data.Raven; using HotChocolate.Execution; using HotChocolate.Execution.Configuration; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorEnumTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorEnumTests.cs index 01f5fa5a007..c9ffeaba514 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorEnumTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorEnumTests.cs @@ -1,6 +1,5 @@ using CookieCrumble; using HotChocolate.Execution; -using Raven.Client.Documents.Session; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorListTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorListTests.cs index 6320b388641..43a92cdf232 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorListTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorListTests.cs @@ -1,9 +1,5 @@ -using System.Collections.Immutable; using CookieCrumble; using HotChocolate.Execution; -using Microsoft.Extensions.DependencyInjection; -using Raven.Client.Documents; -using Raven.Client.Documents.Queries; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorStringTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorStringTests.cs index 6dbe409f04b..3cc2e46cdbb 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorStringTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorStringTests.cs @@ -1,7 +1,5 @@ using CookieCrumble; using HotChocolate.Execution; -using Microsoft.Extensions.DependencyInjection; -using Raven.Client.Documents; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/RavenAsyncDocumentQueryTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/RavenAsyncDocumentQueryTests.cs index 08bb2bf9f03..8ff847d20bd 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/RavenAsyncDocumentQueryTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/RavenAsyncDocumentQueryTests.cs @@ -1,6 +1,5 @@ using CookieCrumble; using HotChocolate.Data.Raven.Filters; -using HotChocolate.Data.Raven.Pagination; using HotChocolate.Data.Raven.Paging; using HotChocolate.Execution; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/RavenDocumentQueryTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/RavenDocumentQueryTests.cs index e896557e4cf..70e4237b17d 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/RavenDocumentQueryTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/RavenDocumentQueryTests.cs @@ -1,6 +1,5 @@ using CookieCrumble; using HotChocolate.Data.Raven.Filters; -using HotChocolate.Data.Raven.Pagination; using HotChocolate.Data.Raven.Paging; using HotChocolate.Execution; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/SchemaCache.cs b/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/SchemaCache.cs index 4fac314c95e..51ee2b64de8 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/SchemaCache.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/SchemaCache.cs @@ -1,9 +1,7 @@ -using System; using System.Collections.Concurrent; using HotChocolate.Data.Filters; using HotChocolate.Execution; using HotChocolate.Execution.Configuration; -using Squadron; namespace HotChocolate.Data.Raven.Filters; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/VisitorTestBase.cs b/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/VisitorTestBase.cs index 7729f906a1d..260467a382b 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/VisitorTestBase.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/VisitorTestBase.cs @@ -1,5 +1,4 @@ using HotChocolate.Data.Filters; -using HotChocolate.Data.Raven.Pagination; using HotChocolate.Execution; using HotChocolate.Execution.Configuration; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/Attributes/CatchErrorMiddlewareAttribute.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/Attributes/CatchErrorMiddlewareAttribute.cs index 2a6e33dc437..f773a08c697 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/Attributes/CatchErrorMiddlewareAttribute.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/Attributes/CatchErrorMiddlewareAttribute.cs @@ -1,4 +1,3 @@ -using System; using System.Reflection; using HotChocolate.Types; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/ProjectionVisitorTestBase.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/ProjectionVisitorTestBase.cs index a6ca10b1c23..12a4e3a5059 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/ProjectionVisitorTestBase.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/ProjectionVisitorTestBase.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; using HotChocolate.Data.Projections; -using HotChocolate.Data.Projections.Expressions; using HotChocolate.Data.Raven.Projections; using HotChocolate.Execution; using HotChocolate.Execution.Configuration; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableFirstOrDefaultTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableFirstOrDefaultTests.cs index 8fd5e7733f1..8ea12b900a1 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableFirstOrDefaultTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableFirstOrDefaultTests.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; -using System.Threading.Tasks; using CookieCrumble; using HotChocolate.Execution; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionInterfaceTypeTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionInterfaceTypeTests.cs index 73335b8505f..c3a7f81fae5 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionInterfaceTypeTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionInterfaceTypeTests.cs @@ -3,8 +3,6 @@ using HotChocolate.Execution.Configuration; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; -using Raven.Client.Documents; -using Raven.Client.Documents.Linq.Indexing; using static HotChocolate.Data.Raven.ProjectionVisitorTestBase; namespace HotChocolate.Data.Raven; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorExecutableTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorExecutableTests.cs index c497ec9d5d3..e862c5e72b4 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorExecutableTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorExecutableTests.cs @@ -1,4 +1,3 @@ -using System.Threading.Tasks; using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorIsProjectedTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorIsProjectedTests.cs index ff5428bde87..447b5522409 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorIsProjectedTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorIsProjectedTests.cs @@ -1,4 +1,3 @@ -using System.Threading.Tasks; using CookieCrumble; using HotChocolate.Execution; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorPagingTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorPagingTests.cs index 703b8bafec0..a1ca37a1022 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorPagingTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorPagingTests.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; using System.Reflection; -using System.Threading.Tasks; using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorScalarTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorScalarTests.cs index 9e98bbc7e9c..8bbb54a8da1 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorScalarTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorScalarTests.cs @@ -1,4 +1,3 @@ -using System.Threading.Tasks; using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorEnumTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorEnumTests.cs index ac683234533..7b8954c89ba 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorEnumTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorEnumTests.cs @@ -1,4 +1,3 @@ -using System.Threading.Tasks; using CookieCrumble; using HotChocolate.Execution; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorExecutableTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorExecutableTests.cs index 58a13b1203e..e03ea763573 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorExecutableTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorExecutableTests.cs @@ -1,4 +1,3 @@ -using System.Threading.Tasks; using CookieCrumble; using HotChocolate.Execution; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/SchemaCache.cs b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/SchemaCache.cs index dce157f29c7..984aff18f10 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/SchemaCache.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/SchemaCache.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Concurrent; using HotChocolate.Execution; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/SortVisitorTestBase.cs b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/SortVisitorTestBase.cs index c436edde643..89a259a4076 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/SortVisitorTestBase.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/SortVisitorTestBase.cs @@ -1,4 +1,3 @@ -using HotChocolate.Data; using HotChocolate.Execution; using HotChocolate.Execution.Configuration; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Tests/AnnotationBasedTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Tests/AnnotationBasedTests.cs index 581376292ee..5441254a263 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Tests/AnnotationBasedTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Tests/AnnotationBasedTests.cs @@ -1,5 +1,4 @@ using CookieCrumble; -using HotChocolate.Data.Raven.Pagination; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Tests/DataExtensionsTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Tests/DataExtensionsTests.cs index 421b31b6c06..21496103dcb 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Tests/DataExtensionsTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Tests/DataExtensionsTests.cs @@ -1,5 +1,4 @@ using CookieCrumble; -using HotChocolate.Data.Raven.Pagination; using HotChocolate.Execution; using HotChocolate.Resolvers; using HotChocolate.Types; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Tests/FluentApiTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Tests/FluentApiTests.cs index c002f6df70b..e0e9514bd1b 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Tests/FluentApiTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Tests/FluentApiTests.cs @@ -1,5 +1,4 @@ using CookieCrumble; -using HotChocolate.Data.Raven.Pagination; using HotChocolate.Execution; using HotChocolate.Types; using HotChocolate.Types.Pagination; diff --git a/src/HotChocolate/Skimmed/test/Skimmed.Tests/ToStringTests.cs b/src/HotChocolate/Skimmed/test/Skimmed.Tests/ToStringTests.cs index 85181fb7e51..6f6279281f1 100644 --- a/src/HotChocolate/Skimmed/test/Skimmed.Tests/ToStringTests.cs +++ b/src/HotChocolate/Skimmed/test/Skimmed.Tests/ToStringTests.cs @@ -1,7 +1,6 @@ using System.Text; using CookieCrumble; using HotChocolate.Skimmed.Serialization; -using static HotChocolate.Skimmed.WellKnownContextData; namespace HotChocolate.Skimmed; diff --git a/src/HotChocolate/Spatial/src/Data/ErrorHelper.cs b/src/HotChocolate/Spatial/src/Data/ErrorHelper.cs index f46e7426b5e..a849636f7f5 100644 --- a/src/HotChocolate/Spatial/src/Data/ErrorHelper.cs +++ b/src/HotChocolate/Spatial/src/Data/ErrorHelper.cs @@ -1,4 +1,3 @@ -using System.Linq; using HotChocolate.Data.Filters; using HotChocolate.Data.Sorting; using HotChocolate.Language; diff --git a/src/HotChocolate/Spatial/src/Data/Filters/Convention/Extensions/SpatialFilterConventionDescriptorExtensions.cs b/src/HotChocolate/Spatial/src/Data/Filters/Convention/Extensions/SpatialFilterConventionDescriptorExtensions.cs index 1b1a248bda2..714b8967d57 100644 --- a/src/HotChocolate/Spatial/src/Data/Filters/Convention/Extensions/SpatialFilterConventionDescriptorExtensions.cs +++ b/src/HotChocolate/Spatial/src/Data/Filters/Convention/Extensions/SpatialFilterConventionDescriptorExtensions.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Data.Filters; using HotChocolate.Data.Filters.Expressions; using HotChocolate.Data.Filters.Spatial; diff --git a/src/HotChocolate/Spatial/src/Data/Filters/Expressions/ExpressionBuilder.cs b/src/HotChocolate/Spatial/src/Data/Filters/Expressions/ExpressionBuilder.cs index 1f450581398..6ac22b6655b 100644 --- a/src/HotChocolate/Spatial/src/Data/Filters/Expressions/ExpressionBuilder.cs +++ b/src/HotChocolate/Spatial/src/Data/Filters/Expressions/ExpressionBuilder.cs @@ -1,5 +1,3 @@ -using System; -using System.Linq; using System.Linq.Expressions; using System.Reflection; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialDistanceOperationHandler.cs b/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialDistanceOperationHandler.cs index bb0f529b4d5..73fe4be76ad 100644 --- a/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialDistanceOperationHandler.cs +++ b/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialDistanceOperationHandler.cs @@ -6,7 +6,6 @@ using HotChocolate.Types; using HotChocolate.Types.Descriptors; using NetTopologySuite.Geometries; -using static HotChocolate.Data.Filters.Spatial.SpatialOperationHandlerHelper; namespace HotChocolate.Data.Filters.Spatial; diff --git a/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialIntersectsOperationHandlerBase.cs b/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialIntersectsOperationHandlerBase.cs index 79af501dc7f..d61e05d1ba1 100644 --- a/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialIntersectsOperationHandlerBase.cs +++ b/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialIntersectsOperationHandlerBase.cs @@ -6,7 +6,6 @@ using HotChocolate.Types; using HotChocolate.Types.Descriptors; using NetTopologySuite.Geometries; -using static HotChocolate.Data.Filters.Spatial.SpatialOperationHandlerHelper; namespace HotChocolate.Data.Filters.Spatial; diff --git a/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialMethodHandler.cs b/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialMethodHandler.cs index 37f3fe83244..ae05d5fcb2c 100644 --- a/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialMethodHandler.cs +++ b/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialMethodHandler.cs @@ -8,7 +8,6 @@ using HotChocolate.Language.Visitors; using HotChocolate.Types; using HotChocolate.Types.Descriptors; -using static HotChocolate.Data.Filters.Spatial.SpatialOperationHandlerHelper; namespace HotChocolate.Data.Filters.Spatial; diff --git a/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialWithinOperationHandlerBase.cs b/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialWithinOperationHandlerBase.cs index 65d3c9b7d22..e7770dd2367 100644 --- a/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialWithinOperationHandlerBase.cs +++ b/src/HotChocolate/Spatial/src/Data/Filters/Expressions/Handlers/QueryableSpatialWithinOperationHandlerBase.cs @@ -6,7 +6,6 @@ using HotChocolate.Types; using HotChocolate.Types.Descriptors; using NetTopologySuite.Geometries; -using static HotChocolate.Data.Filters.Spatial.SpatialOperationHandlerHelper; namespace HotChocolate.Data.Filters.Spatial; diff --git a/src/HotChocolate/Spatial/src/Data/Filters/Extensions/SpatialFilteringRequestExecutorBuilderExtensions.cs b/src/HotChocolate/Spatial/src/Data/Filters/Extensions/SpatialFilteringRequestExecutorBuilderExtensions.cs index ce58ddab85d..a4bdd275ae3 100644 --- a/src/HotChocolate/Spatial/src/Data/Filters/Extensions/SpatialFilteringRequestExecutorBuilderExtensions.cs +++ b/src/HotChocolate/Spatial/src/Data/Filters/Extensions/SpatialFilteringRequestExecutorBuilderExtensions.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Execution.Configuration; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Spatial/src/Data/Filters/Extensions/SpatialFilteringSchemaBuilderExtensions.cs b/src/HotChocolate/Spatial/src/Data/Filters/Extensions/SpatialFilteringSchemaBuilderExtensions.cs index 20b8934a992..a6aa3db9485 100644 --- a/src/HotChocolate/Spatial/src/Data/Filters/Extensions/SpatialFilteringSchemaBuilderExtensions.cs +++ b/src/HotChocolate/Spatial/src/Data/Filters/Extensions/SpatialFilteringSchemaBuilderExtensions.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Data; using HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Spatial/src/Data/Projections/Extensions/SpatialProjectionsRequestExecutorBuilderExtensions.cs b/src/HotChocolate/Spatial/src/Data/Projections/Extensions/SpatialProjectionsRequestExecutorBuilderExtensions.cs index ab4bfb6e09c..e5851bdcb92 100644 --- a/src/HotChocolate/Spatial/src/Data/Projections/Extensions/SpatialProjectionsRequestExecutorBuilderExtensions.cs +++ b/src/HotChocolate/Spatial/src/Data/Projections/Extensions/SpatialProjectionsRequestExecutorBuilderExtensions.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Execution.Configuration; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Spatial/src/Data/Projections/Extensions/SpatialProjectionsSchemaBuilderExtensions.cs b/src/HotChocolate/Spatial/src/Data/Projections/Extensions/SpatialProjectionsSchemaBuilderExtensions.cs index 441a37e6c5d..83dc4e9b1fc 100644 --- a/src/HotChocolate/Spatial/src/Data/Projections/Extensions/SpatialProjectionsSchemaBuilderExtensions.cs +++ b/src/HotChocolate/Spatial/src/Data/Projections/Extensions/SpatialProjectionsSchemaBuilderExtensions.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Data.Projections; using HotChocolate.Data.Projections.Spatial; diff --git a/src/HotChocolate/Spatial/src/Types/Configuration/SpatialConvention.cs b/src/HotChocolate/Spatial/src/Types/Configuration/SpatialConvention.cs index c2913e0ad17..00ec8c2eafc 100644 --- a/src/HotChocolate/Spatial/src/Types/Configuration/SpatialConvention.cs +++ b/src/HotChocolate/Spatial/src/Types/Configuration/SpatialConvention.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Types.Descriptors; using HotChocolate.Types.Spatial.Transformation; using NetTopologySuite; diff --git a/src/HotChocolate/Spatial/src/Types/Configuration/SpatialConventionDefinition.cs b/src/HotChocolate/Spatial/src/Types/Configuration/SpatialConventionDefinition.cs index 3e0eb359520..997057f637a 100644 --- a/src/HotChocolate/Spatial/src/Types/Configuration/SpatialConventionDefinition.cs +++ b/src/HotChocolate/Spatial/src/Types/Configuration/SpatialConventionDefinition.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using NetTopologySuite; using ProjNet.CoordinateSystems; diff --git a/src/HotChocolate/Spatial/src/Types/Extensions/GeoJsonConverterExtensions.cs b/src/HotChocolate/Spatial/src/Types/Extensions/GeoJsonConverterExtensions.cs index c157ce89abc..536589579ac 100644 --- a/src/HotChocolate/Spatial/src/Types/Extensions/GeoJsonConverterExtensions.cs +++ b/src/HotChocolate/Spatial/src/Types/Extensions/GeoJsonConverterExtensions.cs @@ -1,4 +1,3 @@ -using System; using System.Collections; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/src/Types/Extensions/HotChocolateSpatialRequestExecutorBuilderExtensions.cs b/src/HotChocolate/Spatial/src/Types/Extensions/HotChocolateSpatialRequestExecutorBuilderExtensions.cs index 4a053988cc1..c354df48fea 100644 --- a/src/HotChocolate/Spatial/src/Types/Extensions/HotChocolateSpatialRequestExecutorBuilderExtensions.cs +++ b/src/HotChocolate/Spatial/src/Types/Extensions/HotChocolateSpatialRequestExecutorBuilderExtensions.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate; using HotChocolate.Execution.Configuration; using HotChocolate.Types.Spatial.Configuration; diff --git a/src/HotChocolate/Spatial/src/Types/Extensions/SpatialDescriptorContextExtensions.cs b/src/HotChocolate/Spatial/src/Types/Extensions/SpatialDescriptorContextExtensions.cs index 2afc79ea79b..f4857256b6e 100644 --- a/src/HotChocolate/Spatial/src/Types/Extensions/SpatialDescriptorContextExtensions.cs +++ b/src/HotChocolate/Spatial/src/Types/Extensions/SpatialDescriptorContextExtensions.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Configuration; using HotChocolate.Types.Descriptors; using HotChocolate.Types.Spatial.Configuration; diff --git a/src/HotChocolate/Spatial/src/Types/Extensions/SpatialSchemaBuilderExtensions.cs b/src/HotChocolate/Spatial/src/Types/Extensions/SpatialSchemaBuilderExtensions.cs index 0cefa5ab543..5642befb3c2 100644 --- a/src/HotChocolate/Spatial/src/Types/Extensions/SpatialSchemaBuilderExtensions.cs +++ b/src/HotChocolate/Spatial/src/Types/Extensions/SpatialSchemaBuilderExtensions.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Types.Spatial; using HotChocolate.Types.Spatial.Configuration; using HotChocolate.Types.Spatial.Transformation; diff --git a/src/HotChocolate/Spatial/src/Types/GeoJsonInputType.cs b/src/HotChocolate/Spatial/src/Types/GeoJsonInputType.cs index 23bb7c676c2..4e272fcb3a4 100644 --- a/src/HotChocolate/Spatial/src/Types/GeoJsonInputType.cs +++ b/src/HotChocolate/Spatial/src/Types/GeoJsonInputType.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Configuration; using HotChocolate.Types.Descriptors.Definitions; using HotChocolate.Types.Spatial.Serialization; diff --git a/src/HotChocolate/Spatial/src/Types/GeoJsonResolvers.cs b/src/HotChocolate/Spatial/src/Types/GeoJsonResolvers.cs index c3650300b18..05f76d4c174 100644 --- a/src/HotChocolate/Spatial/src/Types/GeoJsonResolvers.cs +++ b/src/HotChocolate/Spatial/src/Types/GeoJsonResolvers.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using NetTopologySuite.Geometries; using static HotChocolate.Types.Spatial.ThrowHelper; diff --git a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonCoordinatesSerializer.cs b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonCoordinatesSerializer.cs index 10214befbce..ae5f1c71b4e 100644 --- a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonCoordinatesSerializer.cs +++ b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonCoordinatesSerializer.cs @@ -1,4 +1,3 @@ -using System; using System.Collections; using HotChocolate.Language; using HotChocolate.Types.Spatial.Serialization; diff --git a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonGeometrySerializer.cs b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonGeometrySerializer.cs index f8a7f90faa5..1abd0e7b5a0 100644 --- a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonGeometrySerializer.cs +++ b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonGeometrySerializer.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using HotChocolate.Language; using NetTopologySuite.Geometries; using static HotChocolate.Types.Spatial.Serialization.GeoJsonSerializers; diff --git a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonInputObjectSerializer.cs b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonInputObjectSerializer.cs index 162b2b27960..ff05728ce60 100644 --- a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonInputObjectSerializer.cs +++ b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonInputObjectSerializer.cs @@ -1,7 +1,4 @@ -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; using HotChocolate.Language; using NetTopologySuite.Geometries; using static HotChocolate.Types.Spatial.ThrowHelper; diff --git a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonLineStringSerializer.cs b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonLineStringSerializer.cs index 3bb9a16a2ff..e8b1d206474 100644 --- a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonLineStringSerializer.cs +++ b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonLineStringSerializer.cs @@ -1,6 +1,4 @@ -using System; using System.Collections; -using System.Collections.Generic; using NetTopologySuite; using NetTopologySuite.Geometries; using static HotChocolate.Types.Spatial.ThrowHelper; diff --git a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonMultiLineStringSerializer.cs b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonMultiLineStringSerializer.cs index aff8dc558f1..cfa87921e75 100644 --- a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonMultiLineStringSerializer.cs +++ b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonMultiLineStringSerializer.cs @@ -1,7 +1,4 @@ -using System; using System.Collections; -using System.Collections.Generic; -using System.Linq; using HotChocolate.Language; using NetTopologySuite; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonMultiPointSerializer.cs b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonMultiPointSerializer.cs index badda7f51e2..d9e878e923c 100644 --- a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonMultiPointSerializer.cs +++ b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonMultiPointSerializer.cs @@ -1,7 +1,4 @@ -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; using NetTopologySuite; using NetTopologySuite.Geometries; using static HotChocolate.Types.Spatial.ThrowHelper; diff --git a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonMultiPolygonSerializer.cs b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonMultiPolygonSerializer.cs index 979b1bb0bba..43c117f61c8 100644 --- a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonMultiPolygonSerializer.cs +++ b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonMultiPolygonSerializer.cs @@ -1,7 +1,4 @@ -using System; using System.Collections; -using System.Collections.Generic; -using System.Linq; using HotChocolate.Language; using NetTopologySuite; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonPointSerializer.cs b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonPointSerializer.cs index c28404ac3f5..0418f1b9d39 100644 --- a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonPointSerializer.cs +++ b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonPointSerializer.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; using HotChocolate.Language; using NetTopologySuite; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonPolygonSerializer.cs b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonPolygonSerializer.cs index d5688574d4f..4478554520d 100644 --- a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonPolygonSerializer.cs +++ b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonPolygonSerializer.cs @@ -1,7 +1,4 @@ -using System; using System.Collections; -using System.Collections.Generic; -using System.Linq; using HotChocolate.Language; using NetTopologySuite; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonPositionSerializer.cs b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonPositionSerializer.cs index 60f7afd8fd5..1ed2b87ea37 100644 --- a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonPositionSerializer.cs +++ b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonPositionSerializer.cs @@ -1,4 +1,3 @@ -using System; using System.Collections; using HotChocolate.Language; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonSerializerBase.cs b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonSerializerBase.cs index 7eddf1cc5b3..2afcc3a95fc 100644 --- a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonSerializerBase.cs +++ b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonSerializerBase.cs @@ -1,7 +1,4 @@ -using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; using HotChocolate.Language; using HotChocolate.Utilities; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonSerializers.cs b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonSerializers.cs index 7682dada17e..985a88af670 100644 --- a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonSerializers.cs +++ b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonSerializers.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using NetTopologySuite.Geometries; namespace HotChocolate.Types.Spatial.Serialization; diff --git a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonTypeSerializer.cs b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonTypeSerializer.cs index 44941728677..cc9751ae586 100644 --- a/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonTypeSerializer.cs +++ b/src/HotChocolate/Spatial/src/Types/Serialization/GeoJsonTypeSerializer.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using HotChocolate.Language; using static HotChocolate.Types.Spatial.GeoJsonGeometryType; using static HotChocolate.Types.Spatial.ThrowHelper; diff --git a/src/HotChocolate/Spatial/src/Types/Serialization/IGeoJsonSerializer.cs b/src/HotChocolate/Spatial/src/Types/Serialization/IGeoJsonSerializer.cs index f2fb945df08..0466396da3f 100644 --- a/src/HotChocolate/Spatial/src/Types/Serialization/IGeoJsonSerializer.cs +++ b/src/HotChocolate/Spatial/src/Types/Serialization/IGeoJsonSerializer.cs @@ -1,4 +1,3 @@ -using System.Diagnostics.CodeAnalysis; using HotChocolate.Language; namespace HotChocolate.Types.Spatial.Serialization; diff --git a/src/HotChocolate/Spatial/src/Types/ThrowHelper.cs b/src/HotChocolate/Spatial/src/Types/ThrowHelper.cs index 62904690f8c..0a6b8b8df65 100644 --- a/src/HotChocolate/Spatial/src/Types/ThrowHelper.cs +++ b/src/HotChocolate/Spatial/src/Types/ThrowHelper.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Language; using HotChocolate.Types.Spatial.Properties; using HotChocolate.Types.Spatial.Serialization; diff --git a/src/HotChocolate/Spatial/src/Types/Transformation/GeometryTransformationMiddleware.cs b/src/HotChocolate/Spatial/src/Types/Transformation/GeometryTransformationMiddleware.cs index e751ccb0c8d..31143a040f4 100644 --- a/src/HotChocolate/Spatial/src/Types/Transformation/GeometryTransformationMiddleware.cs +++ b/src/HotChocolate/Spatial/src/Types/Transformation/GeometryTransformationMiddleware.cs @@ -1,6 +1,4 @@ -using System; using System.Collections; -using System.Threading.Tasks; using HotChocolate.Resolvers; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/src/Types/Transformation/GeometryTransformer.cs b/src/HotChocolate/Spatial/src/Types/Transformation/GeometryTransformer.cs index 5873b8fdec5..05bde4665f5 100644 --- a/src/HotChocolate/Spatial/src/Types/Transformation/GeometryTransformer.cs +++ b/src/HotChocolate/Spatial/src/Types/Transformation/GeometryTransformer.cs @@ -1,4 +1,3 @@ -using System.Threading.Tasks; using NetTopologySuite.Geometries; using ProjNet.CoordinateSystems.Transformations; diff --git a/src/HotChocolate/Spatial/src/Types/Transformation/GeometryTransformerFactory.cs b/src/HotChocolate/Spatial/src/Types/Transformation/GeometryTransformerFactory.cs index 92ce9c9825e..83abfe6431c 100644 --- a/src/HotChocolate/Spatial/src/Types/Transformation/GeometryTransformerFactory.cs +++ b/src/HotChocolate/Spatial/src/Types/Transformation/GeometryTransformerFactory.cs @@ -1,5 +1,4 @@ using System.Collections.Concurrent; -using System.Collections.Generic; using NetTopologySuite.Geometries; using ProjNet.CoordinateSystems; using ProjNet.CoordinateSystems.Transformations; diff --git a/src/HotChocolate/Spatial/src/Types/Transformation/GeometryTransformerInterceptor.cs b/src/HotChocolate/Spatial/src/Types/Transformation/GeometryTransformerInterceptor.cs index 67ab5d56cfc..077edfc2cd5 100644 --- a/src/HotChocolate/Spatial/src/Types/Transformation/GeometryTransformerInterceptor.cs +++ b/src/HotChocolate/Spatial/src/Types/Transformation/GeometryTransformerInterceptor.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using HotChocolate.Configuration; using HotChocolate.Resolvers; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/DatabaseContext.cs b/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/DatabaseContext.cs index ab4ed96b672..7d14eb7802b 100644 --- a/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/DatabaseContext.cs +++ b/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/DatabaseContext.cs @@ -1,4 +1,3 @@ -using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Squadron; diff --git a/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/FilterVisitorTestBase.cs b/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/FilterVisitorTestBase.cs index b36af64778f..fa425a7879f 100644 --- a/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/FilterVisitorTestBase.cs +++ b/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/FilterVisitorTestBase.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using HotChocolate.Execution; using HotChocolate.Resolvers; using HotChocolate.Types; diff --git a/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/PostgisConfig.cs b/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/PostgisConfig.cs index 8ada39f70a4..0efc92457bb 100644 --- a/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/PostgisConfig.cs +++ b/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/PostgisConfig.cs @@ -1,4 +1,3 @@ -using System; using Squadron; namespace HotChocolate.Data.Projections.Spatial; diff --git a/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/QueryableFilterVisitorTests.cs b/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/QueryableFilterVisitorTests.cs index 6582b10d9d1..defbb88a308 100644 --- a/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/QueryableFilterVisitorTests.cs +++ b/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/QueryableFilterVisitorTests.cs @@ -1,4 +1,3 @@ -using System.Threading.Tasks; using CookieCrumble; using HotChocolate.Execution; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/SchemaCache.cs b/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/SchemaCache.cs index b5eb3de9115..355e38b0989 100644 --- a/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/SchemaCache.cs +++ b/src/HotChocolate/Spatial/test/Data.Projections.SqlServer.Tests/SchemaCache.cs @@ -1,6 +1,4 @@ -using System; using System.Collections.Concurrent; -using System.Threading.Tasks; using HotChocolate.Execution; using Squadron; diff --git a/src/HotChocolate/Spatial/test/Data.Tests/Expressions/ExecutorBuilder.cs b/src/HotChocolate/Spatial/test/Data.Tests/Expressions/ExecutorBuilder.cs index eee6e7de574..a307755a0f4 100644 --- a/src/HotChocolate/Spatial/test/Data.Tests/Expressions/ExecutorBuilder.cs +++ b/src/HotChocolate/Spatial/test/Data.Tests/Expressions/ExecutorBuilder.cs @@ -1,4 +1,3 @@ -using System; using System.Linq.Expressions; using HotChocolate.Data.Filters.Expressions; using HotChocolate.Language; diff --git a/src/HotChocolate/Spatial/test/Data.Tests/Expressions/FilterVisitorTestBase.cs b/src/HotChocolate/Spatial/test/Data.Tests/Expressions/FilterVisitorTestBase.cs index ab101df9b5d..890eaaca603 100644 --- a/src/HotChocolate/Spatial/test/Data.Tests/Expressions/FilterVisitorTestBase.cs +++ b/src/HotChocolate/Spatial/test/Data.Tests/Expressions/FilterVisitorTestBase.cs @@ -1,4 +1,3 @@ -using HotChocolate.Data.Filters; using HotChocolate.Data.Filters.Expressions; using HotChocolate.Types; diff --git a/src/HotChocolate/Spatial/test/Data.Tests/FilterTestBase.cs b/src/HotChocolate/Spatial/test/Data.Tests/FilterTestBase.cs index d9a8685bf18..0ab896c2b92 100644 --- a/src/HotChocolate/Spatial/test/Data.Tests/FilterTestBase.cs +++ b/src/HotChocolate/Spatial/test/Data.Tests/FilterTestBase.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Data.Filters.Expressions; using HotChocolate.Types; diff --git a/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionFormatterTests.cs b/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionFormatterTests.cs index 51535d18499..d63268d7d23 100644 --- a/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionFormatterTests.cs +++ b/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionFormatterTests.cs @@ -1,6 +1,5 @@ using System.Text.Json; using ChilliCream.Testing; -using HotChocolate.Language; using Snapshooter.Xunit; using Xunit; using static HotChocolate.Utilities.Introspection.IntrospectionClient; diff --git a/src/StrawberryShake/Client/src/Core/EntityStore.Observable.cs b/src/StrawberryShake/Client/src/Core/EntityStore.Observable.cs index 9e8011c32e5..75002d85a66 100644 --- a/src/StrawberryShake/Client/src/Core/EntityStore.Observable.cs +++ b/src/StrawberryShake/Client/src/Core/EntityStore.Observable.cs @@ -1,7 +1,5 @@ using System; -using System.Collections.Generic; using System.Collections.Immutable; -using System.Threading; using System.Threading.Channels; using System.Threading.Tasks; diff --git a/src/StrawberryShake/Client/src/Core/OperationExecutor.Observable.cs b/src/StrawberryShake/Client/src/Core/OperationExecutor.Observable.cs index 9160dc11061..bca2ae86367 100644 --- a/src/StrawberryShake/Client/src/Core/OperationExecutor.Observable.cs +++ b/src/StrawberryShake/Client/src/Core/OperationExecutor.Observable.cs @@ -1,5 +1,4 @@ using System; -using System.Threading; using System.Threading.Tasks; namespace StrawberryShake; diff --git a/src/StrawberryShake/Client/src/Core/OperationExecutor.cs b/src/StrawberryShake/Client/src/Core/OperationExecutor.cs index 6393bf4559a..f1ebb3bbac0 100644 --- a/src/StrawberryShake/Client/src/Core/OperationExecutor.cs +++ b/src/StrawberryShake/Client/src/Core/OperationExecutor.cs @@ -1,9 +1,6 @@ using System; -using System.Linq; -using System.Text.Json; using System.Threading; using System.Threading.Tasks; -using StrawberryShake.Internal; using static StrawberryShake.Properties.Resources; namespace StrawberryShake; diff --git a/src/StrawberryShake/Client/src/Core/Response.cs b/src/StrawberryShake/Client/src/Core/Response.cs index 67189be599b..adeabb6d811 100644 --- a/src/StrawberryShake/Client/src/Core/Response.cs +++ b/src/StrawberryShake/Client/src/Core/Response.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using StrawberryShake.Properties; using static StrawberryShake.Properties.Resources; namespace StrawberryShake; diff --git a/src/StrawberryShake/Client/src/Core/StorelessOperationExecutor.Observable.cs b/src/StrawberryShake/Client/src/Core/StorelessOperationExecutor.Observable.cs index 7ff3935d876..e70710dc4d0 100644 --- a/src/StrawberryShake/Client/src/Core/StorelessOperationExecutor.Observable.cs +++ b/src/StrawberryShake/Client/src/Core/StorelessOperationExecutor.Observable.cs @@ -1,5 +1,4 @@ using System; -using System.Threading; using System.Threading.Tasks; namespace StrawberryShake; diff --git a/src/StrawberryShake/Client/src/Transport.Http/HttpConnection.cs b/src/StrawberryShake/Client/src/Transport.Http/HttpConnection.cs index e63a6bac7a7..822c751afa3 100644 --- a/src/StrawberryShake/Client/src/Transport.Http/HttpConnection.cs +++ b/src/StrawberryShake/Client/src/Transport.Http/HttpConnection.cs @@ -4,8 +4,6 @@ using System.Text; using System.Text.Json; using HotChocolate.Transport.Http; -using HotChocolate.Utilities; -using StrawberryShake.Json; using static StrawberryShake.Properties.Resources; using static StrawberryShake.Transport.Http.ResponseEnumerable; diff --git a/src/StrawberryShake/Client/src/Transport.Http/ResponseEnumerable.cs b/src/StrawberryShake/Client/src/Transport.Http/ResponseEnumerable.cs index 9bd1a732429..5619e05a9bd 100644 --- a/src/StrawberryShake/Client/src/Transport.Http/ResponseEnumerable.cs +++ b/src/StrawberryShake/Client/src/Transport.Http/ResponseEnumerable.cs @@ -1,5 +1,4 @@ using System; -using System.Buffers; using System.Collections.Generic; using System.Net.Http; using System.Runtime.CompilerServices; diff --git a/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/IInMemoryClient.cs b/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/IInMemoryClient.cs index c1632534fa8..d900c28a8e7 100644 --- a/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/IInMemoryClient.cs +++ b/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/IInMemoryClient.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; -using HotChocolate; using HotChocolate.Execution; namespace StrawberryShake.Transport.InMemory; diff --git a/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/InMemoryClientFactoryOptions.cs b/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/InMemoryClientFactoryOptions.cs index 5d9c504de46..7ea8380d3ed 100644 --- a/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/InMemoryClientFactoryOptions.cs +++ b/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/InMemoryClientFactoryOptions.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; diff --git a/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/InMemoryClientFactoryServiceCollectionExtensions.cs b/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/InMemoryClientFactoryServiceCollectionExtensions.cs index b962f8cae15..0a15f040ee9 100644 --- a/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/InMemoryClientFactoryServiceCollectionExtensions.cs +++ b/src/StrawberryShake/Client/src/Transport.InMemory/DependencyInjection/InMemoryClientFactoryServiceCollectionExtensions.cs @@ -2,7 +2,6 @@ using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection.Extensions; -using Microsoft.Extensions.Options; using StrawberryShake.Transport.InMemory; namespace Microsoft.Extensions.DependencyInjection; diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/DependencyInjection/WebSocketClientFactoryServiceCollectionExtensions.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/DependencyInjection/WebSocketClientFactoryServiceCollectionExtensions.cs index b311b7f0d9c..307eddd623e 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/DependencyInjection/WebSocketClientFactoryServiceCollectionExtensions.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/DependencyInjection/WebSocketClientFactoryServiceCollectionExtensions.cs @@ -1,8 +1,6 @@ using System; -using System.Collections; using System.Collections.Generic; using Microsoft.Extensions.DependencyInjection.Extensions; -using Microsoft.Extensions.Options; using StrawberryShake.Transport.WebSockets; using StrawberryShake.Transport.WebSockets.Protocols; diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/Messaging/Messages/ErrorOperationMessage.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/Messaging/Messages/ErrorOperationMessage.cs index 272f3e3b4de..8c6c869179a 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/Messaging/Messages/ErrorOperationMessage.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/Messaging/Messages/ErrorOperationMessage.cs @@ -1,4 +1,3 @@ -using System; using StrawberryShake.Properties; namespace StrawberryShake.Transport.WebSockets.Messages; diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/Protocols/GraphQLWebSocket/GraphQLWebSocketProtocol.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/Protocols/GraphQLWebSocket/GraphQLWebSocketProtocol.cs index 2c064f64751..c9132bb8683 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/Protocols/GraphQLWebSocket/GraphQLWebSocketProtocol.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/Protocols/GraphQLWebSocket/GraphQLWebSocketProtocol.cs @@ -1,6 +1,5 @@ using System; using System.Buffers; -using System.Net.Sockets; using System.Text.Json; using System.Threading; using System.Threading.Tasks; diff --git a/src/StrawberryShake/Client/src/Transport.WebSockets/WebSocketConnection.cs b/src/StrawberryShake/Client/src/Transport.WebSockets/WebSocketConnection.cs index 571b74d028d..d9570f74258 100644 --- a/src/StrawberryShake/Client/src/Transport.WebSockets/WebSocketConnection.cs +++ b/src/StrawberryShake/Client/src/Transport.WebSockets/WebSocketConnection.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.IO; using System.Text.Json; using System.Threading; using System.Threading.Tasks; diff --git a/src/StrawberryShake/Client/test/Core.Tests/Json/JsonSerializationHelperTests.cs b/src/StrawberryShake/Client/test/Core.Tests/Json/JsonSerializationHelperTests.cs index d3c1336154d..cf8248cf49c 100644 --- a/src/StrawberryShake/Client/test/Core.Tests/Json/JsonSerializationHelperTests.cs +++ b/src/StrawberryShake/Client/test/Core.Tests/Json/JsonSerializationHelperTests.cs @@ -1,9 +1,4 @@ -using System; using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Text.Json; -using CookieCrumble; namespace StrawberryShake.Json; diff --git a/src/StrawberryShake/Client/test/Persistence.SQLite.Tests/DatabaseHelperTests.cs b/src/StrawberryShake/Client/test/Persistence.SQLite.Tests/DatabaseHelperTests.cs index ef4b1377be1..fbfe71f1a42 100644 --- a/src/StrawberryShake/Client/test/Persistence.SQLite.Tests/DatabaseHelperTests.cs +++ b/src/StrawberryShake/Client/test/Persistence.SQLite.Tests/DatabaseHelperTests.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Data.Sqlite; -using Xunit; namespace StrawberryShake.Persistence.SQLite; diff --git a/src/StrawberryShake/Client/test/Transport.InMemory.Tests/DefaultInMemoryClientBuilderTests.cs b/src/StrawberryShake/Client/test/Transport.InMemory.Tests/DefaultInMemoryClientBuilderTests.cs index 1c995cae659..8c4f4e45911 100644 --- a/src/StrawberryShake/Client/test/Transport.InMemory.Tests/DefaultInMemoryClientBuilderTests.cs +++ b/src/StrawberryShake/Client/test/Transport.InMemory.Tests/DefaultInMemoryClientBuilderTests.cs @@ -6,7 +6,6 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using Moq; -using Xunit; namespace StrawberryShake.Transport.InMemory; diff --git a/src/StrawberryShake/Client/test/Transport.InMemory.Tests/InMemoryClientTests.cs b/src/StrawberryShake/Client/test/Transport.InMemory.Tests/InMemoryClientTests.cs index 8d174562112..1e595228517 100644 --- a/src/StrawberryShake/Client/test/Transport.InMemory.Tests/InMemoryClientTests.cs +++ b/src/StrawberryShake/Client/test/Transport.InMemory.Tests/InMemoryClientTests.cs @@ -5,7 +5,6 @@ using System.Threading.Tasks; using HotChocolate; using HotChocolate.Execution; -using HotChocolate.Execution.Configuration; using Microsoft.Extensions.DependencyInjection; using Moq; diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/IntegrationTests.cs b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/IntegrationTests.cs index a4e8943a4c8..c4c24cc1326 100644 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/IntegrationTests.cs +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/IntegrationTests.cs @@ -6,16 +6,15 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; -using CookieCrumble; using HotChocolate; using HotChocolate.AspNetCore; using HotChocolate.AspNetCore.Subscriptions; using HotChocolate.AspNetCore.Subscriptions.Protocols; using HotChocolate.AspNetCore.Tests.Utilities; +using HotChocolate.Tests; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; using StrawberryShake.Transport.WebSockets.Protocols; -using static HotChocolate.Tests.TestHelper; namespace StrawberryShake.Transport.WebSockets; @@ -26,280 +25,238 @@ public IntegrationTests(TestServerFactory serverFactory) [Fact] public async Task Simple_Request() - { - var snapshot = Snapshot.Create(); - - await TryTest( - async ct => - { - // arrange - using var host = TestServerHelper.CreateServer( - x => x.AddTypeExtension(), - out var port); - var serviceCollection = new ServiceCollection(); - serviceCollection - .AddProtocol() - .AddWebSocketClient( - "Foo", - c => c.Uri = new Uri("ws://localhost:" + port + "/graphql")); - IServiceProvider services = - serviceCollection.BuildServiceProvider(); - - var sessionPool = - services.GetRequiredService(); - - List results = []; - MockDocument document = new("subscription Test { onTest(id:1) }"); - OperationRequest request = new("Test", document); - - // act - var connection = - new WebSocketConnection(async _ => await sessionPool.CreateAsync("Foo", _)); - - await foreach (var response in - connection.ExecuteAsync(request).WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - if (response.Body is not null) - { - results.Add(response.Body); - } - } + using var host = TestServerHelper.CreateServer( + x => x.AddTypeExtension(), + out var port); + IServiceProvider services = + new ServiceCollection() + .AddProtocol() + .AddWebSocketClient( + "Foo", + c => c.Uri = new Uri("ws://localhost:" + port + "/graphql")) + .Services + .BuildServiceProvider(); - // assert - await snapshot - .Add(results.Select(x => x.RootElement.ToString()).ToList()) - .MatchAsync(ct); - }); - } + var sessionPool = services.GetRequiredService(); + + MockDocument document = new("subscription Test { onTest(id:1) }"); + OperationRequest request = new("Test", document); + + var connection = new WebSocketConnection(async t => await sessionPool.CreateAsync("Foo", t)); + + await foreach (var response in connection.ExecuteAsync(request).WithCancellation(ct)) + { + if (response.Body is not null) + { + snapshot.Add(response.Body.RootElement); + } + } + }) + .MatchAsync(); [Fact] public async Task Execution_Error() - { - var snapshot = Snapshot.Create(); - - await TryTest( - async ct => - { - // arrange - using var host = TestServerHelper.CreateServer( - x => x.AddTypeExtension(), - out var port); - - var serviceCollection = new ServiceCollection(); - serviceCollection - .AddProtocol() - .AddWebSocketClient( - "Foo", - c => c.Uri = new Uri("ws://localhost:" + port + "/graphql")); - - IServiceProvider services = serviceCollection.BuildServiceProvider(); - var sessionPool = services.GetRequiredService(); - - List results = []; - MockDocument document = new("subscription Test { onTest }"); - OperationRequest request = new("Test", document); - - // act - var connection = - new WebSocketConnection(async _ => await sessionPool.CreateAsync("Foo", _)); - - await foreach (var response in - connection.ExecuteAsync(request).WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - if (response.Body is not null) + using var host = TestServerHelper.CreateServer( + x => x.AddTypeExtension(), + out var port); + + IServiceProvider services = + new ServiceCollection() + .AddProtocol() + .AddWebSocketClient( + "Foo", + c => c.Uri = new Uri("ws://localhost:" + port + "/graphql")) + .Services + .BuildServiceProvider(); + + var sessionPool = services.GetRequiredService(); + + var document = new MockDocument("subscription Test { onTest }"); + OperationRequest request = new("Test", document); + + var connection = new WebSocketConnection(async t => await sessionPool.CreateAsync("Foo", t)); + + await foreach (var response in connection.ExecuteAsync(request).WithCancellation(ct)) { - results.Add(response.Body); + if (response.Body is not null) + { + snapshot.Add(response.Body.RootElement); + } } - } - - // assert - await snapshot - .Add(results.Select(x => x.RootElement.ToString()).ToList()) - .MatchAsync(ct); - }); - } + }) + .MatchAsync(); [Fact] public async Task Validation_Error() - { - var snapshot = Snapshot.Create(); - - await TryTest( - async ct => - { - // arrange - using var host = TestServerHelper.CreateServer( - x => x.AddTypeExtension(), - out var port); - var serviceCollection = new ServiceCollection(); - serviceCollection - .AddProtocol() - .AddWebSocketClient( - "Foo", - c => c.Uri = new Uri("ws://localhost:" + port + "/graphql")); - IServiceProvider services = - serviceCollection.BuildServiceProvider(); - - var sessionPool = - services.GetRequiredService(); - - List results = []; - MockDocument document = new(@"subscription Test { onTest(id:""Foo"") }"); - OperationRequest request = new("Test", document); - - // act - var connection = - new WebSocketConnection(async _ => await sessionPool.CreateAsync("Foo", _)); - - await foreach (var response in - connection.ExecuteAsync(request).WithCancellation(ct)) + => await SnapshotTest + .Create( + async (snapshot, ct) => { - if (response.Exception is not null) - { - results.Add(response.Exception.Message); - } - } + using var host = TestServerHelper.CreateServer( + x => x.AddTypeExtension(), + out var port); - // assert - await snapshot.Add(results).MatchAsync(ct); - }); - } + IServiceProvider services = + new ServiceCollection() + .AddProtocol() + .AddWebSocketClient( + "Foo", + c => c.Uri = new Uri("ws://localhost:" + port + "/graphql")) + .Services + .BuildServiceProvider(); - [Fact] - public async Task Request_With_ConnectionPayload() - { - var snapshot = Snapshot.Create(); + var sessionPool = services.GetRequiredService(); - await TryTest( - async ct => - { - // arrange - var payload = new Dictionary { ["Key"] = "Value", }; - var sessionInterceptor = new StubSessionInterceptor(); - using var host = TestServerHelper.CreateServer( - builder => builder - .AddTypeExtension() - .AddSocketSessionInterceptor( - _ => sessionInterceptor), - out var port); - - var serviceCollection = new ServiceCollection(); - serviceCollection - .AddProtocol() - .AddWebSocketClient( - "Foo", - c => c.Uri = new Uri("ws://localhost:" + port + "/graphql")) - .ConfigureConnectionInterceptor(new StubConnectionInterceptor(payload)); - - IServiceProvider services = serviceCollection.BuildServiceProvider(); - var sessionPool = services.GetRequiredService(); - - List results = []; - MockDocument document = new("subscription Test { onTest(id:1) }"); - OperationRequest request = new("Test", document); - - // act - var connection = - new WebSocketConnection(async _ => await sessionPool.CreateAsync("Foo", _)); - - await foreach (var response in - connection.ExecuteAsync(request).WithCancellation(ct)) - { - if (response.Body is not null) + MockDocument document = new("""subscription Test { onTest(id:"Foo") }"""); + OperationRequest request = new("Test", document); + + var connection = new WebSocketConnection(async t => await sessionPool.CreateAsync("Foo", t)); + + await foreach (var response in connection.ExecuteAsync(request).WithCancellation(ct)) { - results.Add(response.Body.RootElement.ToString()); + if (response.Body is not null) + { + snapshot.Add(response.Body.RootElement); + } } - } - - // assert - var message = - Assert.IsType>( - sessionInterceptor.InitializeConnectionMessage); - Assert.Equal(payload["Key"], message["Key"]); - await snapshot.Add(results).MatchAsync(ct); - }); - } + }) + .MatchAsync(); [Fact] - public async Task Parallel_Request_SameSocket() - { - var snapshot = Snapshot.Create(); - - await TryTest( - async ct => - { - // arrange - using var host = TestServerHelper - .CreateServer( - x => x.AddTypeExtension(), + public async Task Request_With_ConnectionPayload() + => await SnapshotTest + .Create( + async (snapshot, ct) => + { + var payload = new Dictionary { ["Key"] = "Value", }; + var sessionInterceptor = new StubSessionInterceptor(); + using var host = TestServerHelper.CreateServer( + builder => builder + .AddTypeExtension() + .AddSocketSessionInterceptor( + _ => sessionInterceptor), out var port); - ServiceCollection serviceCollection = []; - serviceCollection - .AddProtocol() - .AddWebSocketClient( - "Foo", - c => c.Uri = new Uri("ws://localhost:" + port + "/graphql")); - IServiceProvider services = serviceCollection.BuildServiceProvider(); + IServiceProvider services = + new ServiceCollection() + .AddProtocol() + .AddWebSocketClient( + "Foo", + c => c.Uri = new Uri("ws://localhost:" + port + "/graphql")) + .ConfigureConnectionInterceptor(new StubConnectionInterceptor(payload)) + .Services + .BuildServiceProvider(); - var sessionPool = services.GetRequiredService(); - ConcurrentDictionary> results = new(); + var sessionPool = services.GetRequiredService(); - async Task CreateSubscription(int id) - { - var connection = new WebSocketConnection( - async cancellationToken => - await sessionPool.CreateAsync("Foo", cancellationToken)); - var document = new MockDocument( - $"subscription Test {{ onTest(id:{id.ToString()}) }}"); - var request = new OperationRequest("Test", document); - - await foreach (var response in - connection.ExecuteAsync(request).WithCancellation(ct)) + MockDocument document = new("subscription Test { onTest(id:1) }"); + OperationRequest request = new("Test", document); + + var connection = new WebSocketConnection(async t => await sessionPool.CreateAsync("Foo", t)); + + await foreach (var response in connection.ExecuteAsync(request).WithCancellation(ct)) { if (response.Body is not null) { - results.AddOrUpdate( - id, - _ => [response.Body,], - (_, l) => - { - l.Add(response.Body); - return l; - }); + snapshot.Add(response.Body.RootElement); } } - } - // act - var list = new List(); + var message = + Assert.IsType>( + sessionInterceptor.InitializeConnectionMessage); + Assert.Equal(payload["Key"], message["Key"]); + }) + .MatchAsync(); - for (var i = 0; i < 15; i++) + [Fact] + public async Task Parallel_Request_SameSocket() + => await SnapshotTest + .Create( + async (snapshot, ct) => { - list.Add(CreateSubscription(i)); - } + // arrange + using var host = TestServerHelper + .CreateServer( + x => x.AddTypeExtension(), + out var port); + + var services = + new ServiceCollection() + .AddProtocol() + .AddWebSocketClient( + "Foo", + c => c.Uri = new Uri("ws://localhost:" + port + "/graphql")) + .Services + .BuildServiceProvider(); + + var sessionPool = services.GetRequiredService(); + var results = new ConcurrentDictionary>(); + + // act + var list = new List(); + + for (var i = 0; i < 15; i++) + { + list.Add(CreateSubscription(i)); + } - await Task.WhenAll(list); + await Task.WhenAll(list); - // assert - var str = ""; + // assert + var str = ""; - foreach (var sub in results.OrderBy(x => x.Key)) - { - var jsonDocuments = sub.Value.ToArray(); + foreach (var sub in results.OrderBy(x => x.Key)) + { + var jsonDocuments = sub.Value.ToArray(); - str += "Operation " + sub.Key + "\n"; + str += "Operation " + sub.Key + "\n"; - for (var index = 0; index < jsonDocuments.Length; index++) - { - str += "Operation " + jsonDocuments[index].RootElement + "\n"; + for (var index = 0; index < jsonDocuments.Length; index++) + { + str += "Operation " + jsonDocuments[index].RootElement + "\n"; + } } - } - await snapshot.Add(str).MatchAsync(ct); - }); - } + snapshot.Add(str); + return; + + async Task CreateSubscription(int id) + { + var connection = new WebSocketConnection( + async cancellationToken => + await sessionPool.CreateAsync("Foo", cancellationToken)); + var document = new MockDocument( + $"subscription Test {{ onTest(id:{id.ToString()}) }}"); + var request = new OperationRequest("Test", document); + + await foreach (var response in + connection.ExecuteAsync(request).WithCancellation(ct)) + { + if (response.Body is not null) + { + results.AddOrUpdate( + id, + _ => [response.Body,], + (_, l) => + { + l.Add(response.Body); + return l; + }); + } + } + } + }) + .MatchAsync(); [ExtendObjectType("Subscription")] public class StringSubscriptionExtensions @@ -338,14 +295,9 @@ public async IAsyncEnumerable CountUp() } } - private sealed class MockDocument : IDocument + private sealed class MockDocument(string query) : IDocument { - private readonly byte[] _query; - - public MockDocument(string query) - { - _query = Encoding.UTF8.GetBytes(query); - } + private readonly byte[] _query = Encoding.UTF8.GetBytes(query); public OperationKind Kind => OperationKind.Query; @@ -368,20 +320,11 @@ public override ValueTask OnConnectAsync( public Dictionary? InitializeConnectionMessage { get; private set; } } - private sealed class StubConnectionInterceptor : ISocketConnectionInterceptor + private sealed class StubConnectionInterceptor(object? payload) : ISocketConnectionInterceptor { - private readonly object? _payload; - - public StubConnectionInterceptor(object? payload) - { - _payload = payload; - } - public ValueTask CreateConnectionInitPayload( ISocketProtocol protocol, CancellationToken cancellationToken) - { - return new(_payload); - } + => new(payload); } -} +} \ No newline at end of file diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/SessionTests.cs b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/SessionTests.cs index 7e8505ef828..3e7ec6e7265 100644 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/SessionTests.cs +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/SessionTests.cs @@ -3,11 +3,10 @@ using System.Text; using System.Threading; using System.Threading.Tasks; -using CookieCrumble; using HotChocolate.Language; +using HotChocolate.Tests; using Moq; using StrawberryShake.Transport.WebSockets.Messages; -using static HotChocolate.Tests.TestHelper; namespace StrawberryShake.Transport.WebSockets; @@ -41,351 +40,362 @@ public void Constructor_ClientNull_ThrowException() [Fact] public async Task OpenSessionAsync_NoProtocolNegotiated_ThrowException() - { - var snapshot = new Snapshot(); - - await TryTest(async ct => - { - // arrange - var client = new SocketClientStub { Protocol = null!, }; - var manager = new Session(client); - - // act - var exception = await Record.ExceptionAsync( - () => manager.OpenSessionAsync(ct)); - - // assert - await snapshot - .Add(Assert.IsType(exception).Message) - .MatchAsync(ct); - }); - } + => await SnapshotTest + .Create( + async (snapshot, ct) => + { + // arrange + var client = new SocketClientStub { Protocol = null!, }; + var manager = new Session(client); + + // act + var exception = await Record.ExceptionAsync( + () => manager.OpenSessionAsync(ct)); + + // assert + snapshot.Add(Assert.IsType(exception).Message); + }) + .MatchAsync(); [Fact] public async Task OpenSessionAsync_ValidSocket_SubscribeToProtocol() - { - await TryTest(async ct => - { - // arrange - var protocolMock = new Mock(MockBehavior.Strict); - var client = new SocketClientStub { Protocol = protocolMock.Object, }; - protocolMock.Setup(x => x.Subscribe(It.IsAny())); - var manager = new Session(client); - - // act - await manager.OpenSessionAsync(ct).ConfigureAwait(false); - - // assert - protocolMock.VerifyAll(); - }); - } + => await SnapshotTest + .Create( + async (_, ct) => + { + // arrange + var protocolMock = new Mock(MockBehavior.Strict); + var client = new SocketClientStub { Protocol = protocolMock.Object, }; + protocolMock.Setup(x => x.Subscribe(It.IsAny())); + var manager = new Session(client); + + // act + await manager.OpenSessionAsync(ct).ConfigureAwait(false); + + // assert + protocolMock.VerifyAll(); + }) + .RunAsync(); [Fact] public async Task OpenSessionAsync_ValidSocket_OpenSocket() - { - await TryTest(async ct => - { - // arrange - var protocolMock = new Mock(); - var client = new SocketClientStub { Protocol = protocolMock.Object, }; - var manager = new Session(client); - - // act - await manager.OpenSessionAsync(ct).ConfigureAwait(false); - - // assert - Assert.Equal(1, client.GetCallCount(x => x.OpenAsync(default!))); - }); - } - + => await SnapshotTest + .Create( + async (_, ct) => + { + // arrange + var protocolMock = new Mock(); + var client = new SocketClientStub { Protocol = protocolMock.Object, }; + var manager = new Session(client); + + // act + await manager.OpenSessionAsync(ct).ConfigureAwait(false); + + // assert + Assert.Equal(1, client.GetCallCount(x => x.OpenAsync(default!))); + }) + .RunAsync(); [Fact] public async Task CloseSessionAsync_OpenSocket_CloseSocket() - { - await TryTest(async ct => - { - // arrange - var protocolMock = new Mock(); - var client = new SocketClientStub { Protocol = protocolMock.Object, }; - var manager = new Session(client); - - // act - await manager.CloseSessionAsync(ct).ConfigureAwait(false); - - // assert - Assert.Equal(1, client.GetCallCount( - x => x.CloseAsync(default!, default!, default!))); - }); - } + => await SnapshotTest + .Create( + async (_, ct) => + { + // arrange + var protocolMock = new Mock(); + var client = new SocketClientStub { Protocol = protocolMock.Object, }; + var manager = new Session(client); + + // act + await manager.CloseSessionAsync(ct).ConfigureAwait(false); + + // assert + Assert.Equal( + 1, + client.GetCallCount( + x => x.CloseAsync(default!, default!, default!))); + }) + .RunAsync(); [Fact] public async Task StartOperationAsync_RequestNull_ThrowException() - { - await TryTest(async ct => - { - // arrange - var protocolMock = new Mock(MockBehavior.Strict); - var client = new SocketClientStub { Protocol = protocolMock.Object, }; - protocolMock.Setup(x => x.Subscribe(It.IsAny())); - OperationRequest request = null!; - var manager = new Session(client); - await manager.OpenSessionAsync(ct); - - // act - var exception = await Record.ExceptionAsync( - () => manager.StartOperationAsync(request, ct)); - - // assert - Assert.IsType(exception); - }); - } + => await SnapshotTest + .Create( + async (_, ct) => + { + // arrange + var protocolMock = new Mock(MockBehavior.Strict); + var client = new SocketClientStub { Protocol = protocolMock.Object, }; + protocolMock.Setup(x => x.Subscribe(It.IsAny())); + OperationRequest request = null!; + var manager = new Session(client); + await manager.OpenSessionAsync(ct); + + // act + var exception = await Record.ExceptionAsync( + () => manager.StartOperationAsync(request, ct)); + + // assert + Assert.IsType(exception); + }) + .RunAsync(); [Fact] public async Task StartOperationAsync_SocketCloses_ThrowException() - { - var snapshot = new Snapshot(); - - await TryTest(async ct => - { - // arrange - var protocolMock = new Mock(MockBehavior.Strict); - var client = new SocketClientStub { Protocol = protocolMock.Object, }; - OperationRequest request = new("Foo", GetHeroQueryDocument.Instance); - var manager = new Session(client); - - // act - var exception = - await Record.ExceptionAsync(() => manager.StartOperationAsync(request, ct)); - - // assert - await snapshot - .Add(Assert.IsType(exception).Message) - .MatchAsync(ct); - }); - } + => await SnapshotTest + .Create( + async (snapshot, ct) => + { + // arrange + var protocolMock = new Mock(MockBehavior.Strict); + var client = new SocketClientStub { Protocol = protocolMock.Object, }; + OperationRequest request = new("Foo", GetHeroQueryDocument.Instance); + var manager = new Session(client); + + // act + var exception = await Record.ExceptionAsync(() => manager.StartOperationAsync(request, ct)); + + // assert + snapshot.Add(Assert.IsType(exception).Message); + }) + .MatchAsync(); [Fact] public async Task StartOperationAsync_RequestNotNull_StartOperation() - { - await TryTest(async ct => - { - // arrange - var protocolMock = new Mock(); - var client = new SocketClientStub() { Protocol = protocolMock.Object, }; - OperationRequest request = new("Foo", GetHeroQueryDocument.Instance); - var manager = new Session(client); - await manager.OpenSessionAsync(ct); - protocolMock - .Setup(x => - x.StartOperationAsync(It.IsAny(), - request, - It.IsAny())) - .Returns(Task.CompletedTask); - - // act - await manager.StartOperationAsync(request, ct); - - // assert - protocolMock.VerifyAll(); - }); - } + => await SnapshotTest + .Create( + async (_, ct) => + { + // arrange + var protocolMock = new Mock(); + var client = new SocketClientStub { Protocol = protocolMock.Object, }; + OperationRequest request = new("Foo", GetHeroQueryDocument.Instance); + var manager = new Session(client); + await manager.OpenSessionAsync(ct); + protocolMock + .Setup( + x => + x.StartOperationAsync( + It.IsAny(), + request, + It.IsAny())) + .Returns(Task.CompletedTask); + + // act + await manager.StartOperationAsync(request, ct); + + // assert + protocolMock.VerifyAll(); + }) + .RunAsync(); [Fact] public async Task StartOperationAsync_RequestNotNull_RegistersStopEvent() - { - await TryTest(async ct => - { - // arrange - var protocolMock = new Mock(); - var client = new SocketClientStub { Protocol = protocolMock.Object, }; - OperationRequest request = new("Foo", GetHeroQueryDocument.Instance); - var manager = new Session(client); - await manager.OpenSessionAsync(ct); - protocolMock - .Setup(x => - x.StartOperationAsync(It.IsAny(), - request, - It.IsAny())) - .Returns(Task.CompletedTask); - protocolMock - .Setup(x => - x.StopOperationAsync(It.IsAny(), It.IsAny())) - .Returns(Task.CompletedTask); - - // act - await manager.StartOperationAsync(request, ct); - protocolMock.Raise(x => x.Disposed += null, new EventArgs()); - - await Task.Delay(500, ct); - - // assert - protocolMock.VerifyAll(); - }); - } + => await SnapshotTest + .Create( + async (_, ct) => + { + // arrange + var protocolMock = new Mock(); + var client = new SocketClientStub { Protocol = protocolMock.Object, }; + OperationRequest request = new("Foo", GetHeroQueryDocument.Instance); + var manager = new Session(client); + await manager.OpenSessionAsync(ct); + protocolMock + .Setup( + x => + x.StartOperationAsync( + It.IsAny(), + request, + It.IsAny())) + .Returns(Task.CompletedTask); + protocolMock + .Setup( + x => + x.StopOperationAsync(It.IsAny(), It.IsAny())) + .Returns(Task.CompletedTask); + + // act + await manager.StartOperationAsync(request, ct); + protocolMock.Raise(x => x.Disposed += null, new EventArgs()); + + await Task.Delay(500, ct); + + // assert + protocolMock.VerifyAll(); + }) + .RunAsync(); [Fact] public async Task StopOperationAsync_RequestNotNull_StopOperation() - { - await TryTest(async ct => - { - // arrange - var protocolMock = new Mock(); - var client = new SocketClientStub { Protocol = protocolMock.Object, }; - OperationRequest request = new("Foo", GetHeroQueryDocument.Instance); - var manager = new Session(client); - await manager.OpenSessionAsync(ct); - protocolMock - .Setup(x => - x.StartOperationAsync(It.IsAny(), - request, - It.IsAny())) - .Returns(Task.CompletedTask); - - // act - var operation = await manager.StartOperationAsync(request, ct); - protocolMock - .Setup(x => x.StopOperationAsync(operation.Id, It.IsAny())) - .Returns(Task.CompletedTask); - await manager.StopOperationAsync(operation.Id, ct); - - // assert - protocolMock.VerifyAll(); - }); - } + => await SnapshotTest + .Create( + async (_, ct) => + { + // arrange + var protocolMock = new Mock(); + var client = new SocketClientStub { Protocol = protocolMock.Object, }; + OperationRequest request = new("Foo", GetHeroQueryDocument.Instance); + var manager = new Session(client); + await manager.OpenSessionAsync(ct); + protocolMock + .Setup( + x => + x.StartOperationAsync( + It.IsAny(), + request, + It.IsAny())) + .Returns(Task.CompletedTask); + + // act + var operation = await manager.StartOperationAsync(request, ct); + protocolMock + .Setup(x => x.StopOperationAsync(operation.Id, It.IsAny())) + .Returns(Task.CompletedTask); + await manager.StopOperationAsync(operation.Id, ct); + + // assert + protocolMock.VerifyAll(); + }) + .RunAsync(); [Fact] public async Task StopOperationAsync_SocketCloses_ThrowException() - { - var snapshot = new Snapshot(); - - await TryTest(async ct => - { - // arrange - var protocolMock = new Mock(MockBehavior.Strict); - var client = new SocketClientStub() { Protocol = protocolMock.Object, }; - var manager = new Session(client); - - // act - var exception = await Record.ExceptionAsync( - () => manager.StopOperationAsync("123", ct)); - - // assert - await snapshot - .Add(Assert.IsType(exception).Message) - .MatchAsync(ct); - }); - } + => await SnapshotTest + .Create( + async (snapshot, ct) => + { + // arrange + var protocolMock = new Mock(MockBehavior.Strict); + var client = new SocketClientStub() { Protocol = protocolMock.Object, }; + var manager = new Session(client); + + // act + var exception = await Record.ExceptionAsync( + () => manager.StopOperationAsync("123", ct)); + + // assert + snapshot.Add(Assert.IsType(exception).Message); + }) + .MatchAsync(); [Fact] public async Task StopOperationAsync_RequestNotNull_DisposeOperation() - { - await TryTest(async ct => - { - // arrange - var protocolMock = new Mock(); - var client = new SocketClientStub() { Protocol = protocolMock.Object, }; - OperationRequest request = new("Foo", GetHeroQueryDocument.Instance); - var manager = new Session(client); - await manager.OpenSessionAsync(ct); - List messages = []; - - // act - var operation = await manager.StartOperationAsync(request, ct); - await manager.StopOperationAsync(operation.Id, ct); - - // should return immediately - await foreach (var elm in operation.ReadAsync().WithCancellation(ct)) - { - messages.Push(elm); - } + => await SnapshotTest + .Create( + async (_, ct) => + { + // arrange + var protocolMock = new Mock(); + var client = new SocketClientStub { Protocol = protocolMock.Object, }; + OperationRequest request = new("Foo", GetHeroQueryDocument.Instance); + var manager = new Session(client); + await manager.OpenSessionAsync(ct); + List messages = []; + + // act + var operation = await manager.StartOperationAsync(request, ct); + await manager.StopOperationAsync(operation.Id, ct); + + // should return immediately + await foreach (var elm in operation.ReadAsync().WithCancellation(ct)) + { + messages.Push(elm); + } - // assert - Assert.Empty(messages); - }); - } + // assert + Assert.Empty(messages); + }) + .RunAsync(); [Fact] public async Task ReceiveMessage_OperationRegistered_ForwardMessageToOperation() - { - await TryTest(async ct => - { - // arrange - var protocolMock = new Mock(); - var client = new SocketClientStub() { Protocol = protocolMock.Object, }; - OnReceiveAsync listener = null!; - protocolMock - .Setup(x => x.Subscribe(It.IsAny())) - .Callback((OnReceiveAsync subscribe) => listener = subscribe); - var manager = new Session(client); - await manager.OpenSessionAsync(ct); - OperationRequest request = new("Foo", GetHeroQueryDocument.Instance); - List messages = []; - - // act - var operation = await manager.StartOperationAsync(request, ct); - await listener(operation.Id, ErrorOperationMessage.ConnectionInitializationError, ct); - - await foreach (var elm in operation.ReadAsync().WithCancellation(ct)) - { - messages.Push(elm); - break; - } + => await SnapshotTest + .Create( + async (_, ct) => + { + // arrange + var protocolMock = new Mock(); + var client = new SocketClientStub() { Protocol = protocolMock.Object, }; + OnReceiveAsync listener = null!; + protocolMock + .Setup(x => x.Subscribe(It.IsAny())) + .Callback((OnReceiveAsync subscribe) => listener = subscribe); + var manager = new Session(client); + await manager.OpenSessionAsync(ct); + OperationRequest request = new("Foo", GetHeroQueryDocument.Instance); + List messages = []; + + // act + var operation = await manager.StartOperationAsync(request, ct); + await listener(operation.Id, ErrorOperationMessage.ConnectionInitializationError, ct); + + await foreach (var elm in operation.ReadAsync().WithCancellation(ct)) + { + messages.Push(elm); + break; + } - // assert - Assert.Single(messages); - }); - } + // assert + Assert.Single(messages); + }) + .RunAsync(); [Fact] public async Task Dispose_Subscribed_Unsubscribe() - { - await TryTest(async ct => - { - // arrange - var protocolMock = new Mock(); - var client = new SocketClientStub { Protocol = protocolMock.Object, }; - protocolMock.Setup(x => x.Unsubscribe(It.IsAny())); - var manager = new Session(client); - await manager.OpenSessionAsync(ct); - - // act - await manager.DisposeAsync(); - - // assert - protocolMock.VerifyAll(); - }); - } + => await SnapshotTest + .Create( + async (_, ct) => + { + // arrange + var protocolMock = new Mock(); + var client = new SocketClientStub { Protocol = protocolMock.Object, }; + protocolMock.Setup(x => x.Unsubscribe(It.IsAny())); + var manager = new Session(client); + await manager.OpenSessionAsync(ct); + + // act + await manager.DisposeAsync(); + + // assert + protocolMock.VerifyAll(); + }) + .RunAsync(); [Fact] public async Task Dispose_RegisteredOperations_DisposeOperations() - { - await TryTest(async ct => - { - // arrange - var protocolMock = new Mock(); - var client = new SocketClientStub { Protocol = protocolMock.Object, }; - OperationRequest request = new("Foo", GetHeroQueryDocument.Instance); - var manager = new Session(client); - await manager.OpenSessionAsync(ct); - var operation = await manager.StartOperationAsync(request, ct); - List messages = []; - - // act - await manager.DisposeAsync(); - await foreach (var elm in operation.ReadAsync().WithCancellation(ct)) - { - messages.Push(elm); - } + => await SnapshotTest + .Create( + async (_, ct) => + { + // arrange + var protocolMock = new Mock(); + var client = new SocketClientStub { Protocol = protocolMock.Object, }; + OperationRequest request = new("Foo", GetHeroQueryDocument.Instance); + var manager = new Session(client); + await manager.OpenSessionAsync(ct); + var operation = await manager.StartOperationAsync(request, ct); + List messages = []; + + // act + await manager.DisposeAsync(); + + await foreach (var elm in operation.ReadAsync().WithCancellation(ct)) + { + messages.Push(elm); + } - // assert - Assert.Empty(messages); - }); - } + // assert + Assert.Empty(messages); + }) + .RunAsync(); private sealed class GetHeroQueryDocument : IDocument { private const string _bodyString = - @"query GetHero { + """ + query GetHero { hero { __typename id @@ -400,7 +410,8 @@ private sealed class GetHeroQueryDocument : IDocument } } version - }"; + } + """; private static readonly byte[] _body = Encoding.UTF8.GetBytes(_bodyString); @@ -416,4 +427,4 @@ private GetHeroQueryDocument() { } public static GetHeroQueryDocument Instance { get; } = new(); } -} +} \ No newline at end of file diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Execution_Error.md b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Execution_Error.md new file mode 100644 index 00000000000..62e12732ce0 --- /dev/null +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Execution_Error.md @@ -0,0 +1,222 @@ +# Execution_Error + +## Result 1 + +```json +{ + "errors": [ + { + "message": "Unexpected Execution Error", + "locations": [ + { + "line": 1, + "column": 21 + } + ], + "path": [ + "onTest" + ] + } + ], + "data": null +} +``` + +## Result 2 + +```json +{ + "errors": [ + { + "message": "Unexpected Execution Error", + "locations": [ + { + "line": 1, + "column": 21 + } + ], + "path": [ + "onTest" + ] + } + ], + "data": null +} +``` + +## Result 3 + +```json +{ + "errors": [ + { + "message": "Unexpected Execution Error", + "locations": [ + { + "line": 1, + "column": 21 + } + ], + "path": [ + "onTest" + ] + } + ], + "data": null +} +``` + +## Result 4 + +```json +{ + "errors": [ + { + "message": "Unexpected Execution Error", + "locations": [ + { + "line": 1, + "column": 21 + } + ], + "path": [ + "onTest" + ] + } + ], + "data": null +} +``` + +## Result 5 + +```json +{ + "errors": [ + { + "message": "Unexpected Execution Error", + "locations": [ + { + "line": 1, + "column": 21 + } + ], + "path": [ + "onTest" + ] + } + ], + "data": null +} +``` + +## Result 6 + +```json +{ + "errors": [ + { + "message": "Unexpected Execution Error", + "locations": [ + { + "line": 1, + "column": 21 + } + ], + "path": [ + "onTest" + ] + } + ], + "data": null +} +``` + +## Result 7 + +```json +{ + "errors": [ + { + "message": "Unexpected Execution Error", + "locations": [ + { + "line": 1, + "column": 21 + } + ], + "path": [ + "onTest" + ] + } + ], + "data": null +} +``` + +## Result 8 + +```json +{ + "errors": [ + { + "message": "Unexpected Execution Error", + "locations": [ + { + "line": 1, + "column": 21 + } + ], + "path": [ + "onTest" + ] + } + ], + "data": null +} +``` + +## Result 9 + +```json +{ + "errors": [ + { + "message": "Unexpected Execution Error", + "locations": [ + { + "line": 1, + "column": 21 + } + ], + "path": [ + "onTest" + ] + } + ], + "data": null +} +``` + +## Result 10 + +```json +{ + "errors": [ + { + "message": "Unexpected Execution Error", + "locations": [ + { + "line": 1, + "column": 21 + } + ], + "path": [ + "onTest" + ] + } + ], + "data": null +} +``` + diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Execution_Error.snap b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Execution_Error.snap deleted file mode 100644 index 93dd12d3b14..00000000000 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Execution_Error.snap +++ /dev/null @@ -1,44 +0,0 @@ ---------------- -[ - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}" -] ---------------- - ---------------- -[ - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}" -] ---------------- - ---------------- -[ - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}", - "{\"errors\":[{\"message\":\"Unexpected Execution Error\",\"locations\":[{\"line\":1,\"column\":21}],\"path\":[\"onTest\"]}]}" -] ---------------- diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Parallel_Request_DifferentSockets.snap b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Parallel_Request_DifferentSockets.snap deleted file mode 100644 index 4626d5c0ee4..00000000000 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Parallel_Request_DifferentSockets.snap +++ /dev/null @@ -1,550 +0,0 @@ -Operation 0 -Operation {"data":{"onTest":"0num0"}} -Operation {"data":{"onTest":"0num1"}} -Operation {"data":{"onTest":"0num2"}} -Operation {"data":{"onTest":"0num3"}} -Operation {"data":{"onTest":"0num4"}} -Operation {"data":{"onTest":"0num5"}} -Operation {"data":{"onTest":"0num6"}} -Operation {"data":{"onTest":"0num7"}} -Operation {"data":{"onTest":"0num8"}} -Operation {"data":{"onTest":"0num9"}} -Operation 1 -Operation {"data":{"onTest":"1num0"}} -Operation {"data":{"onTest":"1num1"}} -Operation {"data":{"onTest":"1num2"}} -Operation {"data":{"onTest":"1num3"}} -Operation {"data":{"onTest":"1num4"}} -Operation {"data":{"onTest":"1num5"}} -Operation {"data":{"onTest":"1num6"}} -Operation {"data":{"onTest":"1num7"}} -Operation {"data":{"onTest":"1num8"}} -Operation {"data":{"onTest":"1num9"}} -Operation 2 -Operation {"data":{"onTest":"2num0"}} -Operation {"data":{"onTest":"2num1"}} -Operation {"data":{"onTest":"2num2"}} -Operation {"data":{"onTest":"2num3"}} -Operation {"data":{"onTest":"2num4"}} -Operation {"data":{"onTest":"2num5"}} -Operation {"data":{"onTest":"2num6"}} -Operation {"data":{"onTest":"2num7"}} -Operation {"data":{"onTest":"2num8"}} -Operation {"data":{"onTest":"2num9"}} -Operation 3 -Operation {"data":{"onTest":"3num0"}} -Operation {"data":{"onTest":"3num1"}} -Operation {"data":{"onTest":"3num2"}} -Operation {"data":{"onTest":"3num3"}} -Operation {"data":{"onTest":"3num4"}} -Operation {"data":{"onTest":"3num5"}} -Operation {"data":{"onTest":"3num6"}} -Operation {"data":{"onTest":"3num7"}} -Operation {"data":{"onTest":"3num8"}} -Operation {"data":{"onTest":"3num9"}} -Operation 4 -Operation {"data":{"onTest":"4num0"}} -Operation {"data":{"onTest":"4num1"}} -Operation {"data":{"onTest":"4num2"}} -Operation {"data":{"onTest":"4num3"}} -Operation {"data":{"onTest":"4num4"}} -Operation {"data":{"onTest":"4num5"}} -Operation {"data":{"onTest":"4num6"}} -Operation {"data":{"onTest":"4num7"}} -Operation {"data":{"onTest":"4num8"}} -Operation {"data":{"onTest":"4num9"}} -Operation 5 -Operation {"data":{"onTest":"5num0"}} -Operation {"data":{"onTest":"5num1"}} -Operation {"data":{"onTest":"5num2"}} -Operation {"data":{"onTest":"5num3"}} -Operation {"data":{"onTest":"5num4"}} -Operation {"data":{"onTest":"5num5"}} -Operation {"data":{"onTest":"5num6"}} -Operation {"data":{"onTest":"5num7"}} -Operation {"data":{"onTest":"5num8"}} -Operation {"data":{"onTest":"5num9"}} -Operation 6 -Operation {"data":{"onTest":"6num0"}} -Operation {"data":{"onTest":"6num1"}} -Operation {"data":{"onTest":"6num2"}} -Operation {"data":{"onTest":"6num3"}} -Operation {"data":{"onTest":"6num4"}} -Operation {"data":{"onTest":"6num5"}} -Operation {"data":{"onTest":"6num6"}} -Operation {"data":{"onTest":"6num7"}} -Operation {"data":{"onTest":"6num8"}} -Operation {"data":{"onTest":"6num9"}} -Operation 7 -Operation {"data":{"onTest":"7num0"}} -Operation {"data":{"onTest":"7num1"}} -Operation {"data":{"onTest":"7num2"}} -Operation {"data":{"onTest":"7num3"}} -Operation {"data":{"onTest":"7num4"}} -Operation {"data":{"onTest":"7num5"}} -Operation {"data":{"onTest":"7num6"}} -Operation {"data":{"onTest":"7num7"}} -Operation {"data":{"onTest":"7num8"}} -Operation {"data":{"onTest":"7num9"}} -Operation 8 -Operation {"data":{"onTest":"8num0"}} -Operation {"data":{"onTest":"8num1"}} -Operation {"data":{"onTest":"8num2"}} -Operation {"data":{"onTest":"8num3"}} -Operation {"data":{"onTest":"8num4"}} -Operation {"data":{"onTest":"8num5"}} -Operation {"data":{"onTest":"8num6"}} -Operation {"data":{"onTest":"8num7"}} -Operation {"data":{"onTest":"8num8"}} -Operation {"data":{"onTest":"8num9"}} -Operation 9 -Operation {"data":{"onTest":"9num0"}} -Operation {"data":{"onTest":"9num1"}} -Operation {"data":{"onTest":"9num2"}} -Operation {"data":{"onTest":"9num3"}} -Operation {"data":{"onTest":"9num4"}} -Operation {"data":{"onTest":"9num5"}} -Operation {"data":{"onTest":"9num6"}} -Operation {"data":{"onTest":"9num7"}} -Operation {"data":{"onTest":"9num8"}} -Operation {"data":{"onTest":"9num9"}} -Operation 100 -Operation {"data":{"onTest":"0num0"}} -Operation {"data":{"onTest":"0num1"}} -Operation {"data":{"onTest":"0num2"}} -Operation {"data":{"onTest":"0num3"}} -Operation {"data":{"onTest":"0num4"}} -Operation {"data":{"onTest":"0num5"}} -Operation {"data":{"onTest":"0num6"}} -Operation {"data":{"onTest":"0num7"}} -Operation {"data":{"onTest":"0num8"}} -Operation {"data":{"onTest":"0num9"}} -Operation 101 -Operation {"data":{"onTest":"1num0"}} -Operation {"data":{"onTest":"1num1"}} -Operation {"data":{"onTest":"1num2"}} -Operation {"data":{"onTest":"1num3"}} -Operation {"data":{"onTest":"1num4"}} -Operation {"data":{"onTest":"1num5"}} -Operation {"data":{"onTest":"1num6"}} -Operation {"data":{"onTest":"1num7"}} -Operation {"data":{"onTest":"1num8"}} -Operation {"data":{"onTest":"1num9"}} -Operation 102 -Operation {"data":{"onTest":"2num0"}} -Operation {"data":{"onTest":"2num1"}} -Operation {"data":{"onTest":"2num2"}} -Operation {"data":{"onTest":"2num3"}} -Operation {"data":{"onTest":"2num4"}} -Operation {"data":{"onTest":"2num5"}} -Operation {"data":{"onTest":"2num6"}} -Operation {"data":{"onTest":"2num7"}} -Operation {"data":{"onTest":"2num8"}} -Operation {"data":{"onTest":"2num9"}} -Operation 103 -Operation {"data":{"onTest":"3num0"}} -Operation {"data":{"onTest":"3num1"}} -Operation {"data":{"onTest":"3num2"}} -Operation {"data":{"onTest":"3num3"}} -Operation {"data":{"onTest":"3num4"}} -Operation {"data":{"onTest":"3num5"}} -Operation {"data":{"onTest":"3num6"}} -Operation {"data":{"onTest":"3num7"}} -Operation {"data":{"onTest":"3num8"}} -Operation {"data":{"onTest":"3num9"}} -Operation 104 -Operation {"data":{"onTest":"4num0"}} -Operation {"data":{"onTest":"4num1"}} -Operation {"data":{"onTest":"4num2"}} -Operation {"data":{"onTest":"4num3"}} -Operation {"data":{"onTest":"4num4"}} -Operation {"data":{"onTest":"4num5"}} -Operation {"data":{"onTest":"4num6"}} -Operation {"data":{"onTest":"4num7"}} -Operation {"data":{"onTest":"4num8"}} -Operation {"data":{"onTest":"4num9"}} -Operation 105 -Operation {"data":{"onTest":"5num0"}} -Operation {"data":{"onTest":"5num1"}} -Operation {"data":{"onTest":"5num2"}} -Operation {"data":{"onTest":"5num3"}} -Operation {"data":{"onTest":"5num4"}} -Operation {"data":{"onTest":"5num5"}} -Operation {"data":{"onTest":"5num6"}} -Operation {"data":{"onTest":"5num7"}} -Operation {"data":{"onTest":"5num8"}} -Operation {"data":{"onTest":"5num9"}} -Operation 106 -Operation {"data":{"onTest":"6num0"}} -Operation {"data":{"onTest":"6num1"}} -Operation {"data":{"onTest":"6num2"}} -Operation {"data":{"onTest":"6num3"}} -Operation {"data":{"onTest":"6num4"}} -Operation {"data":{"onTest":"6num5"}} -Operation {"data":{"onTest":"6num6"}} -Operation {"data":{"onTest":"6num7"}} -Operation {"data":{"onTest":"6num8"}} -Operation {"data":{"onTest":"6num9"}} -Operation 107 -Operation {"data":{"onTest":"7num0"}} -Operation {"data":{"onTest":"7num1"}} -Operation {"data":{"onTest":"7num2"}} -Operation {"data":{"onTest":"7num3"}} -Operation {"data":{"onTest":"7num4"}} -Operation {"data":{"onTest":"7num5"}} -Operation {"data":{"onTest":"7num6"}} -Operation {"data":{"onTest":"7num7"}} -Operation {"data":{"onTest":"7num8"}} -Operation {"data":{"onTest":"7num9"}} -Operation 108 -Operation {"data":{"onTest":"8num0"}} -Operation {"data":{"onTest":"8num1"}} -Operation {"data":{"onTest":"8num2"}} -Operation {"data":{"onTest":"8num3"}} -Operation {"data":{"onTest":"8num4"}} -Operation {"data":{"onTest":"8num5"}} -Operation {"data":{"onTest":"8num6"}} -Operation {"data":{"onTest":"8num7"}} -Operation {"data":{"onTest":"8num8"}} -Operation {"data":{"onTest":"8num9"}} -Operation 109 -Operation {"data":{"onTest":"9num0"}} -Operation {"data":{"onTest":"9num1"}} -Operation {"data":{"onTest":"9num2"}} -Operation {"data":{"onTest":"9num3"}} -Operation {"data":{"onTest":"9num4"}} -Operation {"data":{"onTest":"9num5"}} -Operation {"data":{"onTest":"9num6"}} -Operation {"data":{"onTest":"9num7"}} -Operation {"data":{"onTest":"9num8"}} -Operation {"data":{"onTest":"9num9"}} -Operation 200 -Operation {"data":{"onTest":"0num0"}} -Operation {"data":{"onTest":"0num1"}} -Operation {"data":{"onTest":"0num2"}} -Operation {"data":{"onTest":"0num3"}} -Operation {"data":{"onTest":"0num4"}} -Operation {"data":{"onTest":"0num5"}} -Operation {"data":{"onTest":"0num6"}} -Operation {"data":{"onTest":"0num7"}} -Operation {"data":{"onTest":"0num8"}} -Operation {"data":{"onTest":"0num9"}} -Operation 201 -Operation {"data":{"onTest":"1num0"}} -Operation {"data":{"onTest":"1num1"}} -Operation {"data":{"onTest":"1num2"}} -Operation {"data":{"onTest":"1num3"}} -Operation {"data":{"onTest":"1num4"}} -Operation {"data":{"onTest":"1num5"}} -Operation {"data":{"onTest":"1num6"}} -Operation {"data":{"onTest":"1num7"}} -Operation {"data":{"onTest":"1num8"}} -Operation {"data":{"onTest":"1num9"}} -Operation 202 -Operation {"data":{"onTest":"2num0"}} -Operation {"data":{"onTest":"2num1"}} -Operation {"data":{"onTest":"2num2"}} -Operation {"data":{"onTest":"2num3"}} -Operation {"data":{"onTest":"2num4"}} -Operation {"data":{"onTest":"2num5"}} -Operation {"data":{"onTest":"2num6"}} -Operation {"data":{"onTest":"2num7"}} -Operation {"data":{"onTest":"2num8"}} -Operation {"data":{"onTest":"2num9"}} -Operation 203 -Operation {"data":{"onTest":"3num0"}} -Operation {"data":{"onTest":"3num1"}} -Operation {"data":{"onTest":"3num2"}} -Operation {"data":{"onTest":"3num3"}} -Operation {"data":{"onTest":"3num4"}} -Operation {"data":{"onTest":"3num5"}} -Operation {"data":{"onTest":"3num6"}} -Operation {"data":{"onTest":"3num7"}} -Operation {"data":{"onTest":"3num8"}} -Operation {"data":{"onTest":"3num9"}} -Operation 204 -Operation {"data":{"onTest":"4num0"}} -Operation {"data":{"onTest":"4num1"}} -Operation {"data":{"onTest":"4num2"}} -Operation {"data":{"onTest":"4num3"}} -Operation {"data":{"onTest":"4num4"}} -Operation {"data":{"onTest":"4num5"}} -Operation {"data":{"onTest":"4num6"}} -Operation {"data":{"onTest":"4num7"}} -Operation {"data":{"onTest":"4num8"}} -Operation {"data":{"onTest":"4num9"}} -Operation 205 -Operation {"data":{"onTest":"5num0"}} -Operation {"data":{"onTest":"5num1"}} -Operation {"data":{"onTest":"5num2"}} -Operation {"data":{"onTest":"5num3"}} -Operation {"data":{"onTest":"5num4"}} -Operation {"data":{"onTest":"5num5"}} -Operation {"data":{"onTest":"5num6"}} -Operation {"data":{"onTest":"5num7"}} -Operation {"data":{"onTest":"5num8"}} -Operation {"data":{"onTest":"5num9"}} -Operation 206 -Operation {"data":{"onTest":"6num0"}} -Operation {"data":{"onTest":"6num1"}} -Operation {"data":{"onTest":"6num2"}} -Operation {"data":{"onTest":"6num3"}} -Operation {"data":{"onTest":"6num4"}} -Operation {"data":{"onTest":"6num5"}} -Operation {"data":{"onTest":"6num6"}} -Operation {"data":{"onTest":"6num7"}} -Operation {"data":{"onTest":"6num8"}} -Operation {"data":{"onTest":"6num9"}} -Operation 207 -Operation {"data":{"onTest":"7num0"}} -Operation {"data":{"onTest":"7num1"}} -Operation {"data":{"onTest":"7num2"}} -Operation {"data":{"onTest":"7num3"}} -Operation {"data":{"onTest":"7num4"}} -Operation {"data":{"onTest":"7num5"}} -Operation {"data":{"onTest":"7num6"}} -Operation {"data":{"onTest":"7num7"}} -Operation {"data":{"onTest":"7num8"}} -Operation {"data":{"onTest":"7num9"}} -Operation 208 -Operation {"data":{"onTest":"8num0"}} -Operation {"data":{"onTest":"8num1"}} -Operation {"data":{"onTest":"8num2"}} -Operation {"data":{"onTest":"8num3"}} -Operation {"data":{"onTest":"8num4"}} -Operation {"data":{"onTest":"8num5"}} -Operation {"data":{"onTest":"8num6"}} -Operation {"data":{"onTest":"8num7"}} -Operation {"data":{"onTest":"8num8"}} -Operation {"data":{"onTest":"8num9"}} -Operation 209 -Operation {"data":{"onTest":"9num0"}} -Operation {"data":{"onTest":"9num1"}} -Operation {"data":{"onTest":"9num2"}} -Operation {"data":{"onTest":"9num3"}} -Operation {"data":{"onTest":"9num4"}} -Operation {"data":{"onTest":"9num5"}} -Operation {"data":{"onTest":"9num6"}} -Operation {"data":{"onTest":"9num7"}} -Operation {"data":{"onTest":"9num8"}} -Operation {"data":{"onTest":"9num9"}} -Operation 300 -Operation {"data":{"onTest":"0num0"}} -Operation {"data":{"onTest":"0num1"}} -Operation {"data":{"onTest":"0num2"}} -Operation {"data":{"onTest":"0num3"}} -Operation {"data":{"onTest":"0num4"}} -Operation {"data":{"onTest":"0num5"}} -Operation {"data":{"onTest":"0num6"}} -Operation {"data":{"onTest":"0num7"}} -Operation {"data":{"onTest":"0num8"}} -Operation {"data":{"onTest":"0num9"}} -Operation 301 -Operation {"data":{"onTest":"1num0"}} -Operation {"data":{"onTest":"1num1"}} -Operation {"data":{"onTest":"1num2"}} -Operation {"data":{"onTest":"1num3"}} -Operation {"data":{"onTest":"1num4"}} -Operation {"data":{"onTest":"1num5"}} -Operation {"data":{"onTest":"1num6"}} -Operation {"data":{"onTest":"1num7"}} -Operation {"data":{"onTest":"1num8"}} -Operation {"data":{"onTest":"1num9"}} -Operation 302 -Operation {"data":{"onTest":"2num0"}} -Operation {"data":{"onTest":"2num1"}} -Operation {"data":{"onTest":"2num2"}} -Operation {"data":{"onTest":"2num3"}} -Operation {"data":{"onTest":"2num4"}} -Operation {"data":{"onTest":"2num5"}} -Operation {"data":{"onTest":"2num6"}} -Operation {"data":{"onTest":"2num7"}} -Operation {"data":{"onTest":"2num8"}} -Operation {"data":{"onTest":"2num9"}} -Operation 303 -Operation {"data":{"onTest":"3num0"}} -Operation {"data":{"onTest":"3num1"}} -Operation {"data":{"onTest":"3num2"}} -Operation {"data":{"onTest":"3num3"}} -Operation {"data":{"onTest":"3num4"}} -Operation {"data":{"onTest":"3num5"}} -Operation {"data":{"onTest":"3num6"}} -Operation {"data":{"onTest":"3num7"}} -Operation {"data":{"onTest":"3num8"}} -Operation {"data":{"onTest":"3num9"}} -Operation 304 -Operation {"data":{"onTest":"4num0"}} -Operation {"data":{"onTest":"4num1"}} -Operation {"data":{"onTest":"4num2"}} -Operation {"data":{"onTest":"4num3"}} -Operation {"data":{"onTest":"4num4"}} -Operation {"data":{"onTest":"4num5"}} -Operation {"data":{"onTest":"4num6"}} -Operation {"data":{"onTest":"4num7"}} -Operation {"data":{"onTest":"4num8"}} -Operation {"data":{"onTest":"4num9"}} -Operation 305 -Operation {"data":{"onTest":"5num0"}} -Operation {"data":{"onTest":"5num1"}} -Operation {"data":{"onTest":"5num2"}} -Operation {"data":{"onTest":"5num3"}} -Operation {"data":{"onTest":"5num4"}} -Operation {"data":{"onTest":"5num5"}} -Operation {"data":{"onTest":"5num6"}} -Operation {"data":{"onTest":"5num7"}} -Operation {"data":{"onTest":"5num8"}} -Operation {"data":{"onTest":"5num9"}} -Operation 306 -Operation {"data":{"onTest":"6num0"}} -Operation {"data":{"onTest":"6num1"}} -Operation {"data":{"onTest":"6num2"}} -Operation {"data":{"onTest":"6num3"}} -Operation {"data":{"onTest":"6num4"}} -Operation {"data":{"onTest":"6num5"}} -Operation {"data":{"onTest":"6num6"}} -Operation {"data":{"onTest":"6num7"}} -Operation {"data":{"onTest":"6num8"}} -Operation {"data":{"onTest":"6num9"}} -Operation 307 -Operation {"data":{"onTest":"7num0"}} -Operation {"data":{"onTest":"7num1"}} -Operation {"data":{"onTest":"7num2"}} -Operation {"data":{"onTest":"7num3"}} -Operation {"data":{"onTest":"7num4"}} -Operation {"data":{"onTest":"7num5"}} -Operation {"data":{"onTest":"7num6"}} -Operation {"data":{"onTest":"7num7"}} -Operation {"data":{"onTest":"7num8"}} -Operation {"data":{"onTest":"7num9"}} -Operation 308 -Operation {"data":{"onTest":"8num0"}} -Operation {"data":{"onTest":"8num1"}} -Operation {"data":{"onTest":"8num2"}} -Operation {"data":{"onTest":"8num3"}} -Operation {"data":{"onTest":"8num4"}} -Operation {"data":{"onTest":"8num5"}} -Operation {"data":{"onTest":"8num6"}} -Operation {"data":{"onTest":"8num7"}} -Operation {"data":{"onTest":"8num8"}} -Operation {"data":{"onTest":"8num9"}} -Operation 309 -Operation {"data":{"onTest":"9num0"}} -Operation {"data":{"onTest":"9num1"}} -Operation {"data":{"onTest":"9num2"}} -Operation {"data":{"onTest":"9num3"}} -Operation {"data":{"onTest":"9num4"}} -Operation {"data":{"onTest":"9num5"}} -Operation {"data":{"onTest":"9num6"}} -Operation {"data":{"onTest":"9num7"}} -Operation {"data":{"onTest":"9num8"}} -Operation {"data":{"onTest":"9num9"}} -Operation 400 -Operation {"data":{"onTest":"0num0"}} -Operation {"data":{"onTest":"0num1"}} -Operation {"data":{"onTest":"0num2"}} -Operation {"data":{"onTest":"0num3"}} -Operation {"data":{"onTest":"0num4"}} -Operation {"data":{"onTest":"0num5"}} -Operation {"data":{"onTest":"0num6"}} -Operation {"data":{"onTest":"0num7"}} -Operation {"data":{"onTest":"0num8"}} -Operation {"data":{"onTest":"0num9"}} -Operation 401 -Operation {"data":{"onTest":"1num0"}} -Operation {"data":{"onTest":"1num1"}} -Operation {"data":{"onTest":"1num2"}} -Operation {"data":{"onTest":"1num3"}} -Operation {"data":{"onTest":"1num4"}} -Operation {"data":{"onTest":"1num5"}} -Operation {"data":{"onTest":"1num6"}} -Operation {"data":{"onTest":"1num7"}} -Operation {"data":{"onTest":"1num8"}} -Operation {"data":{"onTest":"1num9"}} -Operation 402 -Operation {"data":{"onTest":"2num0"}} -Operation {"data":{"onTest":"2num1"}} -Operation {"data":{"onTest":"2num2"}} -Operation {"data":{"onTest":"2num3"}} -Operation {"data":{"onTest":"2num4"}} -Operation {"data":{"onTest":"2num5"}} -Operation {"data":{"onTest":"2num6"}} -Operation {"data":{"onTest":"2num7"}} -Operation {"data":{"onTest":"2num8"}} -Operation {"data":{"onTest":"2num9"}} -Operation 403 -Operation {"data":{"onTest":"3num0"}} -Operation {"data":{"onTest":"3num1"}} -Operation {"data":{"onTest":"3num2"}} -Operation {"data":{"onTest":"3num3"}} -Operation {"data":{"onTest":"3num4"}} -Operation {"data":{"onTest":"3num5"}} -Operation {"data":{"onTest":"3num6"}} -Operation {"data":{"onTest":"3num7"}} -Operation {"data":{"onTest":"3num8"}} -Operation {"data":{"onTest":"3num9"}} -Operation 404 -Operation {"data":{"onTest":"4num0"}} -Operation {"data":{"onTest":"4num1"}} -Operation {"data":{"onTest":"4num2"}} -Operation {"data":{"onTest":"4num3"}} -Operation {"data":{"onTest":"4num4"}} -Operation {"data":{"onTest":"4num5"}} -Operation {"data":{"onTest":"4num6"}} -Operation {"data":{"onTest":"4num7"}} -Operation {"data":{"onTest":"4num8"}} -Operation {"data":{"onTest":"4num9"}} -Operation 405 -Operation {"data":{"onTest":"5num0"}} -Operation {"data":{"onTest":"5num1"}} -Operation {"data":{"onTest":"5num2"}} -Operation {"data":{"onTest":"5num3"}} -Operation {"data":{"onTest":"5num4"}} -Operation {"data":{"onTest":"5num5"}} -Operation {"data":{"onTest":"5num6"}} -Operation {"data":{"onTest":"5num7"}} -Operation {"data":{"onTest":"5num8"}} -Operation {"data":{"onTest":"5num9"}} -Operation 406 -Operation {"data":{"onTest":"6num0"}} -Operation {"data":{"onTest":"6num1"}} -Operation {"data":{"onTest":"6num2"}} -Operation {"data":{"onTest":"6num3"}} -Operation {"data":{"onTest":"6num4"}} -Operation {"data":{"onTest":"6num5"}} -Operation {"data":{"onTest":"6num6"}} -Operation {"data":{"onTest":"6num7"}} -Operation {"data":{"onTest":"6num8"}} -Operation {"data":{"onTest":"6num9"}} -Operation 407 -Operation {"data":{"onTest":"7num0"}} -Operation {"data":{"onTest":"7num1"}} -Operation {"data":{"onTest":"7num2"}} -Operation {"data":{"onTest":"7num3"}} -Operation {"data":{"onTest":"7num4"}} -Operation {"data":{"onTest":"7num5"}} -Operation {"data":{"onTest":"7num6"}} -Operation {"data":{"onTest":"7num7"}} -Operation {"data":{"onTest":"7num8"}} -Operation {"data":{"onTest":"7num9"}} -Operation 408 -Operation {"data":{"onTest":"8num0"}} -Operation {"data":{"onTest":"8num1"}} -Operation {"data":{"onTest":"8num2"}} -Operation {"data":{"onTest":"8num3"}} -Operation {"data":{"onTest":"8num4"}} -Operation {"data":{"onTest":"8num5"}} -Operation {"data":{"onTest":"8num6"}} -Operation {"data":{"onTest":"8num7"}} -Operation {"data":{"onTest":"8num8"}} -Operation {"data":{"onTest":"8num9"}} -Operation 409 -Operation {"data":{"onTest":"9num0"}} -Operation {"data":{"onTest":"9num1"}} -Operation {"data":{"onTest":"9num2"}} -Operation {"data":{"onTest":"9num3"}} -Operation {"data":{"onTest":"9num4"}} -Operation {"data":{"onTest":"9num5"}} -Operation {"data":{"onTest":"9num6"}} -Operation {"data":{"onTest":"9num7"}} -Operation {"data":{"onTest":"9num8"}} -Operation {"data":{"onTest":"9num9"}} diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Parallel_Request_SameSocket.snap b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Parallel_Request_SameSocket.md similarity index 99% rename from src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Parallel_Request_SameSocket.snap rename to src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Parallel_Request_SameSocket.md index 117c7e11807..4c9a04a0510 100644 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Parallel_Request_SameSocket.snap +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Parallel_Request_SameSocket.md @@ -1,4 +1,7 @@ -Operation 0 +# Parallel_Request_SameSocket + +```text +Operation 0 Operation {"data":{"onTest":"0num0"}} Operation {"data":{"onTest":"0num1"}} Operation {"data":{"onTest":"0num2"}} @@ -163,3 +166,5 @@ Operation {"data":{"onTest":"14num6"}} Operation {"data":{"onTest":"14num7"}} Operation {"data":{"onTest":"14num8"}} Operation {"data":{"onTest":"14num9"}} + +``` diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Request_With_ConnectionPayload.md b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Request_With_ConnectionPayload.md new file mode 100644 index 00000000000..8174ba5c791 --- /dev/null +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Request_With_ConnectionPayload.md @@ -0,0 +1,102 @@ +# Request_With_ConnectionPayload + +## Result 1 + +```json +{ + "data": { + "onTest": "1num0" + } +} +``` + +## Result 2 + +```json +{ + "data": { + "onTest": "1num1" + } +} +``` + +## Result 3 + +```json +{ + "data": { + "onTest": "1num2" + } +} +``` + +## Result 4 + +```json +{ + "data": { + "onTest": "1num3" + } +} +``` + +## Result 5 + +```json +{ + "data": { + "onTest": "1num4" + } +} +``` + +## Result 6 + +```json +{ + "data": { + "onTest": "1num5" + } +} +``` + +## Result 7 + +```json +{ + "data": { + "onTest": "1num6" + } +} +``` + +## Result 8 + +```json +{ + "data": { + "onTest": "1num7" + } +} +``` + +## Result 9 + +```json +{ + "data": { + "onTest": "1num8" + } +} +``` + +## Result 10 + +```json +{ + "data": { + "onTest": "1num9" + } +} +``` + diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Request_With_ConnectionPayload.snap b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Request_With_ConnectionPayload.snap deleted file mode 100644 index fb4b332a667..00000000000 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Request_With_ConnectionPayload.snap +++ /dev/null @@ -1,44 +0,0 @@ ---------------- -[ - "{\"data\":{\"onTest\":\"1num0\"}}", - "{\"data\":{\"onTest\":\"1num1\"}}", - "{\"data\":{\"onTest\":\"1num2\"}}", - "{\"data\":{\"onTest\":\"1num3\"}}", - "{\"data\":{\"onTest\":\"1num4\"}}", - "{\"data\":{\"onTest\":\"1num5\"}}", - "{\"data\":{\"onTest\":\"1num6\"}}", - "{\"data\":{\"onTest\":\"1num7\"}}", - "{\"data\":{\"onTest\":\"1num8\"}}", - "{\"data\":{\"onTest\":\"1num9\"}}" -] ---------------- - ---------------- -[ - "{\"data\":{\"onTest\":\"1num0\"}}", - "{\"data\":{\"onTest\":\"1num1\"}}", - "{\"data\":{\"onTest\":\"1num2\"}}", - "{\"data\":{\"onTest\":\"1num3\"}}", - "{\"data\":{\"onTest\":\"1num4\"}}", - "{\"data\":{\"onTest\":\"1num5\"}}", - "{\"data\":{\"onTest\":\"1num6\"}}", - "{\"data\":{\"onTest\":\"1num7\"}}", - "{\"data\":{\"onTest\":\"1num8\"}}", - "{\"data\":{\"onTest\":\"1num9\"}}" -] ---------------- - ---------------- -[ - "{\"data\":{\"onTest\":\"1num0\"}}", - "{\"data\":{\"onTest\":\"1num1\"}}", - "{\"data\":{\"onTest\":\"1num2\"}}", - "{\"data\":{\"onTest\":\"1num3\"}}", - "{\"data\":{\"onTest\":\"1num4\"}}", - "{\"data\":{\"onTest\":\"1num5\"}}", - "{\"data\":{\"onTest\":\"1num6\"}}", - "{\"data\":{\"onTest\":\"1num7\"}}", - "{\"data\":{\"onTest\":\"1num8\"}}", - "{\"data\":{\"onTest\":\"1num9\"}}" -] ---------------- diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Simple_Request.md b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Simple_Request.md new file mode 100644 index 00000000000..3083559d158 --- /dev/null +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Simple_Request.md @@ -0,0 +1,102 @@ +# Simple_Request + +## Result 1 + +```json +{ + "data": { + "onTest": "1num0" + } +} +``` + +## Result 2 + +```json +{ + "data": { + "onTest": "1num1" + } +} +``` + +## Result 3 + +```json +{ + "data": { + "onTest": "1num2" + } +} +``` + +## Result 4 + +```json +{ + "data": { + "onTest": "1num3" + } +} +``` + +## Result 5 + +```json +{ + "data": { + "onTest": "1num4" + } +} +``` + +## Result 6 + +```json +{ + "data": { + "onTest": "1num5" + } +} +``` + +## Result 7 + +```json +{ + "data": { + "onTest": "1num6" + } +} +``` + +## Result 8 + +```json +{ + "data": { + "onTest": "1num7" + } +} +``` + +## Result 9 + +```json +{ + "data": { + "onTest": "1num8" + } +} +``` + +## Result 10 + +```json +{ + "data": { + "onTest": "1num9" + } +} +``` + diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Simple_Request.snap b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Simple_Request.snap deleted file mode 100644 index fb4b332a667..00000000000 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Simple_Request.snap +++ /dev/null @@ -1,44 +0,0 @@ ---------------- -[ - "{\"data\":{\"onTest\":\"1num0\"}}", - "{\"data\":{\"onTest\":\"1num1\"}}", - "{\"data\":{\"onTest\":\"1num2\"}}", - "{\"data\":{\"onTest\":\"1num3\"}}", - "{\"data\":{\"onTest\":\"1num4\"}}", - "{\"data\":{\"onTest\":\"1num5\"}}", - "{\"data\":{\"onTest\":\"1num6\"}}", - "{\"data\":{\"onTest\":\"1num7\"}}", - "{\"data\":{\"onTest\":\"1num8\"}}", - "{\"data\":{\"onTest\":\"1num9\"}}" -] ---------------- - ---------------- -[ - "{\"data\":{\"onTest\":\"1num0\"}}", - "{\"data\":{\"onTest\":\"1num1\"}}", - "{\"data\":{\"onTest\":\"1num2\"}}", - "{\"data\":{\"onTest\":\"1num3\"}}", - "{\"data\":{\"onTest\":\"1num4\"}}", - "{\"data\":{\"onTest\":\"1num5\"}}", - "{\"data\":{\"onTest\":\"1num6\"}}", - "{\"data\":{\"onTest\":\"1num7\"}}", - "{\"data\":{\"onTest\":\"1num8\"}}", - "{\"data\":{\"onTest\":\"1num9\"}}" -] ---------------- - ---------------- -[ - "{\"data\":{\"onTest\":\"1num0\"}}", - "{\"data\":{\"onTest\":\"1num1\"}}", - "{\"data\":{\"onTest\":\"1num2\"}}", - "{\"data\":{\"onTest\":\"1num3\"}}", - "{\"data\":{\"onTest\":\"1num4\"}}", - "{\"data\":{\"onTest\":\"1num5\"}}", - "{\"data\":{\"onTest\":\"1num6\"}}", - "{\"data\":{\"onTest\":\"1num7\"}}", - "{\"data\":{\"onTest\":\"1num8\"}}", - "{\"data\":{\"onTest\":\"1num9\"}}" -] ---------------- diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Validation_Error.md b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Validation_Error.md new file mode 100644 index 00000000000..58413075771 --- /dev/null +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Validation_Error.md @@ -0,0 +1,11 @@ +# Validation_Error + +```json +{ + "errors": [ + { + "message": "The specified argument value does not match the argument type." + } + ] +} +``` diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Validation_Error.snap b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Validation_Error.snap deleted file mode 100644 index d0efe99a5c5..00000000000 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/IntegrationTests.Validation_Error.snap +++ /dev/null @@ -1,17 +0,0 @@ ---------------- -[ - "The specified argument value does not match the argument type." -] ---------------- - ---------------- -[ - "The specified argument value does not match the argument type." -] ---------------- - ---------------- -[ - "The specified argument value does not match the argument type." -] ---------------- diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.OpenSessionAsync_NoProtocolNegotiated_ThrowException.md b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.OpenSessionAsync_NoProtocolNegotiated_ThrowException.md new file mode 100644 index 00000000000..582b1a24963 --- /dev/null +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.OpenSessionAsync_NoProtocolNegotiated_ThrowException.md @@ -0,0 +1,5 @@ +# OpenSessionAsync_NoProtocolNegotiated_ThrowException + +```text +Could not get the protocol from socket . The socket is in a invalid state +``` diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.OpenSessionAsync_NoProtocolNegotiated_ThrowException.snap b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.OpenSessionAsync_NoProtocolNegotiated_ThrowException.snap deleted file mode 100644 index d6540961dad..00000000000 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.OpenSessionAsync_NoProtocolNegotiated_ThrowException.snap +++ /dev/null @@ -1,11 +0,0 @@ ---------------- -Could not get the protocol from socket . The socket is in a invalid state ---------------- - ---------------- -Could not get the protocol from socket . The socket is in a invalid state ---------------- - ---------------- -Could not get the protocol from socket . The socket is in a invalid state ---------------- diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.OpenSessionAsync_NoProtocolNeogiated_ThrowException.snap b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.OpenSessionAsync_NoProtocolNeogiated_ThrowException.snap deleted file mode 100644 index 9a86dea8d12..00000000000 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.OpenSessionAsync_NoProtocolNeogiated_ThrowException.snap +++ /dev/null @@ -1 +0,0 @@ -Could not get the protocol from socket . The socket is in a invalid state diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.StartOperationAsync_SocketCloses_ThrowException.md b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.StartOperationAsync_SocketCloses_ThrowException.md new file mode 100644 index 00000000000..79253145fe7 --- /dev/null +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.StartOperationAsync_SocketCloses_ThrowException.md @@ -0,0 +1,5 @@ +# StartOperationAsync_SocketCloses_ThrowException + +```text +The session was not open. Operations can only be started or stopped on a open session +``` diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.StartOperationAsync_SocketCloses_ThrowException.snap b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.StartOperationAsync_SocketCloses_ThrowException.snap deleted file mode 100644 index 3c8a19878b6..00000000000 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.StartOperationAsync_SocketCloses_ThrowException.snap +++ /dev/null @@ -1,11 +0,0 @@ ---------------- -The session was not open. Operations can only be started or stopped on a open session ---------------- - ---------------- -The session was not open. Operations can only be started or stopped on a open session ---------------- - ---------------- -The session was not open. Operations can only be started or stopped on a open session ---------------- diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.StopOperationAsync_SocketCloses_ThrowException.md b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.StopOperationAsync_SocketCloses_ThrowException.md new file mode 100644 index 00000000000..636a3eae794 --- /dev/null +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.StopOperationAsync_SocketCloses_ThrowException.md @@ -0,0 +1,5 @@ +# StopOperationAsync_SocketCloses_ThrowException + +```text +The session was not open. Operations can only be started or stopped on a open session +``` diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.StopOperationAsync_SocketCloses_ThrowException.snap b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.StopOperationAsync_SocketCloses_ThrowException.snap deleted file mode 100644 index 3c8a19878b6..00000000000 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/SessionTests.StopOperationAsync_SocketCloses_ThrowException.snap +++ /dev/null @@ -1,11 +0,0 @@ ---------------- -The session was not open. Operations can only be started or stopped on a open session ---------------- - ---------------- -The session was not open. Operations can only be started or stopped on a open session ---------------- - ---------------- -The session was not open. Operations can only be started or stopped on a open session ---------------- diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/WebSocketConnectionTests.ExecuteAsync_Data_ParseJson.snap b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/WebSocketConnectionTests.ExecuteAsync_Data_ParseJson.snap index 33ada621a14..a045e0a6e4a 100644 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/WebSocketConnectionTests.ExecuteAsync_Data_ParseJson.snap +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/__snapshots__/WebSocketConnectionTests.ExecuteAsync_Data_ParseJson.snap @@ -1,3 +1,3 @@ { - "ValueKind": "Object" + "Foo": "Bar" } \ No newline at end of file diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Builders/AbstractTypeBuilder.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Builders/AbstractTypeBuilder.cs index c46bbfb9bcb..574750d968c 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Builders/AbstractTypeBuilder.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Builders/AbstractTypeBuilder.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using HotChocolate; using StrawberryShake.Properties; namespace StrawberryShake.CodeGeneration.CSharp.Builders; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Builders/InterfaceBuilder.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Builders/InterfaceBuilder.cs index cd4deab8e5d..3bcc90b0c60 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Builders/InterfaceBuilder.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Builders/InterfaceBuilder.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using HotChocolate; namespace StrawberryShake.CodeGeneration.CSharp.Builders; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Builders/XmlCommentBuilder.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Builders/XmlCommentBuilder.cs index bcef7c370c4..456daffcaa1 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Builders/XmlCommentBuilder.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Builders/XmlCommentBuilder.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.IO; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/ClientGenerator.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/ClientGenerator.cs index 2924a89bff8..6dd372d8b83 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/ClientGenerator.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/ClientGenerator.cs @@ -1,7 +1,5 @@ -using System; using StrawberryShake.CodeGeneration.CSharp.Builders; using StrawberryShake.CodeGeneration.Descriptors; -using StrawberryShake.CodeGeneration.Descriptors.Operations; using static StrawberryShake.CodeGeneration.Utilities.NameUtils; namespace StrawberryShake.CodeGeneration.CSharp.Generators; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/ClientInterfaceGenerator.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/ClientInterfaceGenerator.cs index ac48c19607c..7225b5ce774 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/ClientInterfaceGenerator.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/ClientInterfaceGenerator.cs @@ -1,6 +1,5 @@ using StrawberryShake.CodeGeneration.CSharp.Builders; using StrawberryShake.CodeGeneration.Descriptors; -using StrawberryShake.CodeGeneration.Descriptors.Operations; using StrawberryShake.CodeGeneration.Utilities; namespace StrawberryShake.CodeGeneration.CSharp.Generators; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/DataTypeGenerator.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/DataTypeGenerator.cs index ee4b404a87c..1d0e8015c77 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/DataTypeGenerator.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/DataTypeGenerator.cs @@ -1,7 +1,6 @@ using System; using System.Linq; using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.CSharp.Syntax; using HotChocolate.Utilities; using StrawberryShake.CodeGeneration.Descriptors; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/DependencyInjectionGenerator.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/DependencyInjectionGenerator.cs index 84b8c1269a4..d1f55f55ea4 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/DependencyInjectionGenerator.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/DependencyInjectionGenerator.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.Linq; -using HotChocolate; using StrawberryShake.CodeGeneration.CSharp.Builders; using StrawberryShake.CodeGeneration.CSharp.Extensions; using StrawberryShake.CodeGeneration.Descriptors; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/EntityTypeGenerator.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/EntityTypeGenerator.cs index f8d4d53c573..2a8b536d61e 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/EntityTypeGenerator.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/EntityTypeGenerator.cs @@ -1,8 +1,6 @@ using System.Linq; using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.CSharp.Syntax; using StrawberryShake.CodeGeneration.Descriptors; -using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; namespace StrawberryShake.CodeGeneration.CSharp.Generators; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/EnumGenerator.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/EnumGenerator.cs index 5969ed30418..d2afb88a944 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/EnumGenerator.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/EnumGenerator.cs @@ -1,5 +1,4 @@ using StrawberryShake.CodeGeneration.CSharp.Builders; -using StrawberryShake.CodeGeneration.Descriptors; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; namespace StrawberryShake.CodeGeneration.CSharp.Generators; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/InputTypeStateInterfaceGenerator.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/InputTypeStateInterfaceGenerator.cs index d4ee2d830d7..0da281deb83 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/InputTypeStateInterfaceGenerator.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/InputTypeStateInterfaceGenerator.cs @@ -1,5 +1,4 @@ using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.CSharp.Syntax; using StrawberryShake.CodeGeneration.Descriptors; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/InputValueFormatterGenerator.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/InputValueFormatterGenerator.cs index 6e590273d9a..1b0d2a247f6 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/InputValueFormatterGenerator.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/InputValueFormatterGenerator.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using HotChocolate; using StrawberryShake.CodeGeneration.CSharp.Builders; using StrawberryShake.CodeGeneration.CSharp.Extensions; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/OperationDocumentGenerator.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/OperationDocumentGenerator.cs index 940385cef01..77081c7ec46 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/OperationDocumentGenerator.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/OperationDocumentGenerator.cs @@ -1,5 +1,4 @@ using System; -using System.Security.Cryptography; using System.Text; using StrawberryShake.CodeGeneration.CSharp.Builders; using StrawberryShake.CodeGeneration.Descriptors.Operations; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/RazorSubscriptionGenerator.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/RazorSubscriptionGenerator.cs index 61cf6107aef..0fbc6060e75 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/RazorSubscriptionGenerator.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/RazorSubscriptionGenerator.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using StrawberryShake.CodeGeneration.CSharp.Extensions; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/ResultInterfaceGenerator.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/ResultInterfaceGenerator.cs index e496c1cb856..903d5add2b5 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/ResultInterfaceGenerator.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/ResultInterfaceGenerator.cs @@ -1,4 +1,3 @@ -using System.Linq; using StrawberryShake.CodeGeneration.CSharp.Builders; using StrawberryShake.CodeGeneration.CSharp.Extensions; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/ResultTypeGenerator.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/ResultTypeGenerator.cs index ad588f75734..3fc986dabd2 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/ResultTypeGenerator.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/ResultTypeGenerator.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.Linq; using StrawberryShake.CodeGeneration.CSharp.Builders; using StrawberryShake.CodeGeneration.CSharp.Extensions; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/SyntaxExtensions.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/SyntaxExtensions.cs index b7633e19c8f..e584b9ff884 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/SyntaxExtensions.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/SyntaxExtensions.cs @@ -6,7 +6,6 @@ using Microsoft.CodeAnalysis.CSharp.Syntax; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; using static StrawberryShake.CodeGeneration.Utilities.NameUtils; -using static StrawberryShake.CodeGeneration.Descriptors.NamingConventions; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; using StrawberryShake.CodeGeneration.CSharp.Extensions; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/TypeMapperGenerator_EntityHandler.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/TypeMapperGenerator_EntityHandler.cs index d81d3e3b01e..3d47136854d 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/TypeMapperGenerator_EntityHandler.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration.CSharp/Generators/TypeMapperGenerator_EntityHandler.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.Linq; -using HotChocolate; using StrawberryShake.CodeGeneration.CSharp.Builders; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; using StrawberryShake.CodeGeneration.Extensions; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/DocumentAnalyzer.CollectEnumTypes.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/DocumentAnalyzer.CollectEnumTypes.cs index 885ddbbad1c..c8a62c9faa7 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/DocumentAnalyzer.CollectEnumTypes.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/DocumentAnalyzer.CollectEnumTypes.cs @@ -1,6 +1,4 @@ using System.Collections.Generic; -using System.Linq; -using HotChocolate; using HotChocolate.Types; using StrawberryShake.CodeGeneration.Analyzers.Models; using StrawberryShake.CodeGeneration.Analyzers.Types; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/DocumentAnalyzer.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/DocumentAnalyzer.cs index 51684a67e21..f3490246e7d 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/DocumentAnalyzer.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/DocumentAnalyzer.cs @@ -5,7 +5,6 @@ using HotChocolate; using HotChocolate.Language; using StrawberryShake.CodeGeneration.Analyzers.Models; -using StrawberryShake.CodeGeneration.Utilities; using static StrawberryShake.CodeGeneration.Utilities.OperationDocumentHelper; namespace StrawberryShake.CodeGeneration.Analyzers; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/FieldCollector.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/FieldCollector.cs index 8906e0d7bb2..2ef50718cbf 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/FieldCollector.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/FieldCollector.cs @@ -3,7 +3,6 @@ using System.Linq; using HotChocolate; using HotChocolate.Execution; -using HotChocolate.Execution.Processing; using HotChocolate.Language; using HotChocolate.Types; using HotChocolate.Utilities; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/InterfaceTypeSelectionSetAnalyzer.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/InterfaceTypeSelectionSetAnalyzer.cs index b52bb98f642..92ac59edf4e 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/InterfaceTypeSelectionSetAnalyzer.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Analyzers/InterfaceTypeSelectionSetAnalyzer.cs @@ -1,5 +1,4 @@ using HotChocolate; -using HotChocolate.Execution; using StrawberryShake.CodeGeneration.Analyzers.Models; namespace StrawberryShake.CodeGeneration.Analyzers; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/CodeGenerator.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/CodeGenerator.cs index 4109118f670..4b86b799a26 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/CodeGenerator.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/CodeGenerator.cs @@ -2,7 +2,6 @@ using System.IO; using System.Linq; using System.Text; -using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Text; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/ClientDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/ClientDescriptor.cs index c7ce765ff1a..bc7a25b6bfd 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/ClientDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/ClientDescriptor.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using HotChocolate; using StrawberryShake.CodeGeneration.Descriptors.Operations; using static StrawberryShake.CodeGeneration.Properties.CodeGenerationResources; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/DependencyInjectionDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/DependencyInjectionDescriptor.cs index 7d7e13addfc..0180fa73200 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/DependencyInjectionDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/DependencyInjectionDescriptor.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.Linq; -using HotChocolate; using StrawberryShake.CodeGeneration.Descriptors.Operations; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/EntityIdFactoryDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/EntityIdFactoryDescriptor.cs index a23d177e2a0..e5ee5fd4eda 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/EntityIdFactoryDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/EntityIdFactoryDescriptor.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using HotChocolate; namespace StrawberryShake.CodeGeneration.Descriptors; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/EntityTypeDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/EntityTypeDescriptor.cs index a64a7aeac7d..993e2441926 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/EntityTypeDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/EntityTypeDescriptor.cs @@ -1,8 +1,5 @@ using System.Collections.Generic; -using System.Linq; -using HotChocolate; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; -using static StrawberryShake.CodeGeneration.Descriptors.NamingConventions; namespace StrawberryShake.CodeGeneration.Descriptors; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/EnumValueDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/EnumValueDescriptor.cs index 1f59a2f36a3..53e6cb0ec87 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/EnumValueDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/EnumValueDescriptor.cs @@ -1,5 +1,3 @@ -using HotChocolate; - namespace StrawberryShake.CodeGeneration.Descriptors; public sealed class EnumValueDescriptor : ICodeDescriptor diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/Operations/MutationOperationDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/Operations/MutationOperationDescriptor.cs index 618e0f5045c..b8708f4725e 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/Operations/MutationOperationDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/Operations/MutationOperationDescriptor.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using HotChocolate; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; using StrawberryShake.Tools.Configuration; using static StrawberryShake.CodeGeneration.Descriptors.NamingConventions; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/Operations/OperationDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/Operations/OperationDescriptor.cs index 463717a67c1..f2832e369dd 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/Operations/OperationDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/Operations/OperationDescriptor.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using HotChocolate; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; using StrawberryShake.Tools.Configuration; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/Operations/QueryOperationDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/Operations/QueryOperationDescriptor.cs index 209eb0280cd..99c6586ff13 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/Operations/QueryOperationDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/Operations/QueryOperationDescriptor.cs @@ -1,6 +1,4 @@ using System.Collections.Generic; -using HotChocolate; -using HotChocolate.Execution.Options; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; using StrawberryShake.Tools.Configuration; using static StrawberryShake.CodeGeneration.Descriptors.NamingConventions; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/Operations/SubscriptionOperationDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/Operations/SubscriptionOperationDescriptor.cs index 45363474b38..d602ff3d981 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/Operations/SubscriptionOperationDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/Operations/SubscriptionOperationDescriptor.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using HotChocolate; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; using StrawberryShake.Tools.Configuration; using static StrawberryShake.CodeGeneration.Descriptors.NamingConventions; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/ResultBuilderDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/ResultBuilderDescriptor.cs index 945cc21a571..53cd5b677ab 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/ResultBuilderDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/ResultBuilderDescriptor.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using HotChocolate; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; namespace StrawberryShake.CodeGeneration.Descriptors; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/StoreAccessorDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/StoreAccessorDescriptor.cs index f248342a55f..34b1b7612b4 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/StoreAccessorDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/StoreAccessorDescriptor.cs @@ -1,5 +1,3 @@ -using HotChocolate; - namespace StrawberryShake.CodeGeneration.Descriptors; /// diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/ComplexTypeDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/ComplexTypeDescriptor.cs index a8ae65e51ae..a9eec3a6c5b 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/ComplexTypeDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/ComplexTypeDescriptor.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using HotChocolate; namespace StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/DeferredFragmentDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/DeferredFragmentDescriptor.cs index 38c253db97e..2aad427df0e 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/DeferredFragmentDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/DeferredFragmentDescriptor.cs @@ -1,5 +1,3 @@ -using HotChocolate; - namespace StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; /// diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/EnumTypeDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/EnumTypeDescriptor.cs index 5ad3e78e439..186c02babd0 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/EnumTypeDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/EnumTypeDescriptor.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using HotChocolate; namespace StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/InputObjectTypeDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/InputObjectTypeDescriptor.cs index 4f0fbf610b0..a270ceb9a95 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/InputObjectTypeDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/InputObjectTypeDescriptor.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using HotChocolate; namespace StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/InterfaceTypeDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/InterfaceTypeDescriptor.cs index 5ba0623b693..5245ec04170 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/InterfaceTypeDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/InterfaceTypeDescriptor.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using HotChocolate; namespace StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/ObjectTypeDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/ObjectTypeDescriptor.cs index 047e672030c..03a4262633f 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/ObjectTypeDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/ObjectTypeDescriptor.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using HotChocolate; namespace StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/PropertyDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/PropertyDescriptor.cs index cb18da9a015..79020ba83d7 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/PropertyDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/PropertyDescriptor.cs @@ -1,5 +1,3 @@ -using HotChocolate; - namespace StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; /// diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/ResultFromEntityDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/ResultFromEntityDescriptor.cs index 5d0d8fe8565..4580d980cbd 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/ResultFromEntityDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/ResultFromEntityDescriptor.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using HotChocolate; namespace StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/ScalarTypeDescriptor.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/ScalarTypeDescriptor.cs index 9324499797f..d4477073cae 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/ScalarTypeDescriptor.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/ScalarTypeDescriptor.cs @@ -1,5 +1,3 @@ -using HotChocolate; - namespace StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; public sealed class ScalarTypeDescriptor : ILeafTypeDescriptor diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/ErrorHelper.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/ErrorHelper.cs index 500a2fa44ed..9787f666d72 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/ErrorHelper.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/ErrorHelper.cs @@ -1,11 +1,6 @@ -using System; using System.Collections.Generic; -using System.Linq; using HotChocolate; using HotChocolate.Language; -using HotChocolate.Language.Visitors; -using SyntaxVisitor = HotChocolate.Language.Visitors.SyntaxVisitor; -using static StrawberryShake.CodeGeneration.Properties.CodeGenerationResources; using static StrawberryShake.CodeGeneration.CodeGenerationErrorCodes; namespace StrawberryShake.CodeGeneration; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Extensions/TypeDescriptorExtensions.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Extensions/TypeDescriptorExtensions.cs index e74911dedb7..04b64fa3390 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Extensions/TypeDescriptorExtensions.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Extensions/TypeDescriptorExtensions.cs @@ -1,6 +1,5 @@ using System; using System.Linq; -using HotChocolate; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; namespace StrawberryShake.CodeGeneration.Extensions; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Keywords.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Keywords.cs index b48319a03b1..9d1c78cfe04 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Keywords.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Keywords.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using HotChocolate; namespace StrawberryShake.CodeGeneration.CSharp; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/DeferredFragmentMapper.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/DeferredFragmentMapper.cs index 563e1596c7a..deaa3b696fd 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/DeferredFragmentMapper.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/DeferredFragmentMapper.cs @@ -1,6 +1,4 @@ -using System.ComponentModel; using System.Linq; -using System.Security.Cryptography; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; namespace StrawberryShake.CodeGeneration.Mappers; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/IMapperContext.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/IMapperContext.cs index 42981495726..484d824ecaf 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/IMapperContext.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/IMapperContext.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using HotChocolate; using HotChocolate.Language; using StrawberryShake.CodeGeneration.Descriptors; using StrawberryShake.CodeGeneration.Descriptors.Operations; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/StoreAccessorMapper.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/StoreAccessorMapper.cs index 70433d989d1..6112b24c93a 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/StoreAccessorMapper.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/StoreAccessorMapper.cs @@ -1,6 +1,5 @@ using StrawberryShake.CodeGeneration.Analyzers.Models; using StrawberryShake.CodeGeneration.Descriptors; -using StrawberryShake.CodeGeneration.Utilities; namespace StrawberryShake.CodeGeneration.Mappers; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/TypeDescriptorMapper.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/TypeDescriptorMapper.cs index 02aa2116741..20afcdb8bd8 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/TypeDescriptorMapper.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Mappers/TypeDescriptorMapper.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using HotChocolate; using HotChocolate.Language; using HotChocolate.Types; using HotChocolate.Utilities; diff --git a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Utilities/TypeHelpers.cs b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Utilities/TypeHelpers.cs index cb8e9dd6467..df0f39b37a2 100644 --- a/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Utilities/TypeHelpers.cs +++ b/src/StrawberryShake/CodeGeneration/src/CodeGeneration/Utilities/TypeHelpers.cs @@ -1,4 +1,3 @@ -using System; using HotChocolate.Types; namespace StrawberryShake.CodeGeneration.Utilities; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/CSharpCompiler.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/CSharpCompiler.cs index 6093dbef541..df1c1f590a2 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/CSharpCompiler.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/CSharpCompiler.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net.Http; using System.Text.Json; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/DependencyInjectionGeneratorTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/DependencyInjectionGeneratorTests.cs index ead6665b588..4fdc0328dea 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/DependencyInjectionGeneratorTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/DependencyInjectionGeneratorTests.cs @@ -1,5 +1,4 @@ using StrawberryShake.Tools.Configuration; -using Xunit; using static StrawberryShake.CodeGeneration.CSharp.GeneratorTestHelper; namespace StrawberryShake.CodeGeneration.CSharp; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/EntityIdFactoryGeneratorTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/EntityIdFactoryGeneratorTests.cs index c702217b6d8..8a00e0bc310 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/EntityIdFactoryGeneratorTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/EntityIdFactoryGeneratorTests.cs @@ -1,4 +1,3 @@ -using Xunit; using static StrawberryShake.CodeGeneration.CSharp.GeneratorTestHelper; namespace StrawberryShake.CodeGeneration.CSharp; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/EntityOrIdGeneratorTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/EntityOrIdGeneratorTests.cs index fb4f5825c10..92d9820e408 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/EntityOrIdGeneratorTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/EntityOrIdGeneratorTests.cs @@ -1,4 +1,3 @@ -using Xunit; using static StrawberryShake.CodeGeneration.CSharp.GeneratorTestHelper; namespace StrawberryShake.CodeGeneration.CSharp; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/ErrorGeneratorTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/ErrorGeneratorTests.cs index 34ef61e2c5d..528ce789416 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/ErrorGeneratorTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/ErrorGeneratorTests.cs @@ -1,6 +1,4 @@ -using System.IO; using ChilliCream.Testing; -using Xunit; using static StrawberryShake.CodeGeneration.CSharp.GeneratorTestHelper; namespace StrawberryShake.CodeGeneration.CSharp; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/AnyScalarDefaultSerializationTest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/AnyScalarDefaultSerializationTest.cs index 8d63c5ceb57..89f5d03c6ec 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/AnyScalarDefaultSerializationTest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/AnyScalarDefaultSerializationTest.cs @@ -1,15 +1,9 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate; using HotChocolate.AspNetCore.Tests.Utilities; using HotChocolate.Types; -using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; using StrawberryShake.Transport.WebSockets; -using Xunit; namespace StrawberryShake.CodeGeneration.CSharp.Integration.AnyScalarDefaultSerialization { diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/EntityIdOrDataTest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/EntityIdOrDataTest.cs index d81d5a5d52f..fad3d0f7236 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/EntityIdOrDataTest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/EntityIdOrDataTest.cs @@ -1,11 +1,7 @@ -using System; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.AspNetCore.Tests.Utilities; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Types; using Snapshooter.Xunit; -using Xunit; namespace StrawberryShake.CodeGeneration.CSharp.Integration.EntityIdOrData { diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.cs index 1d90cba6e44..0492a48d60e 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.cs @@ -1,9 +1,6 @@ -using System; using HotChocolate.AspNetCore.Tests.Utilities; -using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using StrawberryShake.Transport.WebSockets; -using Xunit; namespace StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile { diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferInListTest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferInListTest.cs index 1a4c210f9c2..87913176495 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferInListTest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferInListTest.cs @@ -1,12 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.AspNetCore.Tests.Utilities; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.DependencyInjection; -using StrawberryShake.Transport.WebSockets; -using Xunit; namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferInList; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferredTest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferredTest.cs index 8c8a37c9eac..41ac2751a1c 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferredTest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferredTest.cs @@ -1,12 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.AspNetCore.Tests.Utilities; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.DependencyInjection; -using StrawberryShake.Transport.WebSockets; -using Xunit; namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferred; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsNoStoreTest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsNoStoreTest.cs index 821232b6865..c2bf0cf3921 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsNoStoreTest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsNoStoreTest.cs @@ -1,12 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.AspNetCore.Tests.Utilities; -using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using StrawberryShake.Transport.WebSockets; -using Xunit; namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsNoStore { @@ -39,7 +33,7 @@ public async Task Execute_StarWarsGetFriendsNoStore_Test() services.GetRequiredService(); // act - IOperationResult result = await client.GetHero.ExecuteAsync(ct); + var result = await client.GetHero.ExecuteAsync(ct); // assert Assert.Equal("R2-D2", result.Data?.Hero?.Name); diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsTest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsTest.cs index 17b714f92d1..97b26c7ffaf 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsTest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsTest.cs @@ -1,12 +1,6 @@ -using System; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using HotChocolate.AspNetCore.Tests.Utilities; -using Microsoft.AspNetCore.Mvc.ApplicationModels; using StrawberryShake.Transport.WebSockets; -using Xunit; namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriends { diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTest.cs index 30458dbae16..bb029e3c471 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTest.cs @@ -1,15 +1,8 @@ -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.AspNetCore.Tests.Utilities; -using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHero.State; -using StrawberryShake.Extensions; using StrawberryShake.Transport.WebSockets; using StrawberryShake.Persistence.SQLite; -using Xunit; namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHero { diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTraitsTest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTraitsTest.cs index 22ce26cf2e1..0e404a06f65 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTraitsTest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTraitsTest.cs @@ -1,12 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.AspNetCore.Tests.Utilities; -using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using StrawberryShake.Transport.WebSockets; -using Xunit; namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHeroTraits; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.cs index b330d27cabf..33c9963b0c3 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.cs @@ -1,13 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.AspNetCore.Tests.Utilities; -using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; using StrawberryShake.Transport.WebSockets; -using Xunit; namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection { diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.cs index b2d3f9ec533..9e24a277b06 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.cs @@ -4,7 +4,6 @@ using HotChocolate.AspNetCore.Tests.Utilities; using HotChocolate.StarWars.Models; using HotChocolate.Subscriptions; -using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using StrawberryShake.Transport.WebSockets; using StrawberryShake.Transport.WebSockets.Protocols; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubGraphQLSSETest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubGraphQLSSETest.cs index a7b1daf586c..efc2edba0ef 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubGraphQLSSETest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubGraphQLSSETest.cs @@ -1,14 +1,8 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.AspNetCore.Tests.Utilities; using HotChocolate.StarWars.Models; using HotChocolate.Subscriptions; -using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using StrawberryShake.Transport.WebSockets; -using Xunit; using static HotChocolate.StarWars.Types.Subscriptions; namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubGraphQLSSE; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnInterfacesTest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnInterfacesTest.cs index 2b9016972e0..4a05a321a26 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnInterfacesTest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnInterfacesTest.cs @@ -1,13 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.AspNetCore.Tests.Utilities; -using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; using StrawberryShake.Transport.WebSockets; -using Xunit; namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnInterfaces { diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnUnionsTest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnUnionsTest.cs index bfc5f96bdbf..cd1ff5e03be 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnUnionsTest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnUnionsTest.cs @@ -1,13 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.AspNetCore.Tests.Utilities; -using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; using StrawberryShake.Transport.WebSockets; -using Xunit; namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnUnions { diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsUnionListTest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsUnionListTest.cs index d2b47fe3216..9b17ecf4f45 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsUnionListTest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsUnionListTest.cs @@ -1,13 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using HotChocolate.AspNetCore.Tests.Utilities; -using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; using StrawberryShake.Transport.WebSockets; -using Xunit; namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsUnionList { diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/TestGeneration.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/TestGeneration.cs index 477351a1da5..b27af1a6f8d 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/TestGeneration.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/TestGeneration.cs @@ -1,6 +1,5 @@ using ChilliCream.Testing; using StrawberryShake.Tools.Configuration; -using Xunit; using static StrawberryShake.CodeGeneration.CSharp.GeneratorTestHelper; namespace StrawberryShake.CodeGeneration.CSharp.Integration; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/NoStoreStarWarsGeneratorTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/NoStoreStarWarsGeneratorTests.cs index 5d089a41205..a00b37e25ba 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/NoStoreStarWarsGeneratorTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/NoStoreStarWarsGeneratorTests.cs @@ -1,5 +1,4 @@ using ChilliCream.Testing; -using Xunit; using static StrawberryShake.CodeGeneration.CSharp.GeneratorTestHelper; namespace StrawberryShake.CodeGeneration.CSharp; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/OperationGeneratorTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/OperationGeneratorTests.cs index 547e75361b0..507dbe229e5 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/OperationGeneratorTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/OperationGeneratorTests.cs @@ -1,5 +1,4 @@ using ChilliCream.Testing; -using Xunit; using static StrawberryShake.CodeGeneration.CSharp.GeneratorTestHelper; namespace StrawberryShake.CodeGeneration.CSharp; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/PersistedQueryGeneratorTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/PersistedQueryGeneratorTests.cs index 6a6a41cd469..6a26101400a 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/PersistedQueryGeneratorTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/PersistedQueryGeneratorTests.cs @@ -1,4 +1,3 @@ -using Xunit; using RequestStrategyGen = StrawberryShake.Tools.Configuration.RequestStrategy; using static StrawberryShake.CodeGeneration.CSharp.GeneratorTestHelper; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/ResultTypeGeneratorTest.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/ResultTypeGeneratorTest.cs index a5a230ce1d0..5ae0a469054 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/ResultTypeGeneratorTest.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/ResultTypeGeneratorTest.cs @@ -1,4 +1,3 @@ -using Xunit; using static StrawberryShake.CodeGeneration.CSharp.GeneratorTestHelper; namespace StrawberryShake.CodeGeneration.CSharp; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/ScalarGeneratorTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/ScalarGeneratorTests.cs index 4037cddfa85..bb860dd2c4a 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/ScalarGeneratorTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/ScalarGeneratorTests.cs @@ -1,5 +1,4 @@ using ChilliCream.Testing; -using Xunit; using static StrawberryShake.CodeGeneration.CSharp.GeneratorTestHelper; namespace StrawberryShake.CodeGeneration.CSharp; @@ -68,8 +67,10 @@ public void Custom_Scalar_With_Unknown_RuntimeType() => "type Query { person: Person }", "type Person { name: String! email: Email }", "scalar Email", - @"extend scalar Email @runtimeType( - name: ""global::StrawberryShake.CodeGeneration.CSharp.Custom"")", + """ + extend scalar Email @runtimeType( + name: "global::StrawberryShake.CodeGeneration.CSharp.Custom") + """, "extend schema @key(fields: \"id\")"); [Fact] diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/SchemaGeneratorTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/SchemaGeneratorTests.cs index e2de73e4004..0fe915e6708 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/SchemaGeneratorTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/SchemaGeneratorTests.cs @@ -1,5 +1,4 @@ using ChilliCream.Testing; -using Xunit; using static StrawberryShake.CodeGeneration.CSharp.GeneratorTestHelper; namespace StrawberryShake.CodeGeneration.CSharp; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/StarWarsGeneratorTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/StarWarsGeneratorTests.cs index 570823e78cc..c3beea23bfe 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/StarWarsGeneratorTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/StarWarsGeneratorTests.cs @@ -1,5 +1,4 @@ using ChilliCream.Testing; -using Xunit; using static StrawberryShake.CodeGeneration.CSharp.GeneratorTestHelper; namespace StrawberryShake.CodeGeneration.CSharp; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/CSharpCompiler.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/CSharpCompiler.cs index 6093dbef541..df1c1f590a2 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/CSharpCompiler.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/CSharpCompiler.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net.Http; using System.Text.Json; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/GeneratorTestHelper.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/GeneratorTestHelper.cs index 4ee7bdc721c..40d20d8dc36 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/GeneratorTestHelper.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/GeneratorTestHelper.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Runtime.CompilerServices; using System.Text; using Microsoft.CodeAnalysis; @@ -13,7 +9,6 @@ using StrawberryShake.CodeGeneration.Analyzers; using StrawberryShake.CodeGeneration.Analyzers.Models; using StrawberryShake.CodeGeneration.Utilities; -using Xunit; using Snapshot = Snapshooter.Xunit.Snapshot; using RequestStrategyGen = StrawberryShake.Tools.Configuration.RequestStrategy; using static StrawberryShake.CodeGeneration.CSharp.CSharpGenerator; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/RazorGeneratorTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/RazorGeneratorTests.cs index 25d96644cee..98e46dedadb 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/RazorGeneratorTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/RazorGeneratorTests.cs @@ -1,5 +1,4 @@ using StrawberryShake.Razor; -using Xunit; using static StrawberryShake.CodeGeneration.CSharp.GeneratorTestHelper; namespace StrawberryShake.CodeGeneration.CSharp; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Analyzers/DocumentAnalyzerTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Analyzers/DocumentAnalyzerTests.cs index 2bbeb66a704..840d72b932f 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Analyzers/DocumentAnalyzerTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Analyzers/DocumentAnalyzerTests.cs @@ -1,14 +1,9 @@ -using System.Linq; -using System.Threading.Tasks; -using HotChocolate; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.StarWars; using HotChocolate.Utilities; -using StrawberryShake.CodeGeneration.Analyzers.Models; using StrawberryShake.CodeGeneration.Utilities; -using Xunit; namespace StrawberryShake.CodeGeneration.Analyzers; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Analyzers/FragmentHelperTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Analyzers/FragmentHelperTests.cs index 4127d453946..0687f662648 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Analyzers/FragmentHelperTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Analyzers/FragmentHelperTests.cs @@ -1,12 +1,8 @@ -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.StarWars; using StrawberryShake.CodeGeneration.Analyzers.Models; -using Xunit; namespace StrawberryShake.CodeGeneration.Analyzers; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Analyzers/InterfaceTypeSelectionSetAnalyzerTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Analyzers/InterfaceTypeSelectionSetAnalyzerTests.cs index 0b8e6873012..d6fa0a16261 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Analyzers/InterfaceTypeSelectionSetAnalyzerTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Analyzers/InterfaceTypeSelectionSetAnalyzerTests.cs @@ -1,10 +1,7 @@ -using System.Linq; -using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using HotChocolate.StarWars; using HotChocolate.Execution; using HotChocolate.Language; -using Xunit; namespace StrawberryShake.CodeGeneration.Analyzers; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/ClientDescriptorMapperTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/ClientDescriptorMapperTests.cs index 1d6f1c082b5..0ded8576d60 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/ClientDescriptorMapperTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/ClientDescriptorMapperTests.cs @@ -1,7 +1,4 @@ -using System.Threading.Tasks; using HotChocolate.Language; -using StrawberryShake.CodeGeneration.Analyzers.Models; -using Xunit; using RequestStrategyGen = StrawberryShake.Tools.Configuration.RequestStrategy; using static StrawberryShake.CodeGeneration.Mappers.TestDataHelper; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/DataTypeMapperTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/DataTypeMapperTests.cs index 79bc2d21933..587d5abfd4a 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/DataTypeMapperTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/DataTypeMapperTests.cs @@ -1,9 +1,5 @@ -using System.Linq; -using System.Threading.Tasks; using HotChocolate.Language; -using StrawberryShake.CodeGeneration.Analyzers.Models; using StrawberryShake.CodeGeneration.Extensions; -using Xunit; using RequestStrategyGen = StrawberryShake.Tools.Configuration.RequestStrategy; using static StrawberryShake.CodeGeneration.Mappers.TestDataHelper; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/EnumDescriptorMapperTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/EnumDescriptorMapperTests.cs index 9c20e4373cd..a325660bc79 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/EnumDescriptorMapperTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/EnumDescriptorMapperTests.cs @@ -1,9 +1,5 @@ -using System.Linq; -using System.Threading.Tasks; using HotChocolate.Language; -using StrawberryShake.CodeGeneration.Analyzers.Models; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; -using Xunit; using RequestStrategyGen = StrawberryShake.Tools.Configuration.RequestStrategy; using static StrawberryShake.CodeGeneration.Mappers.TestDataHelper; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/OperationDescriptorMapperTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/OperationDescriptorMapperTests.cs index 56d07a6f097..851f4e1086c 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/OperationDescriptorMapperTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/OperationDescriptorMapperTests.cs @@ -1,8 +1,4 @@ -using System.Linq; -using System.Threading.Tasks; using HotChocolate.Language; -using StrawberryShake.CodeGeneration.Analyzers.Models; -using Xunit; using RequestStrategyGen = StrawberryShake.Tools.Configuration.RequestStrategy; using static StrawberryShake.CodeGeneration.Mappers.TestDataHelper; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/ResultBuilderDescriptorMapperTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/ResultBuilderDescriptorMapperTests.cs index e5f23b57392..a7faaa8930f 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/ResultBuilderDescriptorMapperTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/ResultBuilderDescriptorMapperTests.cs @@ -1,8 +1,4 @@ -using System.Linq; -using System.Threading.Tasks; using HotChocolate.Language; -using StrawberryShake.CodeGeneration.Analyzers.Models; -using Xunit; using RequestStrategyGen = StrawberryShake.Tools.Configuration.RequestStrategy; using static StrawberryShake.CodeGeneration.Mappers.TestDataHelper; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/TypeDescriptorMapperTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/TypeDescriptorMapperTests.cs index 2f49082ed98..4e3c8c8d617 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/TypeDescriptorMapperTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/TypeDescriptorMapperTests.cs @@ -1,10 +1,6 @@ -using System.Linq; -using System.Threading.Tasks; using HotChocolate.Language; -using StrawberryShake.CodeGeneration.Analyzers.Models; using StrawberryShake.CodeGeneration.Descriptors.TypeDescriptors; using StrawberryShake.CodeGeneration.Extensions; -using Xunit; using RequestStrategyGen = StrawberryShake.Tools.Configuration.RequestStrategy; using static StrawberryShake.CodeGeneration.Mappers.TestDataHelper; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Utilities/OperationDocumentHelperTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Utilities/OperationDocumentHelperTests.cs index 0275625c7e0..2d5fbd9c0f7 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Utilities/OperationDocumentHelperTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Utilities/OperationDocumentHelperTests.cs @@ -1,9 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using HotChocolate.Language; +using HotChocolate.Language; using Snapshooter.Xunit; -using Xunit; using static ChilliCream.Testing.FileResource; using static HotChocolate.Language.Utf8GraphQLParser; using static StrawberryShake.CodeGeneration.Utilities.OperationDocumentHelper; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Utilities/QueryDocumentRewriterTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Utilities/QueryDocumentRewriterTests.cs index cf711159b7d..5641f916f8e 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Utilities/QueryDocumentRewriterTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Utilities/QueryDocumentRewriterTests.cs @@ -1,11 +1,9 @@ -using System.Threading.Tasks; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Language.Utilities; using HotChocolate.StarWars; using Microsoft.Extensions.DependencyInjection; using Snapshooter.Xunit; -using Xunit; namespace StrawberryShake.CodeGeneration.Utilities; diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Utilities/SchemaHelperTests.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Utilities/SchemaHelperTests.cs index e847ea0bb2a..5468537a820 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Utilities/SchemaHelperTests.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Utilities/SchemaHelperTests.cs @@ -1,8 +1,6 @@ using ChilliCream.Testing; -using HotChocolate; using HotChocolate.Language; using HotChocolate.Types; -using Xunit; namespace StrawberryShake.CodeGeneration.Utilities; diff --git a/src/StrawberryShake/Tooling/src/Configuration/GraphQLConfig.cs b/src/StrawberryShake/Tooling/src/Configuration/GraphQLConfig.cs index 2ebb74fd934..83f34e342bf 100644 --- a/src/StrawberryShake/Tooling/src/Configuration/GraphQLConfig.cs +++ b/src/StrawberryShake/Tooling/src/Configuration/GraphQLConfig.cs @@ -1,5 +1,4 @@ using System; -using System.Diagnostics; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Serialization; diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/CommandHandler.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/CommandHandler.cs index 69667c981de..1b126e64e93 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/CommandHandler.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/CommandHandler.cs @@ -1,6 +1,3 @@ -using System.Threading.Tasks; -using System.Threading; - namespace StrawberryShake.Tools; public abstract class CommandHandler diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/CommandTools.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/CommandTools.cs index 427622d038d..940dc64af0e 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/CommandTools.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/CommandTools.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Text; using Microsoft.Extensions.DependencyInjection; using McMaster.Extensions.CommandLineUtils; diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/DefaultConsoleOutput.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/DefaultConsoleOutput.cs index 0dd254d3b3c..9d6cf06ba4d 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/DefaultConsoleOutput.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/DefaultConsoleOutput.cs @@ -1,5 +1,3 @@ -using System; - namespace StrawberryShake.Tools; public class DefaultConsoleOutput diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/DefaultConsoleOutputActivity.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/DefaultConsoleOutputActivity.cs index e025bc32c10..5da94156e1b 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/DefaultConsoleOutputActivity.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/DefaultConsoleOutputActivity.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Diagnostics; namespace StrawberryShake.Tools; diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/DefaultFileSystem.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/DefaultFileSystem.cs index ed943cc5f6b..205d03b011d 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/DefaultFileSystem.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/DefaultFileSystem.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.IO; using System.Text; -using System.Threading.Tasks; namespace StrawberryShake.Tools; diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/DefaultHttpClientFactory.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/DefaultHttpClientFactory.cs index 0224b960093..89279b70af2 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/DefaultHttpClientFactory.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/DefaultHttpClientFactory.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Net.Http; using System.Net.Http.Headers; namespace StrawberryShake.Tools; diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/DownloadCommandContext.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/DownloadCommandContext.cs index 6ad432b8da9..4b389b78c1a 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/DownloadCommandContext.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/DownloadCommandContext.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; - namespace StrawberryShake.Tools; public class DownloadCommandContext diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/IActivity.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/IActivity.cs index b8a6eb0001f..8f9d3e655f0 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/IActivity.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/IActivity.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using HCError = HotChocolate.IError; namespace StrawberryShake.Tools; diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/ICommand.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/ICommand.cs index dcfa6f4bbf3..852ad9713b4 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/ICommand.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/ICommand.cs @@ -1,5 +1,3 @@ -using System.Threading.Tasks; - namespace StrawberryShake.Tools; public interface ICommand diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/IConsoleOutput.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/IConsoleOutput.cs index ca109b84a02..e53a00d111e 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/IConsoleOutput.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/IConsoleOutput.cs @@ -1,5 +1,3 @@ -using System; - namespace StrawberryShake.Tools; public interface IConsoleOutput diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/IFileSystem.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/IFileSystem.cs index c0729188750..b103008028e 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/IFileSystem.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/IFileSystem.cs @@ -1,8 +1,3 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; - namespace StrawberryShake.Tools; public interface IFileSystem diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/IHttpClientFactory.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/IHttpClientFactory.cs index 9bc474b13ec..d5ebd18e4da 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/IHttpClientFactory.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/IHttpClientFactory.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Net.Http; - namespace StrawberryShake.Tools; public interface IHttpClientFactory diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/IntrospectionHelper.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/IntrospectionHelper.cs index c992e137586..80b3d657ec2 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/IntrospectionHelper.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/IntrospectionHelper.cs @@ -1,5 +1,3 @@ -using System.Text; -using HotChocolate.Language.Utilities; using HotChocolate.Utilities.Introspection; using static HotChocolate.Utilities.Introspection.IntrospectionClient; using HCErrorBuilder = HotChocolate.ErrorBuilder; diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutput.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutput.cs index 17be215480b..d19857a0622 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutput.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutput.cs @@ -1,5 +1,3 @@ -using System; - namespace StrawberryShake.Tools; public class JsonConsoleOutput diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputActivity.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputActivity.cs index 7a8a2b2bd0e..cff1231079b 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputActivity.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputActivity.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Diagnostics; namespace StrawberryShake.Tools; diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputActivityData.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputActivityData.cs index a69316f53ae..ff6003c6bde 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputActivityData.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputActivityData.cs @@ -1,5 +1,3 @@ -using System; - namespace StrawberryShake.Tools; public class JsonConsoleOutputActivityData diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputCommand.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputCommand.cs index 063c3a1a20a..76247af87fe 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputCommand.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputCommand.cs @@ -1,4 +1,3 @@ -using System; using System.Text.Json; using System.Text.Json.Serialization; diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputData.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputData.cs index 60c59d9033c..6752dc8d4fe 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputData.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputData.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace StrawberryShake.Tools; public class JsonConsoleOutputData diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputErrorData.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputErrorData.cs index c52c16a8902..46af921f729 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputErrorData.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/JsonConsoleOutputErrorData.cs @@ -1,5 +1,3 @@ -using System.IO; - namespace StrawberryShake.Tools; public class JsonConsoleOutputErrorData diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/OAuth/AuthArgumentsBase.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/OAuth/AuthArgumentsBase.cs index fe1bd979490..450fa545a87 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/OAuth/AuthArgumentsBase.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/OAuth/AuthArgumentsBase.cs @@ -1,7 +1,3 @@ -using System.Linq; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; using McMaster.Extensions.CommandLineUtils; using HCErrorBuilder = HotChocolate.ErrorBuilder; diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/OAuth/TokenClient.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/OAuth/TokenClient.cs index e3e79c5ded8..64ab5b39613 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/OAuth/TokenClient.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/OAuth/TokenClient.cs @@ -1,7 +1,3 @@ -using System.Collections.Generic; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; using IdentityModel.Client; namespace StrawberryShake.Tools.OAuth; diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/UpdateCommandContext.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/UpdateCommandContext.cs index 7c353ae6218..66e3c2828a4 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/UpdateCommandContext.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/UpdateCommandContext.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; - namespace StrawberryShake.Tools; public class UpdateCommandContext