From 8dd3a7b9d0411076b962d6105110c907c7670412 Mon Sep 17 00:00:00 2001 From: Glen Date: Thu, 28 Nov 2024 14:28:15 +0200 Subject: [PATCH 1/4] Split Cookie Crumble into multiple libraries --- src/CookieCrumble/CookieCrumble.sln | 86 ++++++++++------- .../CookieCrumble.Fusion.csproj | 14 +++ .../CookieCrumbleFusion.cs | 11 +++ .../Extensions/SnapshotExtensions.cs | 11 +++ .../QueryPlanSnapshotValueFormatter.cs | 3 +- .../Formatters/SnapshotValueFormatters.cs | 12 +++ .../CookieCrumble.HotChocolate.csproj | 17 ++++ .../CookieCrumbleHotChocolate.cs | 16 ++++ .../Extensions/CommonTestExtensions.cs | 2 +- .../Extensions/SnapshotExtensions.cs | 93 +++++++++++++++++++ .../ExecutionResultSnapshotValueFormatter.cs | 3 +- .../GraphQLHttpResponseFormatter.cs | 3 +- .../GraphQLSnapshotValueFormatter.cs | 3 +- .../OperationResultSnapshotValueFormatter.cs | 3 +- .../SchemaErrorSnapshotValueFormatter.cs | 3 +- .../SchemaSnapshotValueFormatter.cs | 3 +- .../Formatters/SnapshotValueFormatters.cs | 27 ++++++ .../src/CookieCrumble/CookieCrumble.csproj | 7 -- .../Extensions/SnapshotExtensions.cs | 86 ----------------- .../Formatters/SnapshotValueFormatters.cs | 9 -- .../src/CookieCrumble/Snapshot.cs | 11 +-- .../test/CookieCrumble.Tests/SnapshotTests.cs | 10 -- ...Tests.SnapshotBuilder_GraphQL_Segment.snap | 11 --- src/Directory.Packages.props | 2 + .../Core.Tests/DataLoaderListBatchTests.cs | 1 - .../test/Core.Tests/DataLoaderTests.cs | 1 - src/GreenDonut/test/Directory.Build.props | 4 + .../BuiltInTypesSharableTests.cs | 1 - .../AnnotationBased/CertificationTests.cs | 1 - .../CodeFirst/CertificationTests.cs | 1 - .../Directives/ComposeDirectiveTests.cs | 1 - .../Directives/ExternalDirectiveTests.cs | 1 - .../Directives/KeyDirectiveTests.cs | 1 - .../Legacy/ExternalDirectiveTests.cs | 1 - .../Directives/Legacy/KeyDirectiveTests.cs | 1 - .../Legacy/ProvidesDirectiveTests.cs | 1 - .../Legacy/RequiresDirectiveTests.cs | 1 - .../NonResolvableKeyDirectiveTests.cs | 1 - .../Directives/OverrideDirectiveTests.cs | 1 - .../Directives/PolicyDirectiveTests.cs | 1 - .../Directives/ProvidesDirectiveTests.cs | 1 - .../Directives/RequiresDirectiveTests.cs | 1 - .../RequiresScopesDirectiveTests.cs | 1 - .../ReferenceResolverAttributeTests.cs | 1 - .../ServiceTypeTests.cs | 1 - .../test/Directory.Build.props | 1 + .../AuthorizationTests.cs | 1 - .../AuthorizationHandlerTests.cs | 1 - .../AuthorizationTests.cs | 1 - .../AuthorizeDirectiveTests.cs | 1 - .../AuthorizeSchemaTests.cs | 1 - .../ModuleInitializer.cs | 12 +++ .../RootCommandTests.cs | 1 - .../SchemaCommandTests.cs | 1 - .../SchemaExportCommandTests.cs | 1 - .../test/AspNetCore.Tests/CostTests.cs | 1 - .../GraphQLOverHttpSpecTests.cs | 1 - .../HttpGetMiddlewareTests.cs | 1 - .../HttpGetSchemaMiddlewareTests.cs | 1 - .../HttpMultipartMiddlewareTests.cs | 1 - .../HttpPostMiddlewareTests.cs | 3 +- .../AspNetCore.Tests/IntrospectionTests.cs | 1 - .../AspNetCore.Tests/ModuleInitializer.cs | 12 +++ .../PersistedOperationMiddlewareTests.cs | 1 - .../PersistedOperationTests.cs | 1 - .../Apollo/WebSocketProtocolTests.cs | 1 - .../WebSocketProtocolTests.cs | 1 - .../ToolConfigurationFileMiddlewareTests.cs | 1 - .../AspNetCore/test/Directory.Build.props | 4 +- .../GraphQLHttpClientTests.cs | 1 - .../Transport.Http.Tests/ModuleInitializer.cs | 12 +++ .../VariableBatchRequestTests.cs | 1 - .../WebSocketClientProtocolTests.cs | 1 - .../CacheControlDirectiveTypeTests.cs | 1 - .../CacheControlTypeInterceptorTests.cs | 1 - .../test/Caching.Tests/HttpCachingTests.cs | 1 - .../Caching/test/Caching.Tests/SchemaTests.cs | 1 - .../Caching/test/Directory.Build.props | 4 + .../OperationDocumentSourceTextTests.cs | 1 - .../Execution/OperationDocumentTests.cs | 1 - .../Execution/OperationResultBuilderTests.cs | 2 - .../Execution/QueryRequestBuilderTests.cs | 1 - .../Abstractions.Tests/ModuleInitializer.cs | 12 +++ .../Core/test/Abstractions.Tests/PathTests.cs | 2 - .../QueryableExecutableTests.cs | 1 - .../AnnotationBasedAuthorizationTests.cs | 1 - .../CodeFirstAuthorizationTests.cs | 1 - .../HotChocolate.Authorization.Tests.csproj | 1 + .../Authorization.Tests/ModuleInitializer.cs | 12 +++ .../Core/test/Directory.Build.props | 4 +- .../test/Execution.Tests/CodeFirstTests.cs | 1 - .../Core/test/Execution.Tests/DeferTests.cs | 1 - ...cutorBuilderExtensions_Validation.Tests.cs | 1 - ...stExecutorBuilderExtensions.Types.Tests.cs | 1 - .../DependencyInjectionTests.cs | 1 - .../Errors/ErrorBehaviorTests.cs | 1 - .../Integration/DataLoader/DataLoaderTests.cs | 1 - .../DataLoader/UseDataLoaderTests.cs | 1 - .../InputOutputObjectAreTheSame.cs | 1 - .../Integration/Spec/ArgumentCoercionTests.cs | 1 - .../Integration/Spec/MutationTests.cs | 1 - .../StarWarsCodeFirstTests.cs | 1 - .../TypeConverter/TypeConverterTests.cs | 1 - .../Execution.Tests/IntrospectionTests.cs | 1 - .../Execution.Tests/MiddlewareContextTests.cs | 1 - .../test/Execution.Tests/ModuleInitializer.cs | 12 +++ .../Pipeline/ExceptionMiddlewareTests.cs | 1 - .../Pipeline/TimeoutMiddlewareTests.cs | 1 - .../Processing/OperationCompilerTests.cs | 1 - .../Processing/Result/ResultBuilderTests.cs | 2 - .../SelectionIncludeConditionTests.cs | 1 - .../Processing/VariableCoercionHelperTests.cs | 1 - .../Projections/ProjectableDataLoaderTests.cs | 1 - .../Execution.Tests/RequestExecutorTests.cs | 1 - .../ScalarExecutionErrorTests.cs | 1 - .../Execution.Tests/SchemaDirectiveTests.cs | 1 - .../test/Execution.Tests/SchemaFirstTests.cs | 1 - .../Execution.Tests/ScopedContextDataTests.cs | 2 - .../Execution.Tests/SemanticNonNullTests.cs | 1 - .../MultiPartResponseStreamSerializerTests.cs | 1 - .../test/Execution.Tests/SnapshotHelpers.cs | 2 - .../SourceObjectConversionTests.cs | 1 - .../Core/test/Execution.Tests/StreamTests.cs | 2 - .../AutoCacheDataLoaderTests.cs | 1 - .../Fetching.Tests/BatchSchedulerTests.cs | 1 - .../HotChocolate.Fetching.Tests.csproj | 1 + .../test/Fetching.Tests/ModuleInitializer.cs | 12 +++ ...tChocolate.Subscriptions.Nats.Tests.csproj | 1 + ...colate.Subscriptions.Postgres.Tests.csproj | 1 + ...colate.Subscriptions.RabbitMQ.Tests.csproj | 1 + .../DefaultJsonMessageSerializerTests.cs | 2 - .../Subscriptions.Tests/ModuleInitializer.cs | 12 +++ .../NewtonsoftJsonMessageSerializerTests.cs | 2 - .../SubscriptionIntegrationTestBase.cs | 1 - .../TopicFormatterTests.cs | 2 - .../HotChocolate.Types.Analyzers.Tests.csproj | 1 + .../Types.Analyzers.Tests/IntegrationTests.cs | 1 - .../ModuleInitializer.cs | 12 +++ .../test/Types.Analyzers.Tests/TestHelper.cs | 1 - .../CustomCursorHandlerTests.cs | 1 - ...colate.Types.CursorPagination.Tests.csproj | 1 + .../IntegrationTests.cs | 1 - .../ModuleInitializer.cs | 12 +++ .../UsePagingAttributeTests.cs | 1 - .../FromJsonDescriptorTests.cs | 1 - .../Types.Json.Tests/ModuleInitializer.cs | 12 +++ .../AnnotationBasedMutations.cs | 1 - .../CodeFirstMutations.cs | 1 - .../ErrorMiddlewareTests.cs | 1 - .../ModuleInitializer.cs | 12 +++ .../SchemaFirstMutations.cs | 1 - .../Types.NodaTime.Tests/DurationTypeTests.cs | 1 - .../Types.NodaTime.Tests/InstantTypeTests.cs | 1 - .../LocalDateTimeTypeTests.cs | 1 - .../LocalDateTypeTests.cs | 1 - .../LocalTimeTypeTests.cs | 1 - .../OffsetDateTimeTypeTests.cs | 1 - .../OffsetDateTypeTests.cs | 1 - .../OffsetTimeTypeTests.cs | 1 - .../Types.NodaTime.Tests/OffsetTypeTests.cs | 1 - .../ZonedDateTimeTypeTests.cs | 1 - .../CustomCollectionSegmentHandlerTests.cs | 1 - .../IntegrationTests.cs | 1 - .../ModuleInitializer.cs | 12 +++ .../AnnotationBasedSchemaTests.cs | 1 - .../CodeFirstSchemaTests.cs | 1 - .../Types.Queries.Tests/ModuleInitializer.cs | 12 +++ .../Types.Records.Tests/ModuleInitializer.cs | 12 +++ .../EmailAddressTypeTests.cs | 1 - .../test/Types.Scalars.Tests/HexTypeTests.cs | 1 - .../test/Types.Scalars.Tests/HslTypeTests.cs | 1 - .../test/Types.Scalars.Tests/HslaTypeTests.cs | 1 - .../test/Types.Scalars.Tests/IPv4TypeTests.cs | 1 - .../test/Types.Scalars.Tests/IPv6TypeTests.cs | 1 - .../test/Types.Scalars.Tests/IsbnTypeTests.cs | 1 - .../Types.Scalars.Tests/LatitudeTypeTests.cs | 1 - .../LocalCurrencyTypeTests.cs | 1 - .../Types.Scalars.Tests/LocalDateTypeTests.cs | 1 - .../Types.Scalars.Tests/LocalTimeTypeTests.cs | 1 - .../Types.Scalars.Tests/LongitudeTypeTests.cs | 1 - .../MacAddressTypeTests.cs | 1 - .../NegativeFloatTypeTests.cs | 1 - .../NegativeIntTypeTests.cs | 1 - .../NonEmptyStringTypeTests.cs | 1 - .../NonNegativeFloatTypeTests.cs | 1 - .../NonNegativeIntTypeTests.cs | 1 - .../NonPositiveFloatTypeTests.cs | 1 - .../NonPositiveIntTypeTests.cs | 1 - .../PhoneNumberTypeTests.cs | 1 - .../test/Types.Scalars.Tests/PortTypeTests.cs | 1 - .../PositiveIntTypeTests.cs | 1 - .../PostalCodeTypeTests.cs | 1 - .../Types.Scalars.Tests/RegexTypeTests.cs | 1 - .../test/Types.Scalars.Tests/RgbTypeTests.cs | 1 - .../test/Types.Scalars.Tests/RgbaTypeTests.cs | 1 - .../Types.Scalars.Tests/ScalarTypeTestBase.cs | 1 - .../SignedByteTypeTests.cs | 1 - .../UnsignedIntTypeTests.cs | 1 - .../UnsignedLongTypeTests.cs | 1 - .../UnsignedShortTypeTests.cs | 1 - .../Types.Scalars.Tests/UtcOffsetTypeTests.cs | 1 - .../Core/test/Types.Tests/CodeFirstTests.cs | 1 - .../MiddlewareConfigurationTests.cs | 1 - .../Configuration/TypeDiscovererTests.cs | 1 - .../TypeDiscoveryHandlerTests.cs | 1 - .../Configuration/TypeDiscoveryTests.cs | 1 - .../TypeInitializationOrderTests.cs | 1 - .../Configuration/TypeInitializerTests.cs | 1 - .../TypeScopeInterceptorTests.cs | 1 - .../Configuration/TypeTrimmerTests.cs | 1 - .../Validation/TypeValidationTestBase.cs | 1 - .../SchemaBuilderExtensions.Document.Tests.cs | 1 - .../SchemaBuilderExtensions.Types.Tests.cs | 1 - .../Types.Tests/ForbiddenRuntimeTypeTests.cs | 1 - .../HotChocolate.Types.Tests.csproj | 1 + .../test/Types.Tests/ModuleInitializer.cs | 12 +++ .../test/Types.Tests/NamingConventionTests.cs | 1 - .../Types.Tests/Regressions/Issue_4811.cs | 1 - .../ResolverContextStateExtensionTests.cs | 1 - .../Types.Tests/Resolvers/IsSelectedTests.cs | 1 - .../Resolvers/ResolverCompilerTests.cs | 1 - .../Resolvers/ResolverServiceTests.cs | 1 - .../Resolvers/ResolverTaskNullTests.cs | 1 - .../test/Types.Tests/SchemaBuilderTests.cs | 1 - .../test/Types.Tests/SchemaCoordinateTests.cs | 1 - .../SchemaDocumentFormatterTests.cs | 1 - .../Core/test/Types.Tests/SchemaErrorTests.cs | 1 - .../Core/test/Types.Tests/SchemaFirstTests.cs | 1 - .../test/Types.Tests/SchemaSerializerTests.cs | 1 - .../test/Types.Tests/Types/ArgumentTests.cs | 1 - .../ExtendObjectTypeAttributeTests.cs | 2 - .../Attributes/RequiredAttributeTests.cs | 1 - .../Types.Tests/Types/BindingBehaviorTests.cs | 1 - .../Types.Tests/Types/DescriptionTests.cs | 1 - .../XmlDocumentationProviderTests.cs | 1 - .../Definitions/DefinitionBaseTests.cs | 1 - .../Descriptors/ObjectTypeDescriptorTests.cs | 1 - .../test/Types.Tests/Types/DirectiveTests.cs | 1 - .../Types.Tests/Types/DirectiveTypeTests.cs | 1 - .../SpecifiedByDirectiveTypeTests.cs | 1 - .../Types/Directives/TagDirectiveTests.cs | 1 - .../test/Types.Tests/Types/EnumFlagsTests.cs | 1 - .../Types/EnumTypeExtensionTests.cs | 1 - .../test/Types.Tests/Types/EnumTypeTests.cs | 1 - .../Types.Tests/Types/InputCoercionTests.cs | 1 - .../Types/InputObjectTypeAttributeTests.cs | 1 - .../Types/InputObjectTypeDictionaryTests.cs | 1 - .../Types.Tests/Types/InputObjectTypeTests.cs | 1 - .../Types.Tests/Types/InputParserTests.cs | 1 - .../Interceptors/FlagEnumInterceptorTests.cs | 1 - .../Types/InterfaceTypeExtensionTests.cs | 1 - .../Types/InterfaceTypeResolverTests.cs | 1 - .../Types.Tests/Types/InterfaceTypeTests.cs | 1 - .../test/Types.Tests/Types/JsonTypeTests.cs | 1 - .../test/Types.Tests/Types/ListTypeTests.cs | 1 - .../Types/ObjectFieldExpressionTests.cs | 1 - .../Types/ObjectTypeAttributeTests.cs | 1 - .../Types/ObjectTypeExtensionTests.cs | 1 - .../test/Types.Tests/Types/ObjectTypeTests.cs | 1 - .../Types/OneOfIntegrationTests.cs | 1 - .../Relay/DefaultNodeIdSerializerTests.cs | 1 - .../Types/Relay/IdAttributeTests.cs | 1 - .../Types/Relay/IdDescriptorTests.cs | 1 - .../Types/Relay/IdMiddlewareTests.cs | 1 - .../Types/Relay/NodeFieldSupportTests.cs | 1 - .../Types/Relay/NodeResolverTests.cs | 1 - .../Types.Tests/Types/Relay/NodeTypeTests.cs | 1 - .../Relay/OptimizedNodeIdSerializerTests.cs | 1 - .../Types/SDL/EnumTypeSchemaFirstTests.cs | 1 - .../SDL/InputObjectTypeSchemaFirstTests.cs | 2 - .../Types/SDL/ObjectTypeSchemaFirstTests.cs | 2 - .../Types.Tests/Types/Scalars/AnyTypeTests.cs | 1 - .../Types/Scalars/CustomScalarTests.cs | 1 - .../Types/Scalars/DateTimeTypeTests.cs | 1 - .../Types/Scalars/ScalarBindingTests.cs | 1 - .../Types/Scalars/TimeSpanTypeTests.cs | 1 - .../Types/Scalars/UploadTypeTests.cs | 1 - .../Types/Scalars/UuidTypeTests.cs | 1 - .../Types/SubscriptionTypeTests.cs | 1 - .../Types.Tests/Types/TypeFactoryTests.cs | 2 - .../Types/UnionTypeAttributeTests.cs | 1 - .../test/Types.Tests/Types/UnionTypeTests.cs | 1 - .../DictionaryToObjectConverterTests.cs | 2 - .../InputObjectToDictionaryConverterTests.cs | 1 - .../ObjectValueToDictionaryConverterTests.cs | 1 - .../Core/test/Utilities/SnapshotExtensions.cs | 1 - .../Core/test/Utilities/SnapshotTest.cs | 2 - .../Core/test/Utilities/TestHelper.cs | 1 - .../DocumentValidatorTests.cs | 1 - .../DocumentValidatorVisitorTestBase.cs | 1 - .../FieldMustBeDefinedRuleTests.cs | 1 - .../FieldSelectionMergingRuleTests.cs | 1 - .../FragmentSpreadTargetDefinedRuleTests.cs | 1 - .../FragmentSpreadTypeExistenceRuleTests.cs | 1 - .../FragmentsMustBeUsedRuleTests.cs | 1 - .../IntrospectionDepthRuleTests.cs | 1 - .../IntrospectionRuleTests.cs | 1 - .../Core/test/Validation.Tests/TestHelper.cs | 1 - .../CostSyntaxRewriterTests.cs | 1 - .../HotChocolate.CostAnalysis.Tests.csproj | 1 - .../CostAnalysis.Tests/ModuleInitializer.cs | 12 +++ .../test/CostAnalysis.Tests/PagingTests.cs | 1 - .../SchemaIntegrationTests.cs | 1 - .../SlicingArgumentsTests.cs | 1 - .../SpecificationExampleTests.cs | 1 - .../StaticQueryAnalysisTests.cs | 1 - .../CostAnalysis/test/Directory.Build.props | 6 ++ .../Data.AutoMapper.Tests/ProjectToTests.cs | 1 - .../Data.AutoMapper.Tests/TestExtensions.cs | 1 - ...ta.EntityFramework.Pagination.Tests.csproj | 1 + .../IntegrationTests.cs | 1 - .../ModuleInitializer.cs | 12 +++ .../EntityFrameworkExecutableTests.cs | 2 - ...ameworkResolverCompilerIntegrationTests.cs | 1 - .../IntegrationTests.cs | 1 - .../ModuleInitializer.cs | 12 +++ .../SqlCursorCursorPagingIntegrationTests.cs | 1 - .../SqlOffsetPagingIntegrationTests.cs | 1 - .../UseDbContextTests.cs | 1 - .../FilteringAndPaging.cs | 1 - .../ModuleInitializer.cs | 12 +++ .../QueryableFilterCombinatorTests.cs | 1 - .../QueryableFilterVisitorBooleanTests.cs | 1 - .../QueryableFilterVisitorComparableTests.cs | 1 - .../QueryableFilterVisitorEnumTests.cs | 1 - .../QueryableFilterVisitorExecutableTests.cs | 1 - .../QueryableFilterVisitorExpressionTests.cs | 1 - .../QueryableFilterVisitorIdTests.cs | 1 - .../QueryableFilterVisitorInterfacesTests.cs | 1 - .../QueryableFilterVisitorListTests.cs | 1 - .../QueryableFilterVisitorObjectTests.cs | 1 - .../QueryableFilterVisitorStringTests.cs | 1 - .../QueryableFilterVisitorStructTests.cs | 1 - .../QueryableFilterVisitorVariablesTests.cs | 1 - .../DataLoaderTests.cs | 1 - .../FilteringAndPaging.cs | 1 - ...colate.Data.Filters.SqlServer.Tests.csproj | 1 + .../ModuleInitializer.cs | 12 +++ .../QueryableFilterVisitorBooleanTests.cs | 1 - .../QueryableFilterVisitorComparableTests.cs | 1 - .../QueryableFilterVisitorEnumTests.cs | 1 - .../QueryableFilterVisitorExecutableTests.cs | 1 - .../QueryableFilterVisitorExpressionTests.cs | 1 - .../QueryableFilterVisitorInterfacesTests.cs | 1 - .../QueryableFilterVisitorListTests.cs | 1 - .../QueryableFilterVisitorObjectTests.cs | 1 - .../QueryableFilterVisitorStringTests.cs | 1 - .../Context/FilterContextTests.cs | 1 - .../Convention/FilterConventionScopeTests.cs | 1 - .../Convention/FilterConventionTests.cs | 1 - .../QueryableFilterVisitorComparableTests.cs | 1 - .../QueryableFilterVisitorEnumTests.cs | 1 - .../test/Data.Filters.Tests/ExtensionsTest.cs | 1 - .../FilterAttributeTests.cs | 1 - .../Data.Filters.Tests/FilterInputTypeTest.cs | 1 - .../IdFilterTypeInterceptorTests.cs | 1 - .../Data.Filters.Tests/ModuleInitializer.cs | 12 +++ .../QueryableFilteringExtensionsTests.cs | 1 - .../Types/BooleanOperationInputTests.cs | 1 - .../Types/ComparableOperationInputTests.cs | 1 - .../Types/EnumOperationInputTypeTests.cs | 1 - .../Types/ListFilterInputTests.cs | 1 - .../Types/MethodOperationInputTests.cs | 2 - .../Types/ObjectInputTests.cs | 1 - .../Types/StringOperationInputTests.cs | 1 - ...te.Data.Projections.SqlServer.Tests.csproj | 1 + .../ModuleInitializer.cs | 12 +++ .../QueryableFirstOrDefaultTests.cs | 1 - .../QueryableProjectionExtensionsTests.cs | 1 - .../QueryableProjectionFilterTests.cs | 1 - .../QueryableProjectionHashSetTest.cs | 1 - .../QueryableProjectionInterfaceTypeTests.cs | 1 - .../QueryableProjectionNestedTests.cs | 1 - .../QueryableProjectionSetTest.cs | 1 - .../QueryableProjectionSortedSetTest.cs | 1 - .../QueryableProjectionSortingTests.cs | 1 - .../QueryableProjectionUnionTypeTests.cs | 1 - ...eryableProjectionVisitorExecutableTests.cs | 1 - ...ryableProjectionVisitorIsProjectedTests.cs | 1 - .../QueryableProjectionVisitorPagingTests.cs | 1 - .../QueryableProjectionVisitorScalarTests.cs | 1 - .../QueryableSingleOrDefaultTests.cs | 1 - ...HotChocolate.Data.Projections.Tests.csproj | 1 + .../IntegrationTests.cs | 1 - .../ModuleInitializer.cs | 12 +++ .../ProjectionsAttributeTests.cs | 1 - .../SelectionContextTests.cs | 1 - .../ModuleInitializer.cs | 12 +++ .../QueryableFilterVisitorInterfacesTests.cs | 1 - .../QueryableSortVisitorBooleanTests.cs | 1 - .../QueryableSortVisitorComparableTests.cs | 1 - .../QueryableSortVisitorEnumTests.cs | 1 - .../QueryableSortVisitorExecutableTests.cs | 1 - .../QueryableSortVisitorExpressionTests.cs | 1 - .../QueryableSortVisitorObjectTests.cs | 1 - .../QueryableSortVisitorStringTests.cs | 1 - .../QueryableSortVisitorVariablesTests.cs | 1 - .../ModuleInitializer.cs | 12 +++ .../QueryableSortVisitorBooleanTests.cs | 1 - .../QueryableSortVisitorComparableTests.cs | 1 - .../QueryableSortVisitorEnumTests.cs | 1 - .../QueryableSortVisitorExecutableTests.cs | 1 - .../QueryableSortVisitorExpressionTests.cs | 1 - .../QueryableSortVisitorObjectTests.cs | 1 - .../QueryableSortVisitorStringTests.cs | 1 - .../Context/SortingContextTests.cs | 1 - .../Convention/SortConventionScopeTests.cs | 1 - .../Convention/SortConventionTests.cs | 1 - .../test/Data.Sorting.Tests/ExtensionsTest.cs | 1 - .../Data.Sorting.Tests/IntegrationTests.cs | 1 - .../Data.Sorting.Tests/ModuleInitializer.cs | 12 +++ .../QueryableSortingExtensionsTests.cs | 1 - .../Data.Sorting.Tests/SortAttributeTests.cs | 1 - .../Data.Sorting.Tests/SortInputTypeTests.cs | 1 - .../Types/ObjectInputTests.cs | 1 - .../Data/test/Data.Tests/ExecutableTests.cs | 2 - .../Data/test/Data.Tests/IntegrationTests.cs | 1 - .../Data/test/Data.Tests/ModuleInitializer.cs | 12 +++ .../test/Data.Tests/TypeValidationTests.cs | 1 - .../Data/test/Directory.Build.props | 4 +- .../QueryInstrumentationTests.cs | 1 - .../ServerInstrumentationTests.cs | 1 - .../Diagnostics/test/Directory.Build.props | 1 + .../InlineFragmentOperationRewriterTests.txt | 1 - .../src/Core/HotChocolate.Fusion.csproj | 2 +- .../CommandLine.Tests/ComposeCommandTests.cs | 1 - .../CommandLine.Tests/ModuleInitializer.cs | 12 +++ .../CommandLine.Tests/PackageHelperTests.cs | 1 - .../Composition.Tests/CompositionTestBase.cs | 1 - .../test/Composition.Tests/DataTypesTests.cs | 1 - .../test/Composition.Tests/DirectiveTests.cs | 1 - .../Composition.Tests/ModuleInitializer.cs | 12 +++ .../test/Composition.Tests/RequireTests.cs | 1 - .../ResolverCompositionTests.cs | 1 - .../test/Composition.Tests/ResolverTests.cs | 1 - .../Fusion/test/Composition.Tests/TagTests.cs | 1 - .../test/Core.Tests/AutomaticMockingTests.cs | 1 - .../Core.Tests/ConfigurationRewriterTests.cs | 1 - .../Fusion/test/Core.Tests/DataTests.cs | 1 - .../test/Core.Tests/DemoIntegrationTests.cs | 1 - .../test/Core.Tests/EventStreamTests.cs | 1 - .../Fusion/test/Core.Tests/FileUploadTests.cs | 1 - .../Fusion/test/Core.Tests/InterfaceTests.cs | 1 - .../test/Core.Tests/IntrospectionTests.cs | 1 - .../test/Core.Tests/ModuleInitializer.cs | 13 +++ .../test/Core.Tests/RequestPipelineTests.cs | 1 - .../test/Core.Tests/RequestPlannerTests.cs | 1 - .../test/Core.Tests/SourceSchemaTests.cs | 1 - .../test/Core.Tests/SubgraphErrorTests.cs | 1 - .../Fusion/test/Core.Tests/TestHelper.cs | 1 - .../Fusion/test/Core.Tests/UnionTests.cs | 1 - .../Fusion/test/Directory.Build.props | 6 +- .../Fusion/test/Shared/Authors/Book.cs | 1 - .../Shared/Extensions/SnapshotExtensions.cs | 1 - .../HotChocolate.Fusion.Tests.Shared.csproj | 1 + .../Language/test/Directory.Build.props | 5 +- .../ArgumentNodeTests.cs | 1 - .../DirectiveDefinitionNodeTests.cs | 1 - .../SchemaCoordinateTests.cs | 1 - .../SelectionSetNodeTests.cs | 1 - .../Utilities/QuerySyntaxPrinterTests.cs | 1 - .../Utilities/SchemaSyntaxPrinterTests.cs | 1 - .../VariableDefinitionNodeTests.cs | 1 - .../test/Language.Tests/ModuleInitializer.cs | 12 +++ .../Parser/BlockStringTokenReaderTests.cs | 1 - .../Parser/DirectiveParserTests.cs | 1 - .../Parser/GraphQLParserSyntaxTests.cs | 1 - .../Parser/GraphQLRequestParserTests.cs | 1 - .../Parser/KitchenSinkParserTests.cs | 1 - .../Parser/NumberTokenReaderTests.cs | 1 - .../Parser/PunctuatorTokenReaderTests.cs | 1 - .../Language.Tests/Parser/QueryParserTests.cs | 1 - .../test/Language.Tests/Parser/ReaderTests.cs | 1 - .../Parser/SchemCoordinateParserTests.cs | 1 - .../Parser/SchemaParserTests.cs | 1 - .../Utilities/SyntaxPrinterTests.cs | 1 - .../Visitors/SyntaxRewriterTests.cs | 1 - .../MD5DocumentHashProviderTests.cs | 2 - .../Sha1DocumentHashProviderTests.cs | 2 - .../Sha256DocumentHashProviderTests.cs | 2 - .../FilteringAndPaging.cs | 1 - .../IntegrationTests.cs | 1 - .../ModuleInitializer.cs | 12 +++ .../QueryableFilterVisitorBooleanTests.cs | 1 - .../QueryableFilterVisitorComparableTests.cs | 1 - .../QueryableFilterVisitorEnumTests.cs | 1 - .../QueryableFilterVisitorExecutableTests.cs | 1 - .../QueryableFilterVisitorInterfacesTests.cs | 1 - .../QueryableFilterVisitorListTests.cs | 1 - .../QueryableFilterVisitorObjectTests.cs | 1 - .../QueryableFilterVisitorStringTests.cs | 1 - .../ModuleInitializer.cs | 12 +++ .../QueryableSortVisitorBooleanTests.cs | 1 - .../QueryableSortVisitorComparableTests.cs | 1 - .../QueryableSortVisitorEnumTests.cs | 1 - .../QueryableSortVisitorExecutableTests.cs | 1 - .../QueryableSortVisitorExpressionTests.cs | 1 - .../QueryableSortVisitorObjectTests.cs | 1 - .../QueryableSortVisitorStringTests.cs | 1 - .../Marten/test/Directory.Build.props | 4 +- .../ModuleInitializer.cs | 12 +++ .../MongoDbAggregateFluentTests.cs | 1 - .../MongoDbCollectionTests.cs | 1 - .../MongoDbFilterCombinatorTests.cs | 1 - .../MongoDbFilterVisitorBooleanTests.cs | 1 - .../MongoDbFilterVisitorComparableTests.cs | 1 - .../MongoDbFilterVisitorDateOnlyTests.cs | 1 - .../MongoDbFilterVisitorEnumTests.cs | 1 - .../MongoDbFilterVisitorListTests.cs | 1 - .../MongoDbFilterVisitorObjectIdTests.cs | 1 - .../MongoDbFilterVisitorObjectTests.cs | 1 - .../MongoDbFilterVisitorStringTests.cs | 1 - .../MongoDbFilterVisitorTimeOnlyTests.cs | 1 - .../MongoDbFindFluentTests.cs | 1 - ...MongoDbCursorPagingAggregateFluentTests.cs | 1 - .../MongoDbCursorPagingFindFluentTests.cs | 1 - .../MongoDbOffsetPagingAggregateTests.cs | 1 - .../MongoDbOffsetPagingFindFluentTests.cs | 1 - .../MongoDbRelayTests.cs | 1 - .../MongoDbProjectionObjectsTests.cs | 1 - ...ongoDbProjectionVisitorIsProjectedTests.cs | 1 - .../MongoDbProjectionVisitorPagingTests.cs | 1 - .../MongoDbProjectionVisitorScalarTests.cs | 1 - .../MongoDbAggregateFluentTests.cs | 1 - .../MongoDbCollectionTests.cs | 1 - .../MongoDbFindFluentTests.cs | 1 - .../MongoDbSortVisitorBooleanTests.cs | 1 - .../MongoDbSortVisitorComparableTests.cs | 1 - .../MongoDbSortVisitorEnumTests.cs | 1 - .../MongoDbSortVisitorObjectTests.cs | 1 - .../MongoDbSortVisitorStringTests.cs | 1 - .../MongoDb/test/Directory.Build.props | 4 +- .../test/Types.MongoDb/BsonTypeTests.cs | 1 - .../test/Types.MongoDb/ModuleInitializer.cs | 12 +++ .../test/Types.MongoDb/ObjectIdTypeTests.cs | 1 - .../OpenApi/test/Directory.Build.props | 1 + .../IntegrationTests.cs | 1 - .../OpenApiMutableSchemaBuilderTests.cs | 1 - .../Pagination/test/Directory.Build.props | 4 +- ...te.Pagination.EntityFramework.Tests.csproj | 1 + .../InterfaceIntegrationTests.cs | 1 - .../ModuleInitializer.cs | 12 +++ .../PagingHelperIntegrationTests.cs | 1 - .../PagingHelperTests.cs | 1 - .../test/Directory.Build.props | 1 + ...FileSystemOperationDocumentStorageTests.cs | 1 - .../IntegrationTests.cs | 1 - .../ServiceCollectionTests.cs | 1 - .../IntegrationTests.cs | 1 - .../IntegrationTests.cs | 1 - .../RedisOperationDocumentStorageTests.cs | 1 - .../ServiceCollectionExtensionsTests.cs | 1 - .../ConventionTests.cs | 2 - .../Data.Raven.Filters.Tests.csproj | 1 + .../FilteringAndPaging.cs | 1 - .../ModuleInitializer.cs | 12 +++ .../QueryableFilterVisitorBooleanTests.cs | 1 - .../QueryableFilterVisitorComparableTests.cs | 1 - .../QueryableFilterVisitorEnumTests.cs | 1 - .../QueryableFilterVisitorExecutableTests.cs | 1 - .../QueryableFilterVisitorInterfacesTests.cs | 1 - .../QueryableFilterVisitorListTests.cs | 1 - .../QueryableFilterVisitorObjectTests.cs | 1 - .../QueryableFilterVisitorStringTests.cs | 1 - ...otChocolate.Data.Raven.Paging.Tests.csproj | 1 + .../RavenAsyncDocumentQueryTests.cs | 1 - .../RavenDocumentQueryTests.cs | 1 - ...colate.Data.Raven.Projections.Tests.csproj | 1 + .../QueryableFirstOrDefaultTests.cs | 1 - .../QueryableProjectionFilterTests.cs | 1 - .../QueryableProjectionHashSetTest.cs | 1 - .../QueryableProjectionInterfaceTypeTests.cs | 1 - .../QueryableProjectionNestedTests.cs | 1 - .../QueryableProjectionSetTest.cs | 1 - .../QueryableProjectionSortedSetTest.cs | 1 - .../QueryableProjectionSortingTests.cs | 1 - .../QueryableProjectionUnionTypeTests.cs | 1 - ...eryableProjectionVisitorExecutableTests.cs | 1 - ...ryableProjectionVisitorIsProjectedTests.cs | 1 - .../QueryableProjectionVisitorPagingTests.cs | 1 - .../QueryableProjectionVisitorScalarTests.cs | 1 - .../QueryableSingleOrDefaultTests.cs | 1 - .../ModuleInitializer.cs | 12 +++ .../QueryableSortVisitorBooleanTests.cs | 1 - .../QueryableSortVisitorComparableTests.cs | 1 - .../QueryableSortVisitorEnumTests.cs | 1 - .../QueryableSortVisitorExecutableTests.cs | 1 - .../QueryableSortVisitorExpressionTests.cs | 1 - .../QueryableSortVisitorObjectTests.cs | 1 - .../QueryableSortVisitorStringTests.cs | 1 - .../Data.Raven.Tests/AnnotationBasedTests.cs | 1 - .../Data.Raven.Tests/Data.Raven.Tests.csproj | 1 + .../Data.Raven.Tests/DataExtensionsTests.cs | 1 - .../test/Data.Raven.Tests/FluentApiTests.cs | 1 - .../Data.Raven.Tests/ModuleInitializer.cs | 12 +++ .../Raven/test/Directory.Build.props | 4 +- .../Skimmed/test/Directory.Build.props | 1 + .../test/Skimmed.Tests/RefactoringTests.cs | 1 - .../Skimmed.Tests/SchemaFormatterTests.cs | 1 - .../test/Skimmed.Tests/ToStringTests.cs | 1 - .../QueryableFilterVisitorContainsTests.cs | 1 - .../QueryableFilterVisitorDistanceTests.cs | 1 - .../QueryableFilterVisitorIntersectTests.cs | 1 - .../QueryableFilterVisitorOverlapsTests.cs | 1 - .../QueryableFilterVisitorTouchesTests.cs | 1 - .../QueryableFilterVisitorWithinTests.cs | 1 - .../QueryableFilterVisitorTests.cs | 1 - .../Data.Tests/GeometryFilterTypeTests.cs | 1 - .../Spatial/test/Directory.Build.props | 4 +- .../GeoJsonLineStringInputTests.cs | 1 - .../GeoJsonLineStringSerializerTests.cs | 1 - .../Types.Tests/GeoJsonLineStringTypeTests.cs | 1 - .../GeoJsonMultiLineStringInputTests.cs | 1 - .../GeoJsonMultiLineStringSerializerTests.cs | 1 - .../GeoJsonMultiLineStringTypeTests.cs | 1 - .../GeoJsonMultiPointInputTests.cs | 1 - .../GeoJsonMultiPointSerializerTests.cs | 1 - .../Types.Tests/GeoJsonMultiPointTypeTests.cs | 1 - .../GeoJsonMultiPolygonInputTests.cs | 1 - .../GeoJsonMultiPolygonSerializerTests.cs | 1 - .../GeoJsonMultiPolygonTypeTests.cs | 1 - .../Types.Tests/GeoJsonPointInputTests.cs | 1 - .../GeoJsonPointSerializerTests.cs | 1 - .../test/Types.Tests/GeoJsonPointTypeTests.cs | 1 - .../Types.Tests/GeoJsonPolygonInputTests.cs | 1 - .../GeoJsonPolygonSerializerTests.cs | 1 - .../Types.Tests/GeoJsonPolygonTypeTests.cs | 1 - .../test/Types.Tests/ModuleInitializer.cs | 12 +++ .../TransformationIntegrationTests.cs | 1 - .../Utilities/test/Directory.Build.props | 4 + .../IntrospectionClientTests.cs | 1 - .../IntrospectionFormatterTests.cs | 1 - .../IntrospectionQueryBuilderTests.cs | 1 - .../Core.Tests/Json/JsonErrorParserTests.cs | 1 - .../JsonOperationRequestSerializerTests.cs | 1 - .../Client/test/Directory.Build.props | 1 + .../HttpConnectionTests.cs | 1 - .../IntegrationTests.cs | 1 - .../Messaging/OperationMessagesTest.cs | 1 - .../GraphQLWebSocketMessageParserTests.cs | 1 - .../GraphQLWebSocketProtocolTests.cs | 1 - .../GraphQLWebSocketWriterExtensionTests.cs | 1 - .../SocketMessageWriterTest.cs | 1 - .../WebSocketClientTests.cs | 2 - .../WebSocketConnectionTests.cs | 1 - .../Configuration.Tests/FileContentsTests.cs | 1 - .../Configuration.Tests/GraphQLConfigTests.cs | 1 - .../Tooling/test/Directory.Build.props | 4 + 648 files changed, 843 insertions(+), 755 deletions(-) create mode 100644 src/CookieCrumble/src/CookieCrumble.Fusion/CookieCrumble.Fusion.csproj create mode 100644 src/CookieCrumble/src/CookieCrumble.Fusion/CookieCrumbleFusion.cs create mode 100644 src/CookieCrumble/src/CookieCrumble.Fusion/Extensions/SnapshotExtensions.cs rename src/CookieCrumble/src/{CookieCrumble => CookieCrumble.Fusion}/Formatters/QueryPlanSnapshotValueFormatter.cs (79%) create mode 100644 src/CookieCrumble/src/CookieCrumble.Fusion/Formatters/SnapshotValueFormatters.cs create mode 100644 src/CookieCrumble/src/CookieCrumble.HotChocolate/CookieCrumble.HotChocolate.csproj create mode 100644 src/CookieCrumble/src/CookieCrumble.HotChocolate/CookieCrumbleHotChocolate.cs rename src/CookieCrumble/src/{CookieCrumble => CookieCrumble.HotChocolate}/Extensions/CommonTestExtensions.cs (96%) create mode 100644 src/CookieCrumble/src/CookieCrumble.HotChocolate/Extensions/SnapshotExtensions.cs rename src/CookieCrumble/src/{CookieCrumble => CookieCrumble.HotChocolate}/Formatters/ExecutionResultSnapshotValueFormatter.cs (98%) rename src/CookieCrumble/src/{CookieCrumble => CookieCrumble.HotChocolate}/Formatters/GraphQLHttpResponseFormatter.cs (96%) rename src/CookieCrumble/src/{CookieCrumble => CookieCrumble.HotChocolate}/Formatters/GraphQLSnapshotValueFormatter.cs (93%) rename src/CookieCrumble/src/{CookieCrumble => CookieCrumble.HotChocolate}/Formatters/OperationResultSnapshotValueFormatter.cs (94%) rename src/CookieCrumble/src/{CookieCrumble => CookieCrumble.HotChocolate}/Formatters/SchemaErrorSnapshotValueFormatter.cs (91%) rename src/CookieCrumble/src/{CookieCrumble => CookieCrumble.HotChocolate}/Formatters/SchemaSnapshotValueFormatter.cs (77%) create mode 100644 src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/SnapshotValueFormatters.cs delete mode 100644 src/CookieCrumble/test/CookieCrumble.Tests/__snapshots__/SnapshotTests.SnapshotBuilder_GraphQL_Segment.snap create mode 100644 src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/AspNetCore/test/AspNetCore.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/AspNetCore/test/Transport.Http.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Core/test/Abstractions.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Core/test/Authorization.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Core/test/Execution.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Core/test/Fetching.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Core/test/Subscriptions.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Core/test/Types.Analyzers.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Core/test/Types.CursorPagination.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Core/test/Types.Json.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Core/test/Types.Mutations.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Core/test/Types.OffsetPagination.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Core/test/Types.Queries.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Core/test/Types.Records.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Core/test/Types.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Data/test/Data.EntityFramework.Pagination.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Data/test/Data.EntityFramework.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Data/test/Data.Filters.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Data/test/Data.Projections.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Data/test/Data.Sorting.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Data/test/Data.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Fusion/test/CommandLine.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Fusion/test/Composition.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Fusion/test/Core.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Language/test/Language.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/MongoDb/test/Types.MongoDb/ModuleInitializer.cs create mode 100644 src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Raven/test/Data.Raven.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Spatial/test/Types.Tests/ModuleInitializer.cs diff --git a/src/CookieCrumble/CookieCrumble.sln b/src/CookieCrumble/CookieCrumble.sln index e6647f68713..daaabce27ea 100644 --- a/src/CookieCrumble/CookieCrumble.sln +++ b/src/CookieCrumble/CookieCrumble.sln @@ -1,36 +1,50 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.30114.105 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{2465C122-714C-4D0A-A24D-D9C22A25D73A}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CookieCrumble", "src\CookieCrumble\CookieCrumble.csproj", "{8E71FA9B-8352-4675-A9B4-A934E40AF9E0}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{EB8F1D90-60D6-48FA-9744-D4180A0E4AC0}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CookieCrumble.Tests", "test\CookieCrumble.Tests\CookieCrumble.Tests.csproj", "{844E7501-7ED6-4548-8E99-D8E50D4F39A4}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {8E71FA9B-8352-4675-A9B4-A934E40AF9E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8E71FA9B-8352-4675-A9B4-A934E40AF9E0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8E71FA9B-8352-4675-A9B4-A934E40AF9E0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8E71FA9B-8352-4675-A9B4-A934E40AF9E0}.Release|Any CPU.Build.0 = Release|Any CPU - {844E7501-7ED6-4548-8E99-D8E50D4F39A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {844E7501-7ED6-4548-8E99-D8E50D4F39A4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {844E7501-7ED6-4548-8E99-D8E50D4F39A4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {844E7501-7ED6-4548-8E99-D8E50D4F39A4}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {8E71FA9B-8352-4675-A9B4-A934E40AF9E0} = {2465C122-714C-4D0A-A24D-D9C22A25D73A} - {844E7501-7ED6-4548-8E99-D8E50D4F39A4} = {EB8F1D90-60D6-48FA-9744-D4180A0E4AC0} - EndGlobalSection -EndGlobal + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30114.105 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{2465C122-714C-4D0A-A24D-D9C22A25D73A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CookieCrumble", "src\CookieCrumble\CookieCrumble.csproj", "{8E71FA9B-8352-4675-A9B4-A934E40AF9E0}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CookieCrumble.Fusion", "src\CookieCrumble.Fusion\CookieCrumble.Fusion.csproj", "{E6862862-986B-4A67-8703-49C70051DBDC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CookieCrumble.HotChocolate", "src\CookieCrumble.HotChocolate\CookieCrumble.HotChocolate.csproj", "{9B57E4BC-E62A-4B7B-94FB-462C5F92D35B}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{EB8F1D90-60D6-48FA-9744-D4180A0E4AC0}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CookieCrumble.Tests", "test\CookieCrumble.Tests\CookieCrumble.Tests.csproj", "{844E7501-7ED6-4548-8E99-D8E50D4F39A4}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8E71FA9B-8352-4675-A9B4-A934E40AF9E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8E71FA9B-8352-4675-A9B4-A934E40AF9E0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8E71FA9B-8352-4675-A9B4-A934E40AF9E0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8E71FA9B-8352-4675-A9B4-A934E40AF9E0}.Release|Any CPU.Build.0 = Release|Any CPU + {E6862862-986B-4A67-8703-49C70051DBDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E6862862-986B-4A67-8703-49C70051DBDC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E6862862-986B-4A67-8703-49C70051DBDC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E6862862-986B-4A67-8703-49C70051DBDC}.Release|Any CPU.Build.0 = Release|Any CPU + {9B57E4BC-E62A-4B7B-94FB-462C5F92D35B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9B57E4BC-E62A-4B7B-94FB-462C5F92D35B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9B57E4BC-E62A-4B7B-94FB-462C5F92D35B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9B57E4BC-E62A-4B7B-94FB-462C5F92D35B}.Release|Any CPU.Build.0 = Release|Any CPU + {844E7501-7ED6-4548-8E99-D8E50D4F39A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {844E7501-7ED6-4548-8E99-D8E50D4F39A4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {844E7501-7ED6-4548-8E99-D8E50D4F39A4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {844E7501-7ED6-4548-8E99-D8E50D4F39A4}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {8E71FA9B-8352-4675-A9B4-A934E40AF9E0} = {2465C122-714C-4D0A-A24D-D9C22A25D73A} + {E6862862-986B-4A67-8703-49C70051DBDC} = {2465C122-714C-4D0A-A24D-D9C22A25D73A} + {9B57E4BC-E62A-4B7B-94FB-462C5F92D35B} = {2465C122-714C-4D0A-A24D-D9C22A25D73A} + {844E7501-7ED6-4548-8E99-D8E50D4F39A4} = {EB8F1D90-60D6-48FA-9744-D4180A0E4AC0} + EndGlobalSection +EndGlobal diff --git a/src/CookieCrumble/src/CookieCrumble.Fusion/CookieCrumble.Fusion.csproj b/src/CookieCrumble/src/CookieCrumble.Fusion/CookieCrumble.Fusion.csproj new file mode 100644 index 00000000000..6a667a627f2 --- /dev/null +++ b/src/CookieCrumble/src/CookieCrumble.Fusion/CookieCrumble.Fusion.csproj @@ -0,0 +1,14 @@ + + + + CookieCrumble.Fusion + CookieCrumble.Fusion + true + + + + + + + + diff --git a/src/CookieCrumble/src/CookieCrumble.Fusion/CookieCrumbleFusion.cs b/src/CookieCrumble/src/CookieCrumble.Fusion/CookieCrumbleFusion.cs new file mode 100644 index 00000000000..ac00f245992 --- /dev/null +++ b/src/CookieCrumble/src/CookieCrumble.Fusion/CookieCrumbleFusion.cs @@ -0,0 +1,11 @@ +using CookieCrumble.Fusion.Formatters; + +namespace CookieCrumble.Fusion; + +public static class CookieCrumbleFusion +{ + public static void Initialize() + { + Snapshot.TryRegisterFormatter(SnapshotValueFormatters.QueryPlan); + } +} diff --git a/src/CookieCrumble/src/CookieCrumble.Fusion/Extensions/SnapshotExtensions.cs b/src/CookieCrumble/src/CookieCrumble.Fusion/Extensions/SnapshotExtensions.cs new file mode 100644 index 00000000000..ad4611cd935 --- /dev/null +++ b/src/CookieCrumble/src/CookieCrumble.Fusion/Extensions/SnapshotExtensions.cs @@ -0,0 +1,11 @@ +using CookieCrumble.Fusion.Formatters; + +namespace CookieCrumble.Fusion; + +public static class SnapshotExtensions +{ + public static void TryRegisterFusionFormatters(this Snapshot _) + { + Snapshot.TryRegisterFormatter(SnapshotValueFormatters.QueryPlan); + } +} diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/QueryPlanSnapshotValueFormatter.cs b/src/CookieCrumble/src/CookieCrumble.Fusion/Formatters/QueryPlanSnapshotValueFormatter.cs similarity index 79% rename from src/CookieCrumble/src/CookieCrumble/Formatters/QueryPlanSnapshotValueFormatter.cs rename to src/CookieCrumble/src/CookieCrumble.Fusion/Formatters/QueryPlanSnapshotValueFormatter.cs index 3cc1714bc3b..613dd75ca1d 100644 --- a/src/CookieCrumble/src/CookieCrumble/Formatters/QueryPlanSnapshotValueFormatter.cs +++ b/src/CookieCrumble/src/CookieCrumble.Fusion/Formatters/QueryPlanSnapshotValueFormatter.cs @@ -1,7 +1,8 @@ using System.Buffers; +using CookieCrumble.Formatters; using HotChocolate.Fusion.Execution.Nodes; -namespace CookieCrumble.Formatters; +namespace CookieCrumble.Fusion.Formatters; internal sealed class QueryPlanSnapshotValueFormatter() : SnapshotValueFormatter("json") { diff --git a/src/CookieCrumble/src/CookieCrumble.Fusion/Formatters/SnapshotValueFormatters.cs b/src/CookieCrumble/src/CookieCrumble.Fusion/Formatters/SnapshotValueFormatters.cs new file mode 100644 index 00000000000..1e1879f1fd9 --- /dev/null +++ b/src/CookieCrumble/src/CookieCrumble.Fusion/Formatters/SnapshotValueFormatters.cs @@ -0,0 +1,12 @@ +using CookieCrumble.Formatters; + +namespace CookieCrumble.Fusion.Formatters; + +/// +/// Provides access to well-known snapshot value formatters. +/// +public static class SnapshotValueFormatters +{ + public static ISnapshotValueFormatter QueryPlan { get; } = + new QueryPlanSnapshotValueFormatter(); +} diff --git a/src/CookieCrumble/src/CookieCrumble.HotChocolate/CookieCrumble.HotChocolate.csproj b/src/CookieCrumble/src/CookieCrumble.HotChocolate/CookieCrumble.HotChocolate.csproj new file mode 100644 index 00000000000..2bf135923e2 --- /dev/null +++ b/src/CookieCrumble/src/CookieCrumble.HotChocolate/CookieCrumble.HotChocolate.csproj @@ -0,0 +1,17 @@ + + + + CookieCrumble.HotChocolate + CookieCrumble.HotChocolate + true + + + + + + + + + + + diff --git a/src/CookieCrumble/src/CookieCrumble.HotChocolate/CookieCrumbleHotChocolate.cs b/src/CookieCrumble/src/CookieCrumble.HotChocolate/CookieCrumbleHotChocolate.cs new file mode 100644 index 00000000000..769f9d14257 --- /dev/null +++ b/src/CookieCrumble/src/CookieCrumble.HotChocolate/CookieCrumbleHotChocolate.cs @@ -0,0 +1,16 @@ +using CookieCrumble.HotChocolate.Formatters; + +namespace CookieCrumble.HotChocolate; + +public static class CookieCrumbleHotChocolate +{ + public static void Initialize() + { + Snapshot.TryRegisterFormatter(SnapshotValueFormatters.ExecutionResult); + Snapshot.TryRegisterFormatter(SnapshotValueFormatters.GraphQL); + Snapshot.TryRegisterFormatter(SnapshotValueFormatters.GraphQLHttp); + Snapshot.TryRegisterFormatter(SnapshotValueFormatters.OperationResult); + Snapshot.TryRegisterFormatter(SnapshotValueFormatters.Schema); + Snapshot.TryRegisterFormatter(SnapshotValueFormatters.SchemaError); + } +} diff --git a/src/CookieCrumble/src/CookieCrumble/Extensions/CommonTestExtensions.cs b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Extensions/CommonTestExtensions.cs similarity index 96% rename from src/CookieCrumble/src/CookieCrumble/Extensions/CommonTestExtensions.cs rename to src/CookieCrumble/src/CookieCrumble.HotChocolate/Extensions/CommonTestExtensions.cs index 7d1f851ab12..f9c42de5386 100644 --- a/src/CookieCrumble/src/CookieCrumble/Extensions/CommonTestExtensions.cs +++ b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Extensions/CommonTestExtensions.cs @@ -2,7 +2,7 @@ using HotChocolate.Execution.Configuration; using Microsoft.Extensions.DependencyInjection; -namespace CookieCrumble; +namespace CookieCrumble.HotChocolate; public static class CommonTestExtensions { diff --git a/src/CookieCrumble/src/CookieCrumble.HotChocolate/Extensions/SnapshotExtensions.cs b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Extensions/SnapshotExtensions.cs new file mode 100644 index 00000000000..263be6c8135 --- /dev/null +++ b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Extensions/SnapshotExtensions.cs @@ -0,0 +1,93 @@ +using CookieCrumble.HotChocolate.Formatters; +using HotChocolate; +using HotChocolate.Execution; +using HotChocolate.Language; +using CoreFormatters = CookieCrumble.Formatters.SnapshotValueFormatters; + +namespace CookieCrumble.HotChocolate; + +public static class SnapshotExtensions +{ + public static void MatchSnapshot( + this ISyntaxNode? value, + string? postFix = null) + => Snapshot.Match( + value, + postFix, + extension: ".graphql", + formatter: SnapshotValueFormatters.GraphQL); + + public static void MatchSnapshot( + this ISchema? value, + string? postFix = null) + => Snapshot.Match( + value, + postFix, + extension: ".graphql", + formatter: SnapshotValueFormatters.Schema); + + public static void MatchSnapshot( + this IExecutable? value, + string? postFix = null) + => Snapshot.Match( + value, + postFix, + formatter: CoreFormatters.PlainText); + + public static Snapshot AddResult( + this Snapshot snapshot, + IExecutionResult result, + string? name = null) + { + if (result.ContextData is null) + { + snapshot.Add(result.ToJson(), name); + return snapshot; + } + + snapshot.Add( + result.ToJson(), + string.IsNullOrEmpty(name) + ? "Result:" + : $"{name} Result:"); + + if (result.ContextData.TryGetValue("query", out var queryResult) && + queryResult is string queryString && + !string.IsNullOrWhiteSpace(queryString)) + { + snapshot.Add( + queryString, + string.IsNullOrEmpty(name) + ? "Query:" + : $"{name} Query:", + CoreFormatters.PlainText); + } + + if (result.ContextData.TryGetValue("sql", out var sql)) + { + snapshot.Add( + sql, + string.IsNullOrEmpty(name) + ? "SQL:" + : $"{name} SQL:", + CoreFormatters.PlainText); + } + + if (result.ContextData.TryGetValue("expression", out var expression)) + { + snapshot.Add( + expression, + string.IsNullOrEmpty(name) + ? "Expression:" + : $"{name} Expression:", + CoreFormatters.PlainText); + } + + if (result.ContextData.TryGetValue("ex", out var exception)) + { + snapshot.Add(exception, "Exception:"); + } + + return snapshot; + } +} diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/ExecutionResultSnapshotValueFormatter.cs b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/ExecutionResultSnapshotValueFormatter.cs similarity index 98% rename from src/CookieCrumble/src/CookieCrumble/Formatters/ExecutionResultSnapshotValueFormatter.cs rename to src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/ExecutionResultSnapshotValueFormatter.cs index 99dd22cbdc5..33d86936893 100644 --- a/src/CookieCrumble/src/CookieCrumble/Formatters/ExecutionResultSnapshotValueFormatter.cs +++ b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/ExecutionResultSnapshotValueFormatter.cs @@ -1,10 +1,11 @@ using System.Buffers; using System.Text.Json; using System.Text.Json.Nodes; +using CookieCrumble.Formatters; using HotChocolate; using HotChocolate.Execution; -namespace CookieCrumble.Formatters; +namespace CookieCrumble.HotChocolate.Formatters; internal sealed class ExecutionResultSnapshotValueFormatter : SnapshotValueFormatter diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/GraphQLHttpResponseFormatter.cs b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/GraphQLHttpResponseFormatter.cs similarity index 96% rename from src/CookieCrumble/src/CookieCrumble/Formatters/GraphQLHttpResponseFormatter.cs rename to src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/GraphQLHttpResponseFormatter.cs index b58c36e06e1..9f0744914a3 100644 --- a/src/CookieCrumble/src/CookieCrumble/Formatters/GraphQLHttpResponseFormatter.cs +++ b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/GraphQLHttpResponseFormatter.cs @@ -1,9 +1,10 @@ using System.Buffers; using System.Net.Http.Headers; using System.Text.Json; +using CookieCrumble.Formatters; using Microsoft.AspNetCore.WebUtilities; -namespace CookieCrumble.Formatters; +namespace CookieCrumble.HotChocolate.Formatters; internal sealed class GraphQLHttpResponseFormatter : SnapshotValueFormatter { diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/GraphQLSnapshotValueFormatter.cs b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/GraphQLSnapshotValueFormatter.cs similarity index 93% rename from src/CookieCrumble/src/CookieCrumble/Formatters/GraphQLSnapshotValueFormatter.cs rename to src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/GraphQLSnapshotValueFormatter.cs index e4e996963bb..18f7a3b5ad5 100644 --- a/src/CookieCrumble/src/CookieCrumble/Formatters/GraphQLSnapshotValueFormatter.cs +++ b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/GraphQLSnapshotValueFormatter.cs @@ -1,8 +1,9 @@ using System.Buffers; +using CookieCrumble.Formatters; using HotChocolate.Language; using HotChocolate.Language.Utilities; -namespace CookieCrumble.Formatters; +namespace CookieCrumble.HotChocolate.Formatters; internal sealed class GraphQLSnapshotValueFormatter : SnapshotValueFormatter { diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/OperationResultSnapshotValueFormatter.cs b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/OperationResultSnapshotValueFormatter.cs similarity index 94% rename from src/CookieCrumble/src/CookieCrumble/Formatters/OperationResultSnapshotValueFormatter.cs rename to src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/OperationResultSnapshotValueFormatter.cs index f2e75f40756..57bcc42bec8 100644 --- a/src/CookieCrumble/src/CookieCrumble/Formatters/OperationResultSnapshotValueFormatter.cs +++ b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/OperationResultSnapshotValueFormatter.cs @@ -1,8 +1,9 @@ using System.Buffers; using System.Text.Json; +using CookieCrumble.Formatters; using HotChocolate.Transport; -namespace CookieCrumble.Formatters; +namespace CookieCrumble.HotChocolate.Formatters; internal sealed class OperationResultSnapshotValueFormatter : SnapshotValueFormatter { diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/SchemaErrorSnapshotValueFormatter.cs b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/SchemaErrorSnapshotValueFormatter.cs similarity index 91% rename from src/CookieCrumble/src/CookieCrumble/Formatters/SchemaErrorSnapshotValueFormatter.cs rename to src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/SchemaErrorSnapshotValueFormatter.cs index 4d226e74e8c..8531deb4594 100644 --- a/src/CookieCrumble/src/CookieCrumble/Formatters/SchemaErrorSnapshotValueFormatter.cs +++ b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/SchemaErrorSnapshotValueFormatter.cs @@ -1,7 +1,8 @@ using System.Buffers; +using CookieCrumble.Formatters; using HotChocolate; -namespace CookieCrumble.Formatters; +namespace CookieCrumble.HotChocolate.Formatters; internal sealed class SchemaErrorSnapshotValueFormatter : SnapshotValueFormatter diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/SchemaSnapshotValueFormatter.cs b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/SchemaSnapshotValueFormatter.cs similarity index 77% rename from src/CookieCrumble/src/CookieCrumble/Formatters/SchemaSnapshotValueFormatter.cs rename to src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/SchemaSnapshotValueFormatter.cs index c0a4e31138e..707d210399a 100644 --- a/src/CookieCrumble/src/CookieCrumble/Formatters/SchemaSnapshotValueFormatter.cs +++ b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/SchemaSnapshotValueFormatter.cs @@ -1,7 +1,8 @@ using System.Buffers; +using CookieCrumble.Formatters; using HotChocolate; -namespace CookieCrumble.Formatters; +namespace CookieCrumble.HotChocolate.Formatters; internal sealed class SchemaSnapshotValueFormatter() : SnapshotValueFormatter("graphql") { diff --git a/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/SnapshotValueFormatters.cs b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/SnapshotValueFormatters.cs new file mode 100644 index 00000000000..2e859b1bca8 --- /dev/null +++ b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/SnapshotValueFormatters.cs @@ -0,0 +1,27 @@ +using CookieCrumble.Formatters; + +namespace CookieCrumble.HotChocolate.Formatters; + +/// +/// Provides access to well-known snapshot value formatters. +/// +public static class SnapshotValueFormatters +{ + public static ISnapshotValueFormatter ExecutionResult { get; } = + new ExecutionResultSnapshotValueFormatter(); + + public static ISnapshotValueFormatter GraphQL { get; } = + new GraphQLSnapshotValueFormatter(); + + public static ISnapshotValueFormatter GraphQLHttp { get; } = + new GraphQLHttpResponseFormatter(); + + public static ISnapshotValueFormatter OperationResult { get; } = + new OperationResultSnapshotValueFormatter(); + + public static ISnapshotValueFormatter Schema { get; } = + new SchemaSnapshotValueFormatter(); + + public static ISnapshotValueFormatter SchemaError { get; } = + new SchemaErrorSnapshotValueFormatter(); +} diff --git a/src/CookieCrumble/src/CookieCrumble/CookieCrumble.csproj b/src/CookieCrumble/src/CookieCrumble/CookieCrumble.csproj index 8aab1c4b070..d5299abd1f9 100644 --- a/src/CookieCrumble/src/CookieCrumble/CookieCrumble.csproj +++ b/src/CookieCrumble/src/CookieCrumble/CookieCrumble.csproj @@ -14,11 +14,4 @@ - - - - - - - diff --git a/src/CookieCrumble/src/CookieCrumble/Extensions/SnapshotExtensions.cs b/src/CookieCrumble/src/CookieCrumble/Extensions/SnapshotExtensions.cs index 9d958796d83..526b1863812 100644 --- a/src/CookieCrumble/src/CookieCrumble/Extensions/SnapshotExtensions.cs +++ b/src/CookieCrumble/src/CookieCrumble/Extensions/SnapshotExtensions.cs @@ -1,7 +1,4 @@ using CookieCrumble.Formatters; -using HotChocolate; -using HotChocolate.Execution; -using HotChocolate.Language; namespace CookieCrumble; @@ -32,87 +29,4 @@ public static void MatchMarkdownSnapshot( public static void MatchMarkdownSnapshot(this Snapshot value) => value.MatchMarkdown(); - - public static void MatchSnapshot( - this ISyntaxNode? value, - string? postFix = null) - => Snapshot.Match( - value, - postFix, - extension: ".graphql", - formatter: SnapshotValueFormatters.GraphQL); - - public static void MatchSnapshot( - this ISchema? value, - string? postFix = null) - => Snapshot.Match( - value, - postFix, - extension: ".graphql", - formatter: SnapshotValueFormatters.Schema); - - public static void MatchSnapshot( - this IExecutable? value, - string? postFix = null) - => Snapshot.Match( - value, - postFix, - formatter: SnapshotValueFormatters.PlainText); - - public static Snapshot AddResult( - this Snapshot snapshot, - IExecutionResult result, - string? name = null) - { - if (result.ContextData is null) - { - snapshot.Add(result.ToJson(), name); - return snapshot; - } - - snapshot.Add( - result.ToJson(), - string.IsNullOrEmpty(name) - ? "Result:" - : $"{name} Result:"); - - if (result.ContextData.TryGetValue("query", out var queryResult) && - queryResult is string queryString && - !string.IsNullOrWhiteSpace(queryString)) - { - snapshot.Add( - queryString, - string.IsNullOrEmpty(name) - ? "Query:" - : $"{name} Query:", - SnapshotValueFormatters.PlainText); - } - - if (result.ContextData.TryGetValue("sql", out var sql)) - { - snapshot.Add( - sql, - string.IsNullOrEmpty(name) - ? "SQL:" - : $"{name} SQL:", - SnapshotValueFormatters.PlainText); - } - - if (result.ContextData.TryGetValue("expression", out var expression)) - { - snapshot.Add( - expression, - string.IsNullOrEmpty(name) - ? "Expression:" - : $"{name} Expression:", - SnapshotValueFormatters.PlainText); - } - - if (result.ContextData.TryGetValue("ex", out var exception)) - { - snapshot.Add(exception, "Exception:"); - } - - return snapshot; - } } diff --git a/src/CookieCrumble/src/CookieCrumble/Formatters/SnapshotValueFormatters.cs b/src/CookieCrumble/src/CookieCrumble/Formatters/SnapshotValueFormatters.cs index 984934901e7..91438cde626 100644 --- a/src/CookieCrumble/src/CookieCrumble/Formatters/SnapshotValueFormatters.cs +++ b/src/CookieCrumble/src/CookieCrumble/Formatters/SnapshotValueFormatters.cs @@ -5,15 +5,6 @@ namespace CookieCrumble.Formatters; /// public static class SnapshotValueFormatters { - public static ISnapshotValueFormatter Schema { get; } = - new SchemaSnapshotValueFormatter(); - - public static ISnapshotValueFormatter GraphQL { get; } = - new GraphQLSnapshotValueFormatter(); - - public static ISnapshotValueFormatter GraphQLHttp { get; } = - new GraphQLHttpResponseFormatter(); - public static ISnapshotValueFormatter Json { get; } = new JsonSnapshotValueFormatter(); diff --git a/src/CookieCrumble/src/CookieCrumble/Snapshot.cs b/src/CookieCrumble/src/CookieCrumble/Snapshot.cs index 231264ed622..1158b37ed68 100644 --- a/src/CookieCrumble/src/CookieCrumble/Snapshot.cs +++ b/src/CookieCrumble/src/CookieCrumble/Snapshot.cs @@ -7,7 +7,6 @@ using System.Text; using CookieCrumble.Formatters; using DiffPlex.DiffBuilder; -using HotChocolate.Utilities; using Xunit; using static System.Collections.Immutable.ImmutableStack; using static System.IO.Path; @@ -23,15 +22,9 @@ public class Snapshot CreateRange(new ISnapshotValueFormatter[] { new PlainTextSnapshotValueFormatter(), - new GraphQLSnapshotValueFormatter(), - new ExecutionResultSnapshotValueFormatter(), - new SchemaSnapshotValueFormatter(), new ExceptionSnapshotValueFormatter(), - new SchemaErrorSnapshotValueFormatter(), new HttpResponseSnapshotValueFormatter(), - new OperationResultSnapshotValueFormatter(), - new JsonElementSnapshotValueFormatter(), - new QueryPlanSnapshotValueFormatter(), + new JsonElementSnapshotValueFormatter() }); private static readonly JsonSnapshotValueFormatter _defaultFormatter = new(); @@ -610,7 +603,7 @@ private string CreateSnapshotFileName() private string CreateMarkdownSnapshotFileName() { - var extension = _extension.EqualsOrdinal(".snap") ? ".md" : _extension; + var extension = _extension.Equals(".snap", StringComparison.Ordinal) ? ".md" : _extension; var fileName = GetFileNameWithoutExtension(_fileName); diff --git a/src/CookieCrumble/test/CookieCrumble.Tests/SnapshotTests.cs b/src/CookieCrumble/test/CookieCrumble.Tests/SnapshotTests.cs index de0958657f3..8131e481a72 100644 --- a/src/CookieCrumble/test/CookieCrumble.Tests/SnapshotTests.cs +++ b/src/CookieCrumble/test/CookieCrumble.Tests/SnapshotTests.cs @@ -1,7 +1,6 @@ using System.Buffers; using System.Text; using CookieCrumble.Formatters; -using HotChocolate.Language; namespace CookieCrumble; @@ -104,15 +103,6 @@ public void SnapshotBuilder_Segment_Custom_Global_Serializer() snapshot.Match(); } - [Fact] - public void SnapshotBuilder_GraphQL_Segment() - { - var snapshot = new Snapshot(); - snapshot.Add(new MyClass { Foo = "def", }); - snapshot.Add(Utf8GraphQLParser.Parse("{ abc }")); - snapshot.Match(); - } - public class MyClass { public string Foo { get; set; } = "Bar"; diff --git a/src/CookieCrumble/test/CookieCrumble.Tests/__snapshots__/SnapshotTests.SnapshotBuilder_GraphQL_Segment.snap b/src/CookieCrumble/test/CookieCrumble.Tests/__snapshots__/SnapshotTests.SnapshotBuilder_GraphQL_Segment.snap deleted file mode 100644 index 5fb1a0da16f..00000000000 --- a/src/CookieCrumble/test/CookieCrumble.Tests/__snapshots__/SnapshotTests.SnapshotBuilder_GraphQL_Segment.snap +++ /dev/null @@ -1,11 +0,0 @@ ---------------- -{ - "Foo": "def" -} ---------------- - ---------------- -{ - abc -} ---------------- diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index cb493e339b7..90e301d4f3b 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -77,6 +77,7 @@ + @@ -101,6 +102,7 @@ + diff --git a/src/GreenDonut/test/Core.Tests/DataLoaderListBatchTests.cs b/src/GreenDonut/test/Core.Tests/DataLoaderListBatchTests.cs index 4c59a2d7363..c3e58e982c5 100644 --- a/src/GreenDonut/test/Core.Tests/DataLoaderListBatchTests.cs +++ b/src/GreenDonut/test/Core.Tests/DataLoaderListBatchTests.cs @@ -1,4 +1,3 @@ -using Microsoft.AspNetCore.Components.Web; using Microsoft.Extensions.DependencyInjection; using Xunit; diff --git a/src/GreenDonut/test/Core.Tests/DataLoaderTests.cs b/src/GreenDonut/test/Core.Tests/DataLoaderTests.cs index f733fb01ce5..db807ada9ca 100644 --- a/src/GreenDonut/test/Core.Tests/DataLoaderTests.cs +++ b/src/GreenDonut/test/Core.Tests/DataLoaderTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using Xunit; using Xunit.Abstractions; diff --git a/src/GreenDonut/test/Directory.Build.props b/src/GreenDonut/test/Directory.Build.props index d23e7c4bcef..f703c952745 100644 --- a/src/GreenDonut/test/Directory.Build.props +++ b/src/GreenDonut/test/Directory.Build.props @@ -6,6 +6,10 @@ false + + + + diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/BuiltInTypesSharableTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/BuiltInTypesSharableTests.cs index 81d1626e56e..4da6ae12ad4 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/BuiltInTypesSharableTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/BuiltInTypesSharableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.ApolloFederation.Types; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/AnnotationBased/CertificationTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/AnnotationBased/CertificationTests.cs index 4f716badba2..bdf8eb12cb8 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/AnnotationBased/CertificationTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/AnnotationBased/CertificationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Execution.Processing; using HotChocolate.Language; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/CodeFirst/CertificationTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/CodeFirst/CertificationTests.cs index 18f660ad15e..f77ea7ef860 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/CodeFirst/CertificationTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/CodeFirst/CertificationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Execution.Processing; using HotChocolate.Language; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/ComposeDirectiveTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/ComposeDirectiveTests.cs index c67ea6b4a21..b969cec0266 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/ComposeDirectiveTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/ComposeDirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.ApolloFederation.Types; using HotChocolate.Execution; using HotChocolate.Language; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/ExternalDirectiveTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/ExternalDirectiveTests.cs index 81b6122633a..70bb705506a 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/ExternalDirectiveTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/ExternalDirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.ApolloFederation.Types; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/KeyDirectiveTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/KeyDirectiveTests.cs index 88b64771adb..44b4887c704 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/KeyDirectiveTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/KeyDirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.ApolloFederation.Types; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/Legacy/ExternalDirectiveTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/Legacy/ExternalDirectiveTests.cs index 5f7cff66062..71b4fa722fe 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/Legacy/ExternalDirectiveTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/Legacy/ExternalDirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.ApolloFederation.Types; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/Legacy/KeyDirectiveTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/Legacy/KeyDirectiveTests.cs index c8aad3f54b1..cddfa0b07f3 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/Legacy/KeyDirectiveTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/Legacy/KeyDirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.ApolloFederation.Types; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/Legacy/ProvidesDirectiveTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/Legacy/ProvidesDirectiveTests.cs index f4bb0907ad6..fbe0b3d7922 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/Legacy/ProvidesDirectiveTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/Legacy/ProvidesDirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.ApolloFederation.Types; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/Legacy/RequiresDirectiveTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/Legacy/RequiresDirectiveTests.cs index 95793ff0bee..3c92d6974c9 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/Legacy/RequiresDirectiveTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/Legacy/RequiresDirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.ApolloFederation.Types; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/NonResolvableKeyDirectiveTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/NonResolvableKeyDirectiveTests.cs index 4539c8e4e51..4da41f34fb1 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/NonResolvableKeyDirectiveTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/NonResolvableKeyDirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.ApolloFederation.Types; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/OverrideDirectiveTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/OverrideDirectiveTests.cs index f8ebd904621..49aa91fb3dc 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/OverrideDirectiveTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/OverrideDirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.ApolloFederation.Resolvers; using HotChocolate.ApolloFederation.Types; using HotChocolate.Execution; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/PolicyDirectiveTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/PolicyDirectiveTests.cs index 08de1f09520..e0f6dabc33e 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/PolicyDirectiveTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/PolicyDirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.ApolloFederation.Support; using HotChocolate.ApolloFederation.Types; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/ProvidesDirectiveTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/ProvidesDirectiveTests.cs index e2e2a8b6f0b..aabe271e969 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/ProvidesDirectiveTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/ProvidesDirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.ApolloFederation.Types; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/RequiresDirectiveTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/RequiresDirectiveTests.cs index 1bca6cbf2ed..cb7d0848440 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/RequiresDirectiveTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/RequiresDirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.ApolloFederation.Types; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/RequiresScopesDirectiveTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/RequiresScopesDirectiveTests.cs index 732135a198d..d87109f998d 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/RequiresScopesDirectiveTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/RequiresScopesDirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.ApolloFederation.Support; using HotChocolate.ApolloFederation.Types; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ReferenceResolverAttributeTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ReferenceResolverAttributeTests.cs index b8422995e12..6b7bd89bc83 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ReferenceResolverAttributeTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ReferenceResolverAttributeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.ApolloFederation.Resolvers; using HotChocolate.ApolloFederation.Types; using HotChocolate.Execution; diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ServiceTypeTests.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ServiceTypeTests.cs index 6d7b7dbbe0c..50e3ba0ab38 100644 --- a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ServiceTypeTests.cs +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ServiceTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.ApolloFederation.Types; using HotChocolate.Execution; using HotChocolate.Language; diff --git a/src/HotChocolate/ApolloFederation/test/Directory.Build.props b/src/HotChocolate/ApolloFederation/test/Directory.Build.props index 10887b0cce2..aba3882a0c5 100644 --- a/src/HotChocolate/ApolloFederation/test/Directory.Build.props +++ b/src/HotChocolate/ApolloFederation/test/Directory.Build.props @@ -7,6 +7,7 @@ + diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Opa.Tests/AuthorizationTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Opa.Tests/AuthorizationTests.cs index 191f11e2b55..86a58554872 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Opa.Tests/AuthorizationTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Opa.Tests/AuthorizationTests.cs @@ -1,5 +1,4 @@ using System.Net; -using CookieCrumble; using HotChocolate.AspNetCore.Tests.Utilities; using HotChocolate.Execution.Configuration; using Microsoft.AspNetCore.Builder; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/AuthorizationHandlerTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/AuthorizationHandlerTests.cs index e265ae0bcbf..e61c789ccba 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/AuthorizationHandlerTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/AuthorizationHandlerTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Authorization; using HotChocolate.Execution; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/AuthorizationTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/AuthorizationTests.cs index 159c909fd55..fee4ca57040 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/AuthorizationTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/AuthorizationTests.cs @@ -1,6 +1,5 @@ using System.Net; using System.Security.Claims; -using CookieCrumble; using HotChocolate.AspNetCore.Tests.Utilities; using HotChocolate.Execution.Configuration; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/AuthorizeDirectiveTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/AuthorizeDirectiveTests.cs index e5f18abdbb4..40bf76bfde4 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/AuthorizeDirectiveTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/AuthorizeDirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Authorization; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/AuthorizeSchemaTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/AuthorizeSchemaTests.cs index b91f075e9b9..be582507755 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/AuthorizeSchemaTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/AuthorizeSchemaTests.cs @@ -1,5 +1,4 @@ using System.Security.Claims; -using CookieCrumble; using HotChocolate.Authorization; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/ModuleInitializer.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..179636397e9 --- /dev/null +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Authorization.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.AspNetCore.Authorization; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/RootCommandTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/RootCommandTests.cs index f1d52a4ad8e..7eadef386c5 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/RootCommandTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/RootCommandTests.cs @@ -1,6 +1,5 @@ using System.CommandLine.IO; using System.CommandLine.Parsing; -using CookieCrumble; 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 1b43f9c1b03..9a30fb608a2 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/SchemaCommandTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/SchemaCommandTests.cs @@ -1,6 +1,5 @@ using System.CommandLine.IO; using System.CommandLine.Parsing; -using CookieCrumble; 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 e5edde05eef..dadf56ed2e4 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/SchemaExportCommandTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/SchemaExportCommandTests.cs @@ -1,7 +1,6 @@ using HotChocolate.Types; using System.CommandLine.IO; using System.CommandLine.Parsing; -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Moq; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/CostTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/CostTests.cs index 0c4801cb608..00567963d0d 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/CostTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/CostTests.cs @@ -1,7 +1,6 @@ using System.Net.Http.Json; using System.Text; using System.Text.Json; -using CookieCrumble; using HotChocolate.AspNetCore.Tests.Utilities; namespace HotChocolate.AspNetCore; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/GraphQLOverHttpSpecTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/GraphQLOverHttpSpecTests.cs index 88a93611b15..966599d0b68 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/GraphQLOverHttpSpecTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/GraphQLOverHttpSpecTests.cs @@ -1,6 +1,5 @@ using System.Net; using System.Net.Http.Json; -using CookieCrumble; using HotChocolate.AspNetCore.Serialization; using HotChocolate.AspNetCore.Tests.Utilities; using HotChocolate.Transport; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpGetMiddlewareTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpGetMiddlewareTests.cs index caf27114fd3..175036a5aef 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpGetMiddlewareTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpGetMiddlewareTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using HotChocolate.AspNetCore.Tests.Utilities; using HotChocolate.Execution; using HotChocolate.Language; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpGetSchemaMiddlewareTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpGetSchemaMiddlewareTests.cs index bf8eb8d0f57..942eb322497 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpGetSchemaMiddlewareTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpGetSchemaMiddlewareTests.cs @@ -1,5 +1,4 @@ using System.Net; -using CookieCrumble; using HotChocolate.AspNetCore.Tests.Utilities; using HotChocolate.Execution; using Microsoft.AspNetCore.Builder; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpMultipartMiddlewareTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpMultipartMiddlewareTests.cs index 40a69c395ea..11f67c4367b 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpMultipartMiddlewareTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpMultipartMiddlewareTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.AspNetCore.Tests.Utilities; using Newtonsoft.Json; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpPostMiddlewareTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpPostMiddlewareTests.cs index 2315fc293c1..44938d0a04b 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpPostMiddlewareTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpPostMiddlewareTests.cs @@ -1,6 +1,5 @@ using System.Net.Http.Json; -using CookieCrumble; -using CookieCrumble.Formatters; +using CookieCrumble.HotChocolate.Formatters; using HotChocolate.AspNetCore.Instrumentation; using HotChocolate.AspNetCore.Serialization; using HotChocolate.AspNetCore.Tests.Utilities; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/IntrospectionTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/IntrospectionTests.cs index cb1d0221618..88b2171ec39 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/IntrospectionTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/IntrospectionTests.cs @@ -1,5 +1,4 @@ using System.Net; -using CookieCrumble; using HotChocolate.AspNetCore.Tests.Utilities; using HotChocolate.Transport; using HotChocolate.Transport.Http; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/ModuleInitializer.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..72ca586ccbe --- /dev/null +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.AspNetCore; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/PersistedOperationMiddlewareTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/PersistedOperationMiddlewareTests.cs index 325b12b546c..4eca31dd07d 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/PersistedOperationMiddlewareTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/PersistedOperationMiddlewareTests.cs @@ -2,7 +2,6 @@ using System.Net.Http.Json; using System.Text; using System.Text.Json; -using CookieCrumble; using HotChocolate.AspNetCore.Tests.Utilities; namespace HotChocolate.AspNetCore; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/PersistedOperationTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/PersistedOperationTests.cs index 28270b736f8..7f85d22592e 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/PersistedOperationTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/PersistedOperationTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.AspNetCore.Tests.Utilities; using HotChocolate.Execution; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/Subscriptions/Apollo/WebSocketProtocolTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/Subscriptions/Apollo/WebSocketProtocolTests.cs index 8dbf026d2da..1e092bf3d61 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/Subscriptions/Apollo/WebSocketProtocolTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/Subscriptions/Apollo/WebSocketProtocolTests.cs @@ -1,5 +1,4 @@ using System.Net.WebSockets; -using CookieCrumble; using HotChocolate.AspNetCore.Subscriptions.Protocols; using HotChocolate.AspNetCore.Subscriptions.Protocols.Apollo; using HotChocolate.AspNetCore.Tests.Utilities; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/Subscriptions/GraphQLOverWebSocket/WebSocketProtocolTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/Subscriptions/GraphQLOverWebSocket/WebSocketProtocolTests.cs index eb3da504055..5056fe0c09d 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/Subscriptions/GraphQLOverWebSocket/WebSocketProtocolTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/Subscriptions/GraphQLOverWebSocket/WebSocketProtocolTests.cs @@ -1,5 +1,4 @@ using System.Diagnostics; -using CookieCrumble; using HotChocolate.AspNetCore.Subscriptions.Protocols; using HotChocolate.AspNetCore.Subscriptions.Protocols.GraphQLOverWebSocket; using HotChocolate.AspNetCore.Tests.Utilities; diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/ToolConfigurationFileMiddlewareTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/ToolConfigurationFileMiddlewareTests.cs index 89ae7b4cdd6..0aebee5eaa7 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/ToolConfigurationFileMiddlewareTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/ToolConfigurationFileMiddlewareTests.cs @@ -1,6 +1,5 @@ using System.Net; using System.Net.Http.Headers; -using CookieCrumble; using HotChocolate.AspNetCore.Tests.Utilities; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; diff --git a/src/HotChocolate/AspNetCore/test/Directory.Build.props b/src/HotChocolate/AspNetCore/test/Directory.Build.props index 01f2a7d4ba0..93666881f8d 100644 --- a/src/HotChocolate/AspNetCore/test/Directory.Build.props +++ b/src/HotChocolate/AspNetCore/test/Directory.Build.props @@ -7,11 +7,13 @@ + + - + diff --git a/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/GraphQLHttpClientTests.cs b/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/GraphQLHttpClientTests.cs index e3f04efb626..2ccd454d104 100644 --- a/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/GraphQLHttpClientTests.cs +++ b/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/GraphQLHttpClientTests.cs @@ -1,6 +1,5 @@ using System.Net; using System.Text.Json; -using CookieCrumble; using HotChocolate.AspNetCore.Tests.Utilities; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/ModuleInitializer.cs b/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..0813357d630 --- /dev/null +++ b/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Transport.Http.Tests; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/VariableBatchRequestTests.cs b/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/VariableBatchRequestTests.cs index 4562a0cc1aa..6e5a3773895 100644 --- a/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/VariableBatchRequestTests.cs +++ b/src/HotChocolate/AspNetCore/test/Transport.Http.Tests/VariableBatchRequestTests.cs @@ -1,6 +1,5 @@ using System.Text; using System.Text.Json; -using CookieCrumble; using HotChocolate.AspNetCore.Tests.Utilities; using static HotChocolate.AspNetCore.Tests.Utilities.TestServerExtensions; 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 83fc1f85d15..efeb7aeb920 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 @@ -1,5 +1,4 @@ using System.Text.Json; -using CookieCrumble; using HotChocolate.AspNetCore; using HotChocolate.AspNetCore.Subscriptions; using HotChocolate.AspNetCore.Subscriptions.Protocols; diff --git a/src/HotChocolate/Caching/test/Caching.Tests/CacheControlDirectiveTypeTests.cs b/src/HotChocolate/Caching/test/Caching.Tests/CacheControlDirectiveTypeTests.cs index de7cff50929..ef2283dd8d0 100644 --- a/src/HotChocolate/Caching/test/Caching.Tests/CacheControlDirectiveTypeTests.cs +++ b/src/HotChocolate/Caching/test/Caching.Tests/CacheControlDirectiveTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Types; using Xunit; diff --git a/src/HotChocolate/Caching/test/Caching.Tests/CacheControlTypeInterceptorTests.cs b/src/HotChocolate/Caching/test/Caching.Tests/CacheControlTypeInterceptorTests.cs index ad8edb2139c..7f6ac706f19 100644 --- a/src/HotChocolate/Caching/test/Caching.Tests/CacheControlTypeInterceptorTests.cs +++ b/src/HotChocolate/Caching/test/Caching.Tests/CacheControlTypeInterceptorTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Tests; using HotChocolate.Types; diff --git a/src/HotChocolate/Caching/test/Caching.Tests/HttpCachingTests.cs b/src/HotChocolate/Caching/test/Caching.Tests/HttpCachingTests.cs index 00d3edf9275..78c3ce15e5f 100644 --- a/src/HotChocolate/Caching/test/Caching.Tests/HttpCachingTests.cs +++ b/src/HotChocolate/Caching/test/Caching.Tests/HttpCachingTests.cs @@ -1,6 +1,5 @@ using System.Net.Http.Headers; using System.Text; -using CookieCrumble; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; using Xunit; diff --git a/src/HotChocolate/Caching/test/Caching.Tests/SchemaTests.cs b/src/HotChocolate/Caching/test/Caching.Tests/SchemaTests.cs index 663d58d7e19..7ab1ce1a9c9 100644 --- a/src/HotChocolate/Caching/test/Caching.Tests/SchemaTests.cs +++ b/src/HotChocolate/Caching/test/Caching.Tests/SchemaTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Caching/test/Directory.Build.props b/src/HotChocolate/Caching/test/Directory.Build.props index 812ddc34be9..ef4f2b57628 100644 --- a/src/HotChocolate/Caching/test/Directory.Build.props +++ b/src/HotChocolate/Caching/test/Directory.Build.props @@ -6,6 +6,10 @@ false + + + + diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/OperationDocumentSourceTextTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/OperationDocumentSourceTextTests.cs index b0b6c49e3bf..d312e2f9b9e 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/OperationDocumentSourceTextTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/OperationDocumentSourceTextTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Language.Utilities; diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/OperationDocumentTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/OperationDocumentTests.cs index 413467246ea..b4f6d6e6456 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/OperationDocumentTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/OperationDocumentTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Language.Utilities; diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/OperationResultBuilderTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/OperationResultBuilderTests.cs index 3abf15f7059..7ba4d3aefb4 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/OperationResultBuilderTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/OperationResultBuilderTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Execution; public class OperationResultBuilderTests diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QueryRequestBuilderTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QueryRequestBuilderTests.cs index 2075304ce19..ff347541dcd 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QueryRequestBuilderTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/Execution/QueryRequestBuilderTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Utilities; diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Abstractions.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..cdfd3490d24 --- /dev/null +++ b/src/HotChocolate/Core/test/Abstractions.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/PathTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/PathTests.cs index ad534484ff5..281b84ee994 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/PathTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/PathTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Execution.Instrumentation; public class PathExtensionsTests diff --git a/src/HotChocolate/Core/test/Abstractions.Tests/QueryableExecutableTests.cs b/src/HotChocolate/Core/test/Abstractions.Tests/QueryableExecutableTests.cs index dcc36e4f9c8..f6306586127 100644 --- a/src/HotChocolate/Core/test/Abstractions.Tests/QueryableExecutableTests.cs +++ b/src/HotChocolate/Core/test/Abstractions.Tests/QueryableExecutableTests.cs @@ -1,6 +1,5 @@ using System.Collections; using System.Linq.Expressions; -using CookieCrumble; namespace HotChocolate; diff --git a/src/HotChocolate/Core/test/Authorization.Tests/AnnotationBasedAuthorizationTests.cs b/src/HotChocolate/Core/test/Authorization.Tests/AnnotationBasedAuthorizationTests.cs index 938aea87016..06da7dd256f 100644 --- a/src/HotChocolate/Core/test/Authorization.Tests/AnnotationBasedAuthorizationTests.cs +++ b/src/HotChocolate/Core/test/Authorization.Tests/AnnotationBasedAuthorizationTests.cs @@ -1,5 +1,4 @@ using System.Security.Claims; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Resolvers; using HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Authorization.Tests/CodeFirstAuthorizationTests.cs b/src/HotChocolate/Core/test/Authorization.Tests/CodeFirstAuthorizationTests.cs index 711db8faa6c..1bbc712f646 100644 --- a/src/HotChocolate/Core/test/Authorization.Tests/CodeFirstAuthorizationTests.cs +++ b/src/HotChocolate/Core/test/Authorization.Tests/CodeFirstAuthorizationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Resolvers; using HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Authorization.Tests/HotChocolate.Authorization.Tests.csproj b/src/HotChocolate/Core/test/Authorization.Tests/HotChocolate.Authorization.Tests.csproj index b2b1e854c90..9a3c9b65ffe 100644 --- a/src/HotChocolate/Core/test/Authorization.Tests/HotChocolate.Authorization.Tests.csproj +++ b/src/HotChocolate/Core/test/Authorization.Tests/HotChocolate.Authorization.Tests.csproj @@ -6,6 +6,7 @@ + diff --git a/src/HotChocolate/Core/test/Authorization.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Authorization.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..df8ef60ffe6 --- /dev/null +++ b/src/HotChocolate/Core/test/Authorization.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Authorization; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Core/test/Directory.Build.props b/src/HotChocolate/Core/test/Directory.Build.props index 11f48acab0b..8d7718c8672 100644 --- a/src/HotChocolate/Core/test/Directory.Build.props +++ b/src/HotChocolate/Core/test/Directory.Build.props @@ -7,11 +7,13 @@ + + - + diff --git a/src/HotChocolate/Core/test/Execution.Tests/CodeFirstTests.cs b/src/HotChocolate/Core/test/Execution.Tests/CodeFirstTests.cs index 1d6578c6985..a5255683409 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/CodeFirstTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/CodeFirstTests.cs @@ -1,6 +1,5 @@ using System.Collections; using System.Runtime.CompilerServices; -using CookieCrumble; using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/Core/test/Execution.Tests/DeferTests.cs b/src/HotChocolate/Core/test/Execution.Tests/DeferTests.cs index 19b3556b7e3..7ea7a46cf5d 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/DeferTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/DeferTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.AspNetCore; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; 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 ae2dd27f587..5eff7a80d8f 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,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Tests; using HotChocolate.Types; 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 659e4e82f9b..3691a70d4a6 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,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Execution.Tests/DependencyInjectionTests.cs b/src/HotChocolate/Core/test/Execution.Tests/DependencyInjectionTests.cs index ddafeb6c574..eafb674cfdf 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/DependencyInjectionTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/DependencyInjectionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Tests; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Errors/ErrorBehaviorTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Errors/ErrorBehaviorTests.cs index 22f023e2a14..407c69a297d 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Errors/ErrorBehaviorTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Errors/ErrorBehaviorTests.cs @@ -1,5 +1,4 @@ using System.Diagnostics.CodeAnalysis; -using CookieCrumble; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; using static HotChocolate.Execution.SnapshotHelpers; 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 64ef4ccfe24..57107bf357a 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/DataLoaderTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/DataLoaderTests.cs @@ -1,6 +1,5 @@ using System.Collections.Immutable; using System.Diagnostics.CodeAnalysis; -using CookieCrumble; using GreenDonut; using GreenDonut.DependencyInjection; using HotChocolate.Fetching; 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 8a837e32d41..d0d704b130d 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/UseDataLoaderTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/DataLoader/UseDataLoaderTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using GreenDonut; using HotChocolate.Types; 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 8a60a501125..e97ae1de926 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/InputOutputObjectAreTheSame/InputOutputObjectAreTheSame.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/InputOutputObjectAreTheSame/InputOutputObjectAreTheSame.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; 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 6f3fbf74380..6be8fa940c3 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/ArgumentCoercionTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/ArgumentCoercionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; namespace HotChocolate.Execution.Integration.Spec; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/MutationTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/MutationTests.cs index 6d0224598b6..0ed789050fc 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/MutationTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/Spec/MutationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; 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 c1b8a08a33d..6d9c5b1241a 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/StarWarsCodeFirst/StarWarsCodeFirstTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/StarWarsCodeFirst/StarWarsCodeFirstTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Language; using HotChocolate.Tests; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Integration/TypeConverter/TypeConverterTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Integration/TypeConverter/TypeConverterTests.cs index 6196315c066..a0dcd545d69 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Integration/TypeConverter/TypeConverterTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Integration/TypeConverter/TypeConverterTests.cs @@ -1,5 +1,4 @@ using System.Diagnostics.CodeAnalysis; -using CookieCrumble; using HotChocolate.Tests; using HotChocolate.Types; using HotChocolate.Utilities; diff --git a/src/HotChocolate/Core/test/Execution.Tests/IntrospectionTests.cs b/src/HotChocolate/Core/test/Execution.Tests/IntrospectionTests.cs index eee157cbec7..640cd9d98e7 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/IntrospectionTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/IntrospectionTests.cs @@ -1,7 +1,6 @@ using Microsoft.Extensions.DependencyInjection; using HotChocolate.Configuration; using HotChocolate.Types; -using CookieCrumble; namespace HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Execution.Tests/MiddlewareContextTests.cs b/src/HotChocolate/Core/test/Execution.Tests/MiddlewareContextTests.cs index 6ad477ce7bb..db0fdb24f98 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/MiddlewareContextTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/MiddlewareContextTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution.Processing; using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Execution.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Execution.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..bcdbdac37c5 --- /dev/null +++ b/src/HotChocolate/Core/test/Execution.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Execution; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/ExceptionMiddlewareTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/ExceptionMiddlewareTests.cs index ee5fbf7cdb1..dc9bb6ab145 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/ExceptionMiddlewareTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/ExceptionMiddlewareTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution.Errors; using HotChocolate.Execution.Options; using Moq; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/TimeoutMiddlewareTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/TimeoutMiddlewareTests.cs index 856a5958f13..75ee5affb63 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Pipeline/TimeoutMiddlewareTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Pipeline/TimeoutMiddlewareTests.cs @@ -1,5 +1,4 @@ using System.Runtime.CompilerServices; -using CookieCrumble; using HotChocolate.Tests; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Processing/OperationCompilerTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Processing/OperationCompilerTests.cs index 81a2361e48c..f0d56b24c05 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Processing/OperationCompilerTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Processing/OperationCompilerTests.cs @@ -5,7 +5,6 @@ using HotChocolate.Utilities; using Microsoft.Extensions.DependencyInjection; using Moq; -using CookieCrumble; namespace HotChocolate.Execution.Processing; 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 7ffbab0e5dd..c585f571862 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,3 @@ -using CookieCrumble; - namespace HotChocolate.Execution.Processing; public class ResultBuilderTests diff --git a/src/HotChocolate/Core/test/Execution.Tests/Processing/SelectionIncludeConditionTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Processing/SelectionIncludeConditionTests.cs index 59d680c6765..fa06e7a1626 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Processing/SelectionIncludeConditionTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Processing/SelectionIncludeConditionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Processing/VariableCoercionHelperTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Processing/VariableCoercionHelperTests.cs index a180237c475..603b4c914f9 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Processing/VariableCoercionHelperTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Processing/VariableCoercionHelperTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.StarWars; using HotChocolate.StarWars.Models; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Projections/ProjectableDataLoaderTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Projections/ProjectableDataLoaderTests.cs index 2f504b92102..2cbcce0021a 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Projections/ProjectableDataLoaderTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Projections/ProjectableDataLoaderTests.cs @@ -1,5 +1,4 @@ using System.Linq.Expressions; -using CookieCrumble; using GreenDonut; using GreenDonut.Selectors; using HotChocolate.Execution.Processing; diff --git a/src/HotChocolate/Core/test/Execution.Tests/RequestExecutorTests.cs b/src/HotChocolate/Core/test/Execution.Tests/RequestExecutorTests.cs index cf7be09935a..78add18fba2 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/RequestExecutorTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/RequestExecutorTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Tests; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Execution.Tests/ScalarExecutionErrorTests.cs b/src/HotChocolate/Core/test/Execution.Tests/ScalarExecutionErrorTests.cs index ae570d40361..87d41a3e511 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/ScalarExecutionErrorTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/ScalarExecutionErrorTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Types; using HotChocolate.Tests; diff --git a/src/HotChocolate/Core/test/Execution.Tests/SchemaDirectiveTests.cs b/src/HotChocolate/Core/test/Execution.Tests/SchemaDirectiveTests.cs index b19481e088d..978c9855747 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/SchemaDirectiveTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/SchemaDirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; using HotChocolate.Tests; diff --git a/src/HotChocolate/Core/test/Execution.Tests/SchemaFirstTests.cs b/src/HotChocolate/Core/test/Execution.Tests/SchemaFirstTests.cs index 10514af80cc..5400eef657f 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/SchemaFirstTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/SchemaFirstTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Tests; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Execution.Tests/ScopedContextDataTests.cs b/src/HotChocolate/Core/test/Execution.Tests/ScopedContextDataTests.cs index 41790e949fa..0847586993b 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/ScopedContextDataTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/ScopedContextDataTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Execution; public class ScopedContextDataTests diff --git a/src/HotChocolate/Core/test/Execution.Tests/SemanticNonNullTests.cs b/src/HotChocolate/Core/test/Execution.Tests/SemanticNonNullTests.cs index 48088a0729f..f6cc48d2b01 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/SemanticNonNullTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/SemanticNonNullTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Resolvers; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Execution.Tests/Serialization/MultiPartResponseStreamSerializerTests.cs b/src/HotChocolate/Core/test/Execution.Tests/Serialization/MultiPartResponseStreamSerializerTests.cs index 158c5cd26ec..7730e76fca8 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Serialization/MultiPartResponseStreamSerializerTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/Serialization/MultiPartResponseStreamSerializerTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.StarWars; using Microsoft.Extensions.DependencyInjection; using Moq; diff --git a/src/HotChocolate/Core/test/Execution.Tests/SnapshotHelpers.cs b/src/HotChocolate/Core/test/Execution.Tests/SnapshotHelpers.cs index 594084b5b1f..7912b9e9b74 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/SnapshotHelpers.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/SnapshotHelpers.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Execution; public static class SnapshotHelpers diff --git a/src/HotChocolate/Core/test/Execution.Tests/SourceObjectConversionTests.cs b/src/HotChocolate/Core/test/Execution.Tests/SourceObjectConversionTests.cs index c3debef4242..70e6d67aaa1 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/SourceObjectConversionTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/SourceObjectConversionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Execution.Tests/StreamTests.cs b/src/HotChocolate/Core/test/Execution.Tests/StreamTests.cs index ccd34519ef4..cde7de93255 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/StreamTests.cs +++ b/src/HotChocolate/Core/test/Execution.Tests/StreamTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Execution; public class StreamTests diff --git a/src/HotChocolate/Core/test/Fetching.Tests/AutoCacheDataLoaderTests.cs b/src/HotChocolate/Core/test/Fetching.Tests/AutoCacheDataLoaderTests.cs index 10d709ea8c5..e26b948b5d8 100644 --- a/src/HotChocolate/Core/test/Fetching.Tests/AutoCacheDataLoaderTests.cs +++ b/src/HotChocolate/Core/test/Fetching.Tests/AutoCacheDataLoaderTests.cs @@ -1,5 +1,4 @@ using System.Security.Cryptography.X509Certificates; -using CookieCrumble; using GreenDonut; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Fetching.Tests/BatchSchedulerTests.cs b/src/HotChocolate/Core/test/Fetching.Tests/BatchSchedulerTests.cs index e59d376f844..a95a3a82df7 100644 --- a/src/HotChocolate/Core/test/Fetching.Tests/BatchSchedulerTests.cs +++ b/src/HotChocolate/Core/test/Fetching.Tests/BatchSchedulerTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Moq; diff --git a/src/HotChocolate/Core/test/Fetching.Tests/HotChocolate.Fetching.Tests.csproj b/src/HotChocolate/Core/test/Fetching.Tests/HotChocolate.Fetching.Tests.csproj index fd33e7d0f45..34fe4c41f45 100644 --- a/src/HotChocolate/Core/test/Fetching.Tests/HotChocolate.Fetching.Tests.csproj +++ b/src/HotChocolate/Core/test/Fetching.Tests/HotChocolate.Fetching.Tests.csproj @@ -6,6 +6,7 @@ + diff --git a/src/HotChocolate/Core/test/Fetching.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Fetching.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..d14b36f51ac --- /dev/null +++ b/src/HotChocolate/Core/test/Fetching.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Fetching; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Core/test/Subscriptions.Nats.Tests/HotChocolate.Subscriptions.Nats.Tests.csproj b/src/HotChocolate/Core/test/Subscriptions.Nats.Tests/HotChocolate.Subscriptions.Nats.Tests.csproj index 095d28be3db..b62976e04f3 100644 --- a/src/HotChocolate/Core/test/Subscriptions.Nats.Tests/HotChocolate.Subscriptions.Nats.Tests.csproj +++ b/src/HotChocolate/Core/test/Subscriptions.Nats.Tests/HotChocolate.Subscriptions.Nats.Tests.csproj @@ -21,6 +21,7 @@ + diff --git a/src/HotChocolate/Core/test/Subscriptions.Postgres.Tests/HotChocolate.Subscriptions.Postgres.Tests.csproj b/src/HotChocolate/Core/test/Subscriptions.Postgres.Tests/HotChocolate.Subscriptions.Postgres.Tests.csproj index b158594620c..aa23ab8cf40 100644 --- a/src/HotChocolate/Core/test/Subscriptions.Postgres.Tests/HotChocolate.Subscriptions.Postgres.Tests.csproj +++ b/src/HotChocolate/Core/test/Subscriptions.Postgres.Tests/HotChocolate.Subscriptions.Postgres.Tests.csproj @@ -21,6 +21,7 @@ + diff --git a/src/HotChocolate/Core/test/Subscriptions.RabbitMQ.Tests/HotChocolate.Subscriptions.RabbitMQ.Tests.csproj b/src/HotChocolate/Core/test/Subscriptions.RabbitMQ.Tests/HotChocolate.Subscriptions.RabbitMQ.Tests.csproj index 12ccd47d417..54cfd3058c8 100644 --- a/src/HotChocolate/Core/test/Subscriptions.RabbitMQ.Tests/HotChocolate.Subscriptions.RabbitMQ.Tests.csproj +++ b/src/HotChocolate/Core/test/Subscriptions.RabbitMQ.Tests/HotChocolate.Subscriptions.RabbitMQ.Tests.csproj @@ -21,6 +21,7 @@ + diff --git a/src/HotChocolate/Core/test/Subscriptions.Tests/DefaultJsonMessageSerializerTests.cs b/src/HotChocolate/Core/test/Subscriptions.Tests/DefaultJsonMessageSerializerTests.cs index 9e3914d93b4..bd390fd2433 100644 --- a/src/HotChocolate/Core/test/Subscriptions.Tests/DefaultJsonMessageSerializerTests.cs +++ b/src/HotChocolate/Core/test/Subscriptions.Tests/DefaultJsonMessageSerializerTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Subscriptions; public class DefaultJsonMessageSerializerTests diff --git a/src/HotChocolate/Core/test/Subscriptions.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Subscriptions.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..3097c9a9873 --- /dev/null +++ b/src/HotChocolate/Core/test/Subscriptions.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Subscriptions; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Core/test/Subscriptions.Tests/NewtonsoftJsonMessageSerializerTests.cs b/src/HotChocolate/Core/test/Subscriptions.Tests/NewtonsoftJsonMessageSerializerTests.cs index 01dc5ae771d..3265ff18fec 100644 --- a/src/HotChocolate/Core/test/Subscriptions.Tests/NewtonsoftJsonMessageSerializerTests.cs +++ b/src/HotChocolate/Core/test/Subscriptions.Tests/NewtonsoftJsonMessageSerializerTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Subscriptions; public class NewtonsoftJsonMessageSerializerTests diff --git a/src/HotChocolate/Core/test/Subscriptions.Tests/SubscriptionIntegrationTestBase.cs b/src/HotChocolate/Core/test/Subscriptions.Tests/SubscriptionIntegrationTestBase.cs index 21d81508e6e..a6462b25743 100644 --- a/src/HotChocolate/Core/test/Subscriptions.Tests/SubscriptionIntegrationTestBase.cs +++ b/src/HotChocolate/Core/test/Subscriptions.Tests/SubscriptionIntegrationTestBase.cs @@ -1,5 +1,4 @@ using System.Diagnostics; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Execution.Configuration; using HotChocolate.Tests; diff --git a/src/HotChocolate/Core/test/Subscriptions.Tests/TopicFormatterTests.cs b/src/HotChocolate/Core/test/Subscriptions.Tests/TopicFormatterTests.cs index ee69e465e23..bc89202d9e6 100644 --- a/src/HotChocolate/Core/test/Subscriptions.Tests/TopicFormatterTests.cs +++ b/src/HotChocolate/Core/test/Subscriptions.Tests/TopicFormatterTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Subscriptions; public class TopicFormatterTests diff --git a/src/HotChocolate/Core/test/Types.Analyzers.Tests/HotChocolate.Types.Analyzers.Tests.csproj b/src/HotChocolate/Core/test/Types.Analyzers.Tests/HotChocolate.Types.Analyzers.Tests.csproj index 39e9dfeaeda..11d7cd30c4f 100644 --- a/src/HotChocolate/Core/test/Types.Analyzers.Tests/HotChocolate.Types.Analyzers.Tests.csproj +++ b/src/HotChocolate/Core/test/Types.Analyzers.Tests/HotChocolate.Types.Analyzers.Tests.csproj @@ -15,6 +15,7 @@ + diff --git a/src/HotChocolate/Core/test/Types.Analyzers.Tests/IntegrationTests.cs b/src/HotChocolate/Core/test/Types.Analyzers.Tests/IntegrationTests.cs index 497e0886829..5600157d701 100644 --- a/src/HotChocolate/Core/test/Types.Analyzers.Tests/IntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.Analyzers.Tests/IntegrationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Analyzers.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.Analyzers.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..f4200c1d7b0 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Analyzers.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Types; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Core/test/Types.Analyzers.Tests/TestHelper.cs b/src/HotChocolate/Core/test/Types.Analyzers.Tests/TestHelper.cs index e387996b09e..f6bef502886 100644 --- a/src/HotChocolate/Core/test/Types.Analyzers.Tests/TestHelper.cs +++ b/src/HotChocolate/Core/test/Types.Analyzers.Tests/TestHelper.cs @@ -5,7 +5,6 @@ using System.Text.Json; using System.Text.RegularExpressions; using Basic.Reference.Assemblies; -using CookieCrumble; using GreenDonut; using HotChocolate.Pagination; using HotChocolate.Types.Analyzers; diff --git a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/CustomCursorHandlerTests.cs b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/CustomCursorHandlerTests.cs index bfe97f65410..e193cf4d892 100644 --- a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/CustomCursorHandlerTests.cs +++ b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/CustomCursorHandlerTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Tests; diff --git a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/HotChocolate.Types.CursorPagination.Tests.csproj b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/HotChocolate.Types.CursorPagination.Tests.csproj index 147143d51af..4eb72ad71a1 100644 --- a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/HotChocolate.Types.CursorPagination.Tests.csproj +++ b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/HotChocolate.Types.CursorPagination.Tests.csproj @@ -10,6 +10,7 @@ + diff --git a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/IntegrationTests.cs b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/IntegrationTests.cs index fa9f96c6d0f..59df8a5a5e8 100644 --- a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/IntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/IntegrationTests.cs @@ -1,5 +1,4 @@ using System.Collections.Immutable; -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Execution; using HotChocolate.Internal; diff --git a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..035d01b98f8 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Types.Pagination; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/UsePagingAttributeTests.cs b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/UsePagingAttributeTests.cs index ead97da44da..080e4589ce9 100644 --- a/src/HotChocolate/Core/test/Types.CursorPagination.Tests/UsePagingAttributeTests.cs +++ b/src/HotChocolate/Core/test/Types.CursorPagination.Tests/UsePagingAttributeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Execution; using HotChocolate.Tests; diff --git a/src/HotChocolate/Core/test/Types.Json.Tests/FromJsonDescriptorTests.cs b/src/HotChocolate/Core/test/Types.Json.Tests/FromJsonDescriptorTests.cs index c70a4fd1948..a4acc807f2c 100644 --- a/src/HotChocolate/Core/test/Types.Json.Tests/FromJsonDescriptorTests.cs +++ b/src/HotChocolate/Core/test/Types.Json.Tests/FromJsonDescriptorTests.cs @@ -1,5 +1,4 @@ using System.Text.Json; -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Execution; using Moq; diff --git a/src/HotChocolate/Core/test/Types.Json.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.Json.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..f4200c1d7b0 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Json.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Types; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Core/test/Types.Mutations.Tests/AnnotationBasedMutations.cs b/src/HotChocolate/Core/test/Types.Mutations.Tests/AnnotationBasedMutations.cs index 459d4c571e9..7af8ef79ab7 100644 --- a/src/HotChocolate/Core/test/Types.Mutations.Tests/AnnotationBasedMutations.cs +++ b/src/HotChocolate/Core/test/Types.Mutations.Tests/AnnotationBasedMutations.cs @@ -1,5 +1,4 @@ using System.Reflection; -using CookieCrumble; using HotChocolate.Configuration; using HotChocolate.Execution; using HotChocolate.Tests; diff --git a/src/HotChocolate/Core/test/Types.Mutations.Tests/CodeFirstMutations.cs b/src/HotChocolate/Core/test/Types.Mutations.Tests/CodeFirstMutations.cs index 42aa9e6dbc7..de7588e28f7 100644 --- a/src/HotChocolate/Core/test/Types.Mutations.Tests/CodeFirstMutations.cs +++ b/src/HotChocolate/Core/test/Types.Mutations.Tests/CodeFirstMutations.cs @@ -1,6 +1,5 @@ using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; -using CookieCrumble; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Mutations.Tests/ErrorMiddlewareTests.cs b/src/HotChocolate/Core/test/Types.Mutations.Tests/ErrorMiddlewareTests.cs index a1e385cfbf0..ea4189517a9 100644 --- a/src/HotChocolate/Core/test/Types.Mutations.Tests/ErrorMiddlewareTests.cs +++ b/src/HotChocolate/Core/test/Types.Mutations.Tests/ErrorMiddlewareTests.cs @@ -1,7 +1,6 @@ using HotChocolate.Execution; using HotChocolate.Execution.Configuration; using Microsoft.Extensions.DependencyInjection; -using CookieCrumble; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Mutations.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.Mutations.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..f4200c1d7b0 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Mutations.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Types; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Core/test/Types.Mutations.Tests/SchemaFirstMutations.cs b/src/HotChocolate/Core/test/Types.Mutations.Tests/SchemaFirstMutations.cs index 53c2ba6e19a..9bb18d32431 100644 --- a/src/HotChocolate/Core/test/Types.Mutations.Tests/SchemaFirstMutations.cs +++ b/src/HotChocolate/Core/test/Types.Mutations.Tests/SchemaFirstMutations.cs @@ -1,7 +1,6 @@ using System.Buffers; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; -using CookieCrumble; using CookieCrumble.Formatters; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeTests.cs index 15b7260b26e..22b5b580a95 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/DurationTypeTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using CookieCrumble; using HotChocolate.Execution; using NodaTime; using NodaTime.Text; diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeTests.cs index c24efa5dc64..0ada3053154 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/InstantTypeTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using CookieCrumble; using HotChocolate.Execution; using NodaTime; using NodaTime.Text; diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeTests.cs index 957f8c39b2f..920b1045c3f 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTimeTypeTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using CookieCrumble; using HotChocolate.Execution; using NodaTime; using NodaTime.Text; diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeTests.cs index 5e0d933d900..907086de9b7 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalDateTypeTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using CookieCrumble; using HotChocolate.Execution; using NodaTime; using NodaTime.Text; diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeTests.cs index be782f45dcd..5f113af9d4c 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/LocalTimeTypeTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using CookieCrumble; using HotChocolate.Execution; using NodaTime; using NodaTime.Text; diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeTests.cs index 582cc6fedb3..7de6f7acffd 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTimeTypeTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using CookieCrumble; using HotChocolate.Execution; using NodaTime; using NodaTime.Text; diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeTests.cs index c615f0e866a..cf2e7c19398 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetDateTypeTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using CookieCrumble; using HotChocolate.Execution; using NodaTime; using NodaTime.Text; diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeTests.cs index 42d4d7c47f3..8046cb7c075 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTimeTypeTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using CookieCrumble; using HotChocolate.Execution; using NodaTime; using NodaTime.Text; diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeTests.cs index c2f241650d6..28a83017854 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/OffsetTypeTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using CookieCrumble; using HotChocolate.Execution; using NodaTime; using NodaTime.Text; diff --git a/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeTests.cs index e0fecf71bec..ad4b9cb9b54 100644 --- a/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.NodaTime.Tests/ZonedDateTimeTypeTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using CookieCrumble; using HotChocolate.Execution; using NodaTime; using NodaTime.Text; diff --git a/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/CustomCollectionSegmentHandlerTests.cs b/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/CustomCollectionSegmentHandlerTests.cs index d49a3e064dd..3530bda23c6 100644 --- a/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/CustomCollectionSegmentHandlerTests.cs +++ b/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/CustomCollectionSegmentHandlerTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Tests; diff --git a/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/IntegrationTests.cs b/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/IntegrationTests.cs index ce01b247bbe..6542ab2b6c4 100644 --- a/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/IntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/IntegrationTests.cs @@ -1,7 +1,6 @@ using System.Collections; using System.Collections.Immutable; using System.Runtime.CompilerServices; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Tests; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..035d01b98f8 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.OffsetPagination.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Types.Pagination; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Core/test/Types.Queries.Tests/AnnotationBasedSchemaTests.cs b/src/HotChocolate/Core/test/Types.Queries.Tests/AnnotationBasedSchemaTests.cs index ecb4dd82a23..28ed75a74b9 100644 --- a/src/HotChocolate/Core/test/Types.Queries.Tests/AnnotationBasedSchemaTests.cs +++ b/src/HotChocolate/Core/test/Types.Queries.Tests/AnnotationBasedSchemaTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate; using HotChocolate.Data; using HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Types.Queries.Tests/CodeFirstSchemaTests.cs b/src/HotChocolate/Core/test/Types.Queries.Tests/CodeFirstSchemaTests.cs index b8bb45c242d..625e1b5d50f 100644 --- a/src/HotChocolate/Core/test/Types.Queries.Tests/CodeFirstSchemaTests.cs +++ b/src/HotChocolate/Core/test/Types.Queries.Tests/CodeFirstSchemaTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Queries.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.Queries.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..f93b2da2be7 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Queries.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace Types.Queries.Tests; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Core/test/Types.Records.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.Records.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..f4200c1d7b0 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Records.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Types; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/EmailAddressTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/EmailAddressTypeTests.cs index a28a8bc8d47..4e9b1cf3dcf 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/EmailAddressTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/EmailAddressTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 96586aed797..23dab70327c 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/HexTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/HexTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 2a6edfc01a2..12aa8c99f36 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/HslTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/HslTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 4dfd487d972..b1d9e49f131 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/HslaTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/HslaTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 ce912673f13..890a5f06823 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/IPv4TypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/IPv4TypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 461ceb87abc..fdcefc497b6 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/IPv6TypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/IPv6TypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 2f28ba42f0e..7d4dd302c49 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/IsbnTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/IsbnTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 92283a68dbc..2ab7583b269 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/LatitudeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/LatitudeTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using CookieCrumble.Attributes; using HotChocolate.Execution; using HotChocolate.Language; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalCurrencyTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalCurrencyTypeTests.cs index 344bdc5a096..fcd106fc3cb 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalCurrencyTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalCurrencyTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalDateTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalDateTypeTests.cs index d681e0a3c24..5de5e41e7e1 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalDateTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalDateTypeTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using CookieCrumble; using HotChocolate.Language; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalTimeTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalTimeTypeTests.cs index c51e27cf8e7..dfbcf013795 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/LocalTimeTypeTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using CookieCrumble; using HotChocolate.Language; 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 41c1fd29aa2..0b1713bdc25 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/LongitudeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/LongitudeTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using CookieCrumble.Attributes; using HotChocolate.Execution; using HotChocolate.Language; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/MacAddressTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/MacAddressTypeTests.cs index 111c9ff6c10..e81d4865d91 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/MacAddressTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/MacAddressTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 c5581cb4a6d..61209c12e0a 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/NegativeFloatTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/NegativeFloatTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 076cb9154f3..6786b060b61 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/NegativeIntTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/NegativeIntTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 b1106169dbe..6d32f565b5b 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/NonEmptyStringTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/NonEmptyStringTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 c197ce54f6f..4d0d14d28c4 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/NonNegativeFloatTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/NonNegativeFloatTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 e69da3d4df7..968d6a51ab5 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/NonNegativeIntTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/NonNegativeIntTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 45055492c3e..7a161bc0885 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/NonPositiveFloatTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/NonPositiveFloatTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 121451d98d1..d962df0e22f 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/NonPositiveIntTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/NonPositiveIntTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 a5e872523fb..ea9303a0162 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/PhoneNumberTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/PhoneNumberTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 1880a6ea67d..3dae4dcbe4e 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/PortTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/PortTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 6866c0cc9ab..597ff8b826b 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/PositiveIntTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/PositiveIntTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 6be6c6424d3..b721e96101f 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/PostalCodeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/PostalCodeTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 46356ce7e98..0f7f0e748d0 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/RegexTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/RegexTypeTests.cs @@ -1,5 +1,4 @@ using System.Text.RegularExpressions; -using CookieCrumble; using HotChocolate.Language; 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 2c98c21e6c4..f2f5d479f04 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/RgbTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/RgbTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 fddfd61a65b..0a193bfc856 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/RgbaTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/RgbaTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 4fb3b0524a9..6d1273a3c21 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/ScalarTypeTestBase.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/ScalarTypeTestBase.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/SignedByteTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/SignedByteTypeTests.cs index 800822e4112..deba1c8ada4 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/SignedByteTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/SignedByteTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedIntTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedIntTypeTests.cs index e108296804a..0f548a7fb83 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedIntTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedIntTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedLongTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedLongTypeTests.cs index ddb149efe9b..65154bdab72 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedLongTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedLongTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 bb15b1108e8..c1ebe302fd1 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedShortTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/UnsignedShortTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Scalars.Tests/UtcOffsetTypeTests.cs b/src/HotChocolate/Core/test/Types.Scalars.Tests/UtcOffsetTypeTests.cs index 08e1d013cd2..c07532848ec 100644 --- a/src/HotChocolate/Core/test/Types.Scalars.Tests/UtcOffsetTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Scalars.Tests/UtcOffsetTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/CodeFirstTests.cs b/src/HotChocolate/Core/test/Types.Tests/CodeFirstTests.cs index 340ee00aa32..8ddbcb35596 100644 --- a/src/HotChocolate/Core/test/Types.Tests/CodeFirstTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/CodeFirstTests.cs @@ -1,7 +1,6 @@ #nullable enable using System.Collections; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/MiddlewareConfigurationTests.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/MiddlewareConfigurationTests.cs index 4e0f86eed02..606efbab10f 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/MiddlewareConfigurationTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/MiddlewareConfigurationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscovererTests.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscovererTests.cs index 7400c54e41e..098163bd29d 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscovererTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscovererTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; using HotChocolate.Types.Descriptors; using HotChocolate.Utilities; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscoveryHandlerTests.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscoveryHandlerTests.cs index 33394dbd0b1..159c9394ad4 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscoveryHandlerTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscoveryHandlerTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscoveryTests.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscoveryTests.cs index 4a2db3bdfd2..c919d211bc2 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscoveryTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscoveryTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; 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 9c3830b5b1a..52c1e16c427 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeInitializationOrderTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeInitializationOrderTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; using HotChocolate.Types.Descriptors.Definitions; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeInitializerTests.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeInitializerTests.cs index e82ad0eb101..015c67a223b 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeInitializerTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeInitializerTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; using HotChocolate.Types.Descriptors; using HotChocolate.Types.Introspection; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeScopeInterceptorTests.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeScopeInterceptorTests.cs index 4dbf9011f1a..4608701aaf5 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeScopeInterceptorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeScopeInterceptorTests.cs @@ -1,5 +1,4 @@ using System.Reflection; -using CookieCrumble; using HotChocolate.Types; using HotChocolate.Types.Descriptors; using HotChocolate.Types.Descriptors.Definitions; diff --git a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeTrimmerTests.cs b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeTrimmerTests.cs index bbcb3436dee..d6e6f2adfda 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeTrimmerTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/TypeTrimmerTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Types; using DirectiveLocation = HotChocolate.Types.DirectiveLocation; 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 61572230a38..1ae9297cf58 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/TypeValidationTestBase.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Configuration/Validation/TypeValidationTestBase.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; namespace HotChocolate.Configuration.Validation; 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 4229ccfef6c..e577d435ace 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,4 +1,3 @@ -using CookieCrumble; using IOPath = System.IO.Path; namespace HotChocolate; 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 df2b1bcd449..8a1bcf3ff90 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,4 +1,3 @@ -using CookieCrumble; 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 2b702ee3a6c..b533294569b 100644 --- a/src/HotChocolate/Core/test/Types.Tests/ForbiddenRuntimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/ForbiddenRuntimeTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/HotChocolate.Types.Tests.csproj b/src/HotChocolate/Core/test/Types.Tests/HotChocolate.Types.Tests.csproj index eea42d54f5e..3b56f864487 100644 --- a/src/HotChocolate/Core/test/Types.Tests/HotChocolate.Types.Tests.csproj +++ b/src/HotChocolate/Core/test/Types.Tests/HotChocolate.Types.Tests.csproj @@ -12,6 +12,7 @@ + diff --git a/src/HotChocolate/Core/test/Types.Tests/ModuleInitializer.cs b/src/HotChocolate/Core/test/Types.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..cdfd3490d24 --- /dev/null +++ b/src/HotChocolate/Core/test/Types.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Core/test/Types.Tests/NamingConventionTests.cs b/src/HotChocolate/Core/test/Types.Tests/NamingConventionTests.cs index f6569c0a073..2d44ebdf2aa 100644 --- a/src/HotChocolate/Core/test/Types.Tests/NamingConventionTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/NamingConventionTests.cs @@ -1,5 +1,4 @@ using System.Reflection; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Tests; using HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Regressions/Issue_4811.cs b/src/HotChocolate/Core/test/Types.Tests/Regressions/Issue_4811.cs index 56d93a276a0..d0903ad9718 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Regressions/Issue_4811.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Regressions/Issue_4811.cs @@ -1,7 +1,6 @@ #nullable enable using System.ComponentModel.DataAnnotations; -using CookieCrumble; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/ResolverContextStateExtensionTests.cs b/src/HotChocolate/Core/test/Types.Tests/ResolverContextStateExtensionTests.cs index 40feda47e8f..4d695ed7066 100644 --- a/src/HotChocolate/Core/test/Types.Tests/ResolverContextStateExtensionTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/ResolverContextStateExtensionTests.cs @@ -1,6 +1,5 @@ using System.Collections.Immutable; using System.Security.Claims; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Resolvers; using HotChocolate.Tests; diff --git a/src/HotChocolate/Core/test/Types.Tests/Resolvers/IsSelectedTests.cs b/src/HotChocolate/Core/test/Types.Tests/Resolvers/IsSelectedTests.cs index 06ba58313ee..14115265232 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Resolvers/IsSelectedTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Resolvers/IsSelectedTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverCompilerTests.cs b/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverCompilerTests.cs index 09bd301d5ba..97502941395 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverCompilerTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverCompilerTests.cs @@ -1,7 +1,6 @@ using System.Collections.Immutable; using System.Reflection; using System.Security.Claims; -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Execution; using HotChocolate.Execution.Processing; diff --git a/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverServiceTests.cs b/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverServiceTests.cs index 61f8464a82b..d3cebed2557 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverServiceTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverServiceTests.cs @@ -1,6 +1,5 @@ #nullable enable -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverTaskNullTests.cs b/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverTaskNullTests.cs index 90e73e53950..0d5400d2e44 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverTaskNullTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Resolvers/ResolverTaskNullTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/SchemaBuilderTests.cs b/src/HotChocolate/Core/test/Types.Tests/SchemaBuilderTests.cs index 351d250c372..39fdf49a255 100644 --- a/src/HotChocolate/Core/test/Types.Tests/SchemaBuilderTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/SchemaBuilderTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Configuration; using HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Types.Tests/SchemaCoordinateTests.cs b/src/HotChocolate/Core/test/Types.Tests/SchemaCoordinateTests.cs index ed209ae041d..73ab70f4ef0 100644 --- a/src/HotChocolate/Core/test/Types.Tests/SchemaCoordinateTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/SchemaCoordinateTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/SchemaDocumentFormatterTests.cs b/src/HotChocolate/Core/test/Types.Tests/SchemaDocumentFormatterTests.cs index 425a92d419f..3f56d0867b2 100644 --- a/src/HotChocolate/Core/test/Types.Tests/SchemaDocumentFormatterTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/SchemaDocumentFormatterTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/SchemaErrorTests.cs b/src/HotChocolate/Core/test/Types.Tests/SchemaErrorTests.cs index 7dbf90d4eae..852a396d455 100644 --- a/src/HotChocolate/Core/test/Types.Tests/SchemaErrorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/SchemaErrorTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Configuration; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/SchemaFirstTests.cs b/src/HotChocolate/Core/test/Types.Tests/SchemaFirstTests.cs index 5a39e4958ec..86cf7138284 100644 --- a/src/HotChocolate/Core/test/Types.Tests/SchemaFirstTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/SchemaFirstTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Execution; using HotChocolate.Language; diff --git a/src/HotChocolate/Core/test/Types.Tests/SchemaSerializerTests.cs b/src/HotChocolate/Core/test/Types.Tests/SchemaSerializerTests.cs index 38fc1dd5ce6..53aba479b35 100644 --- a/src/HotChocolate/Core/test/Types.Tests/SchemaSerializerTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/SchemaSerializerTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using HotChocolate.Types; 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 f7616e60ff8..8a203a26d90 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/ArgumentTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/ArgumentTests.cs @@ -1,6 +1,5 @@ #nullable enable -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Resolvers; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Attributes/ExtendObjectTypeAttributeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Attributes/ExtendObjectTypeAttributeTests.cs index da18c07176f..cfc2b6db357 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Attributes/ExtendObjectTypeAttributeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Attributes/ExtendObjectTypeAttributeTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Types; public class ExtendObjectTypeAttributeTests 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 e42617e94b0..eb075200e6c 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Attributes/RequiredAttributeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Attributes/RequiredAttributeTests.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations; -using CookieCrumble; using HotChocolate.Types.Descriptors; using HotChocolate.Utilities; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/BindingBehaviorTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/BindingBehaviorTests.cs index 8e472c740e6..1b2006581c4 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/BindingBehaviorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/BindingBehaviorTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/DescriptionTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/DescriptionTests.cs index da145ecd4f2..76300517120 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/DescriptionTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/DescriptionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language.Utilities; using Microsoft.Extensions.DependencyInjection; 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 57c9398353c..d13351646da 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 @@ -1,6 +1,5 @@ using System.Drawing; using System.Text.RegularExpressions; -using CookieCrumble; namespace HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Definitions/DefinitionBaseTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Definitions/DefinitionBaseTests.cs index a69eff3d823..bb66cc64e93 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Definitions/DefinitionBaseTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Definitions/DefinitionBaseTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; 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 2332c0f6d51..fc4c27fe371 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ObjectTypeDescriptorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/ObjectTypeDescriptorTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Resolvers; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/DirectiveTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/DirectiveTests.cs index ee44b5e9e96..61cf50254af 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/DirectiveTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/DirectiveTests.cs @@ -1,7 +1,6 @@ using HotChocolate.Execution; using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; -using CookieCrumble; 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 cf292eea1ef..a2af1f45a02 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/DirectiveTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/DirectiveTypeTests.cs @@ -3,7 +3,6 @@ using HotChocolate.Resolvers; using HotChocolate.Types.Descriptors; using Microsoft.Extensions.DependencyInjection; -using CookieCrumble; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Directives/SpecifiedByDirectiveTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Directives/SpecifiedByDirectiveTypeTests.cs index ffff817abb1..18250d6371f 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Directives/SpecifiedByDirectiveTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Directives/SpecifiedByDirectiveTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Utilities; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Directives/TagDirectiveTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Directives/TagDirectiveTests.cs index 0383fcd6117..f92aedab0f3 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Directives/TagDirectiveTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Directives/TagDirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/EnumFlagsTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/EnumFlagsTests.cs index 1c2eb0dbb4e..df00a5855a5 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/EnumFlagsTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/EnumFlagsTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeExtensionTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeExtensionTests.cs index a1d8c767085..3a8832f5bfc 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeExtensionTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeExtensionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; 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 7d4329754eb..fe6543d26a1 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/EnumTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Configuration; using HotChocolate.Execution; using HotChocolate.Language; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/InputCoercionTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/InputCoercionTests.cs index 75b9a4b0790..ea8c3efca01 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/InputCoercionTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/InputCoercionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Utilities; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeAttributeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeAttributeTests.cs index 4a0d969ba4a..b68e1510392 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeAttributeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeAttributeTests.cs @@ -1,5 +1,4 @@ using System.Reflection; -using CookieCrumble; using HotChocolate.Tests; using HotChocolate.Types.Descriptors; using OperationRequestBuilder = HotChocolate.Execution.OperationRequestBuilder; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeDictionaryTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeDictionaryTests.cs index cf08ea64d72..32f7a1cbac7 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeDictionaryTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeDictionaryTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; #nullable enable diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeTests.cs index b63701bf1a5..773d814ce39 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/InputObjectTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/InputParserTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/InputParserTests.cs index bbdb5fd6567..3ea84127191 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/InputParserTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/InputParserTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Tests; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Interceptors/FlagEnumInterceptorTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Interceptors/FlagEnumInterceptorTests.cs index 310bc09bf2d..c1d90285b36 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Interceptors/FlagEnumInterceptorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Interceptors/FlagEnumInterceptorTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; using static HotChocolate.Types.Interceptors.FlagEnumInterceptorTests.FlagsEnum; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeExtensionTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeExtensionTests.cs index 4792e8d78cc..3c27be3d990 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 CookieCrumble; using HotChocolate.Language; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeResolverTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeResolverTests.cs index ba5f0ad45cd..b62b5701ff2 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeResolverTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeResolverTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeTests.cs index d77c9e67109..e3dd26285c5 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/InterfaceTypeTests.cs @@ -1,6 +1,5 @@ using System.Reflection; using System.Text.RegularExpressions; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Tests; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/JsonTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/JsonTypeTests.cs index 70c12d6f526..72875382840 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/JsonTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/JsonTypeTests.cs @@ -1,6 +1,5 @@ using System.Numerics; using System.Text.Json; -using CookieCrumble; using CookieCrumble.Attributes; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/ListTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/ListTypeTests.cs index 851672cf933..9480ba4ad1b 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/ListTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/ListTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/ObjectFieldExpressionTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/ObjectFieldExpressionTests.cs index cf480000dc8..b4d091d112b 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/ObjectFieldExpressionTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/ObjectFieldExpressionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; #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 f1c29d30821..f3ea8aad06e 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeAttributeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeAttributeTests.cs @@ -1,5 +1,4 @@ using System.Reflection; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types.Descriptors; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeExtensionTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeExtensionTests.cs index f6afefed4f4..4cbb37579fa 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeExtensionTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeExtensionTests.cs @@ -1,7 +1,6 @@ #pragma warning disable RCS1102 // Make class static using System.Reflection; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeTests.cs index e395006d6ea..adbf13c8c44 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeTests.cs @@ -1,6 +1,5 @@ using System.Collections; using System.Linq.Expressions; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/OneOfIntegrationTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/OneOfIntegrationTests.cs index 6e5662fe1c4..fd177f55035 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/OneOfIntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/OneOfIntegrationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Configuration.Validation; using HotChocolate.Execution; using HotChocolate.Language; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/DefaultNodeIdSerializerTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/DefaultNodeIdSerializerTests.cs index 7ed1d3e7ac2..bfc0a115a77 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/DefaultNodeIdSerializerTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/DefaultNodeIdSerializerTests.cs @@ -1,6 +1,5 @@ using System.Diagnostics.CodeAnalysis; using System.Text; -using CookieCrumble; using Moq; namespace HotChocolate.Types.Relay; 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 a2fea9abf63..3fff655033b 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdAttributeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdAttributeTests.cs @@ -1,7 +1,6 @@ using System.Diagnostics.CodeAnalysis; using System.Reflection; using System.Text; -using CookieCrumble; using HotChocolate.Configuration; using HotChocolate.Execution; using HotChocolate.Types.Descriptors; 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 ee6ec2abde0..8f2595a6ca5 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdDescriptorTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdDescriptorTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; 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 307b1e31363..e7efdf0f7ed 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdMiddlewareTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdMiddlewareTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; 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 0b7730ff96f..adef393a93e 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeFieldSupportTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeFieldSupportTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; -using CookieCrumble; namespace HotChocolate.Types.Relay; 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 7820ba6ee01..15b794f0240 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeResolverTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeResolverTests.cs @@ -1,5 +1,4 @@ #pragma warning disable RCS1102 // Make class static -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Tests; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeTypeTests.cs index 2a653584f12..c9c7aa18550 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Tests; using HotChocolate.Types.Relay; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/OptimizedNodeIdSerializerTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/OptimizedNodeIdSerializerTests.cs index adf73503872..681c8c74d50 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Relay/OptimizedNodeIdSerializerTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Relay/OptimizedNodeIdSerializerTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using Moq; namespace HotChocolate.Types.Relay; 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 90bc59820c8..a01479845d0 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/SDL/EnumTypeSchemaFirstTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/SDL/EnumTypeSchemaFirstTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Execution; using HotChocolate.Tests; 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 99f78474709..a25e7a94c01 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,3 @@ -using CookieCrumble; - namespace HotChocolate.Types.SDL; public class InputObjectTypeSchemaFirstTests 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 788c865b035..67fd721f6da 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,3 @@ -using CookieCrumble; - namespace HotChocolate.Types.SDL; public class ObjectTypeSchemaFirstTests diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/AnyTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/AnyTypeTests.cs index 81288cc68b2..7b48f85d638 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/AnyTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/AnyTypeTests.cs @@ -1,6 +1,5 @@ using System.Collections.Immutable; using System.Dynamic; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Tests; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/CustomScalarTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/CustomScalarTests.cs index 1095d159351..b754072e091 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/CustomScalarTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/CustomScalarTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types.Descriptors; using Microsoft.Extensions.DependencyInjection; 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 9a9e75cddbb..c3f37aeca3a 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/DateTimeTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/DateTimeTypeTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; 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 9dbd5bba2ea..74072f04a56 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ScalarBindingTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ScalarBindingTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; #nullable enable 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 2f39975f293..589cc835301 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/TimeSpanTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/TimeSpanTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Execution; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/UploadTypeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/UploadTypeTests.cs index eb839fa809a..4b7496e803a 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/UploadTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/UploadTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using Moq; 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 3ea42e1e659..ea8517c0f1b 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/UuidTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/Scalars/UuidTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; #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 35f5dd49747..2d0588005c9 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/SubscriptionTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/SubscriptionTypeTests.cs @@ -7,7 +7,6 @@ #nullable enable using System.Runtime.CompilerServices; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Subscriptions; using HotChocolate.Tests; diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/TypeFactoryTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/TypeFactoryTests.cs index 3f7c30367dd..c5ca0b616f1 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/TypeFactoryTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/TypeFactoryTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Types; public class TypeFactoryTests : TypeTestBase diff --git a/src/HotChocolate/Core/test/Types.Tests/Types/UnionTypeAttributeTests.cs b/src/HotChocolate/Core/test/Types.Tests/Types/UnionTypeAttributeTests.cs index 4737eb7e3c8..81c6ee59a05 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/UnionTypeAttributeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/UnionTypeAttributeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types.Descriptors; #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 89bce41a476..3ff9992c2f2 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Types/UnionTypeTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Types/UnionTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; namespace HotChocolate.Types; diff --git a/src/HotChocolate/Core/test/Types.Tests/Utilities/DictionaryToObjectConverterTests.cs b/src/HotChocolate/Core/test/Types.Tests/Utilities/DictionaryToObjectConverterTests.cs index 3bfb5e1193e..74631b655b0 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Utilities/DictionaryToObjectConverterTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Utilities/DictionaryToObjectConverterTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Utilities; public class DictionaryToObjectConverterTests diff --git a/src/HotChocolate/Core/test/Types.Tests/Utilities/InputObjectToDictionaryConverterTests.cs b/src/HotChocolate/Core/test/Types.Tests/Utilities/InputObjectToDictionaryConverterTests.cs index 89dff655106..7156f7985c6 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Utilities/InputObjectToDictionaryConverterTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Utilities/InputObjectToDictionaryConverterTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; 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 f61748c9dec..9d8b419ab30 100644 --- a/src/HotChocolate/Core/test/Types.Tests/Utilities/ObjectValueToDictionaryConverterTests.cs +++ b/src/HotChocolate/Core/test/Types.Tests/Utilities/ObjectValueToDictionaryConverterTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; namespace HotChocolate.Utilities; diff --git a/src/HotChocolate/Core/test/Utilities/SnapshotExtensions.cs b/src/HotChocolate/Core/test/Utilities/SnapshotExtensions.cs index 427c2603818..a1615dc9a59 100644 --- a/src/HotChocolate/Core/test/Utilities/SnapshotExtensions.cs +++ b/src/HotChocolate/Core/test/Utilities/SnapshotExtensions.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using CookieCrumble.Formatters; using HotChocolate.Execution; diff --git a/src/HotChocolate/Core/test/Utilities/SnapshotTest.cs b/src/HotChocolate/Core/test/Utilities/SnapshotTest.cs index c8a46c609d1..9eb9830bc45 100644 --- a/src/HotChocolate/Core/test/Utilities/SnapshotTest.cs +++ b/src/HotChocolate/Core/test/Utilities/SnapshotTest.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Tests; public sealed class SnapshotTest diff --git a/src/HotChocolate/Core/test/Utilities/TestHelper.cs b/src/HotChocolate/Core/test/Utilities/TestHelper.cs index ada4ef20043..4460455fb49 100644 --- a/src/HotChocolate/Core/test/Utilities/TestHelper.cs +++ b/src/HotChocolate/Core/test/Utilities/TestHelper.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Execution; using HotChocolate.Execution.Configuration; diff --git a/src/HotChocolate/Core/test/Validation.Tests/DocumentValidatorTests.cs b/src/HotChocolate/Core/test/Validation.Tests/DocumentValidatorTests.cs index 49e2abd6360..4eb5d3e0554 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/DocumentValidatorTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/DocumentValidatorTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Language; diff --git a/src/HotChocolate/Core/test/Validation.Tests/DocumentValidatorVisitorTestBase.cs b/src/HotChocolate/Core/test/Validation.Tests/DocumentValidatorVisitorTestBase.cs index 215855d26eb..c07b8f08aec 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/DocumentValidatorVisitorTestBase.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/DocumentValidatorVisitorTestBase.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Language; using HotChocolate.StarWars; diff --git a/src/HotChocolate/Core/test/Validation.Tests/FieldMustBeDefinedRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/FieldMustBeDefinedRuleTests.cs index baceb18b75f..597a1f6d458 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/FieldMustBeDefinedRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/FieldMustBeDefinedRuleTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Validation.Tests/FieldSelectionMergingRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/FieldSelectionMergingRuleTests.cs index 38f77df5cbe..456136db73c 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/FieldSelectionMergingRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/FieldSelectionMergingRuleTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadTargetDefinedRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadTargetDefinedRuleTests.cs index 6b298bbaa52..464e6c3a97d 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadTargetDefinedRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadTargetDefinedRuleTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Language; diff --git a/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadTypeExistenceRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadTypeExistenceRuleTests.cs index a329b710630..e3937979806 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadTypeExistenceRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/FragmentSpreadTypeExistenceRuleTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Validation.Tests/FragmentsMustBeUsedRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/FragmentsMustBeUsedRuleTests.cs index 2cdc0c0403e..07de5f5efb0 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/FragmentsMustBeUsedRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/FragmentsMustBeUsedRuleTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Language; diff --git a/src/HotChocolate/Core/test/Validation.Tests/IntrospectionDepthRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/IntrospectionDepthRuleTests.cs index 4a8e6aa15cf..d48f598e275 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/IntrospectionDepthRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/IntrospectionDepthRuleTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Validation.Options; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Core/test/Validation.Tests/IntrospectionRuleTests.cs b/src/HotChocolate/Core/test/Validation.Tests/IntrospectionRuleTests.cs index ec398700301..f2c50c9990b 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/IntrospectionRuleTests.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/IntrospectionRuleTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using static HotChocolate.Validation.TestHelper; diff --git a/src/HotChocolate/Core/test/Validation.Tests/TestHelper.cs b/src/HotChocolate/Core/test/Validation.Tests/TestHelper.cs index 875156bcac4..6753a0a69c6 100644 --- a/src/HotChocolate/Core/test/Validation.Tests/TestHelper.cs +++ b/src/HotChocolate/Core/test/Validation.Tests/TestHelper.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Language; using HotChocolate.Validation.Options; diff --git a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/CostSyntaxRewriterTests.cs b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/CostSyntaxRewriterTests.cs index 7f2d54ba3b0..95a994768ef 100644 --- a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/CostSyntaxRewriterTests.cs +++ b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/CostSyntaxRewriterTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.CostAnalysis.Types; using HotChocolate.Types; diff --git a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/HotChocolate.CostAnalysis.Tests.csproj b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/HotChocolate.CostAnalysis.Tests.csproj index 744549eee0c..f4bdd467f68 100644 --- a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/HotChocolate.CostAnalysis.Tests.csproj +++ b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/HotChocolate.CostAnalysis.Tests.csproj @@ -6,7 +6,6 @@ - diff --git a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/ModuleInitializer.cs b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..598ebb0148d --- /dev/null +++ b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.CostAnalysis; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/PagingTests.cs b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/PagingTests.cs index 2bbf4ca8415..eb40df2c7dd 100644 --- a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/PagingTests.cs +++ b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/PagingTests.cs @@ -1,5 +1,4 @@ using System.Text.Json; -using CookieCrumble; using HotChocolate.Data; using HotChocolate.Data.Filters; using HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/SchemaIntegrationTests.cs b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/SchemaIntegrationTests.cs index 158612056bb..cba48707f79 100644 --- a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/SchemaIntegrationTests.cs +++ b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/SchemaIntegrationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.CostAnalysis.Types; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/SlicingArgumentsTests.cs b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/SlicingArgumentsTests.cs index 2a89c84c4c4..1274d1a767c 100644 --- a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/SlicingArgumentsTests.cs +++ b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/SlicingArgumentsTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/SpecificationExampleTests.cs b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/SpecificationExampleTests.cs index 92f1a26ebc0..fde33a393ba 100644 --- a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/SpecificationExampleTests.cs +++ b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/SpecificationExampleTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Execution.Configuration; using HotChocolate.Language; diff --git a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/StaticQueryAnalysisTests.cs b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/StaticQueryAnalysisTests.cs index 680dcb9b31c..b70f374f57c 100644 --- a/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/StaticQueryAnalysisTests.cs +++ b/src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/StaticQueryAnalysisTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Execution.Configuration; using HotChocolate.Language; diff --git a/src/HotChocolate/CostAnalysis/test/Directory.Build.props b/src/HotChocolate/CostAnalysis/test/Directory.Build.props index bb81f70a887..47082b11e29 100644 --- a/src/HotChocolate/CostAnalysis/test/Directory.Build.props +++ b/src/HotChocolate/CostAnalysis/test/Directory.Build.props @@ -7,9 +7,15 @@ + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/HotChocolate/Data/test/Data.AutoMapper.Tests/ProjectToTests.cs b/src/HotChocolate/Data/test/Data.AutoMapper.Tests/ProjectToTests.cs index 4fca8559201..acb9eec0a15 100644 --- a/src/HotChocolate/Data/test/Data.AutoMapper.Tests/ProjectToTests.cs +++ b/src/HotChocolate/Data/test/Data.AutoMapper.Tests/ProjectToTests.cs @@ -1,7 +1,6 @@ using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using AutoMapper; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/Data/test/Data.AutoMapper.Tests/TestExtensions.cs b/src/HotChocolate/Data/test/Data.AutoMapper.Tests/TestExtensions.cs index 7d84dc58f8f..23bbc9fd2a7 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 CookieCrumble; using HotChocolate.Execution; using static CookieCrumble.Formatters.SnapshotValueFormatters; diff --git a/src/HotChocolate/Data/test/Data.EntityFramework.Pagination.Tests/HotChocolate.Data.EntityFramework.Pagination.Tests.csproj b/src/HotChocolate/Data/test/Data.EntityFramework.Pagination.Tests/HotChocolate.Data.EntityFramework.Pagination.Tests.csproj index 9867a74051d..809a8e6985a 100644 --- a/src/HotChocolate/Data/test/Data.EntityFramework.Pagination.Tests/HotChocolate.Data.EntityFramework.Pagination.Tests.csproj +++ b/src/HotChocolate/Data/test/Data.EntityFramework.Pagination.Tests/HotChocolate.Data.EntityFramework.Pagination.Tests.csproj @@ -5,6 +5,7 @@ + diff --git a/src/HotChocolate/Data/test/Data.EntityFramework.Pagination.Tests/IntegrationTests.cs b/src/HotChocolate/Data/test/Data.EntityFramework.Pagination.Tests/IntegrationTests.cs index f077e837c2e..629992a4853 100644 --- a/src/HotChocolate/Data/test/Data.EntityFramework.Pagination.Tests/IntegrationTests.cs +++ b/src/HotChocolate/Data/test/Data.EntityFramework.Pagination.Tests/IntegrationTests.cs @@ -1,6 +1,5 @@ using System.Reflection; using System.Runtime.CompilerServices; -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Data.TestContext; using HotChocolate.Execution; diff --git a/src/HotChocolate/Data/test/Data.EntityFramework.Pagination.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.EntityFramework.Pagination.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..9ec3dcfa4cf --- /dev/null +++ b/src/HotChocolate/Data/test/Data.EntityFramework.Pagination.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/EntityFrameworkExecutableTests.cs b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/EntityFrameworkExecutableTests.cs index 1f6447f833b..5aefc33dc15 100644 --- a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/EntityFrameworkExecutableTests.cs +++ b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/EntityFrameworkExecutableTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Data; public class EntityFrameworkExecutableTests(AuthorFixture authorFixture) diff --git a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/EntityFrameworkResolverCompilerIntegrationTests.cs b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/EntityFrameworkResolverCompilerIntegrationTests.cs index 15f42b6810b..da4eafd548a 100644 --- a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/EntityFrameworkResolverCompilerIntegrationTests.cs +++ b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/EntityFrameworkResolverCompilerIntegrationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/IntegrationTests.cs b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/IntegrationTests.cs index b10d56ca15d..d4563e52456 100644 --- a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/IntegrationTests.cs +++ b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/IntegrationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.EntityFrameworkCore; diff --git a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..9ec3dcfa4cf --- /dev/null +++ b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/SqlCursorCursorPagingIntegrationTests.cs b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/SqlCursorCursorPagingIntegrationTests.cs index 4ca71f236c3..5dc86b8daf6 100644 --- a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/SqlCursorCursorPagingIntegrationTests.cs +++ b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/SqlCursorCursorPagingIntegrationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data; diff --git a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/SqlOffsetPagingIntegrationTests.cs b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/SqlOffsetPagingIntegrationTests.cs index 8bebe8ed1d2..94647146139 100644 --- a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/SqlOffsetPagingIntegrationTests.cs +++ b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/SqlOffsetPagingIntegrationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data; diff --git a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/UseDbContextTests.cs b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/UseDbContextTests.cs index afb204ecf8f..8d4869f0733 100644 --- a/src/HotChocolate/Data/test/Data.EntityFramework.Tests/UseDbContextTests.cs +++ b/src/HotChocolate/Data/test/Data.EntityFramework.Tests/UseDbContextTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/FilteringAndPaging.cs b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/FilteringAndPaging.cs index 6db698e4bf4..cb2183ab2ae 100644 --- a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/FilteringAndPaging.cs +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/FilteringAndPaging.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..4a0dbac9ef0 --- /dev/null +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.Filters; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterCombinatorTests.cs b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterCombinatorTests.cs index 8f60d1892b3..fff11e2046e 100644 --- a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterCombinatorTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterCombinatorTests.cs @@ -4,7 +4,6 @@ // ReSharper disable UnusedType.Global // ReSharper disable UnusedAutoPropertyAccessor.Global -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorBooleanTests.cs b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorBooleanTests.cs index da7c64fbefc..d7ebc72bda0 100644 --- a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorBooleanTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorBooleanTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorComparableTests.cs b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorComparableTests.cs index d0c5d4c3f89..36effb04c33 100644 --- a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorComparableTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorComparableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorEnumTests.cs b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorEnumTests.cs index 544f1a42ee4..f1f82d50524 100644 --- a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorEnumTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorEnumTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorExecutableTests.cs b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorExecutableTests.cs index 4686f7ab47b..86747181f95 100644 --- a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorExecutableTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorExecutableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorExpressionTests.cs b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorExpressionTests.cs index 23b3fa74478..1c16f600da8 100644 --- a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorExpressionTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorExpressionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorIdTests.cs b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorIdTests.cs index 2210cfc7463..8edbc332ef5 100644 --- a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorIdTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorIdTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types.Relay; diff --git a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorInterfacesTests.cs b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorInterfacesTests.cs index 467acc2fa76..ad0cb9eba22 100644 --- a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorInterfacesTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorInterfacesTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorListTests.cs b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorListTests.cs index b7c2a1b29b7..99e2bc22c0d 100644 --- a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorListTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorListTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorObjectTests.cs b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorObjectTests.cs index b9ba2b51f84..10eb10c7746 100644 --- a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorObjectTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorObjectTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorStringTests.cs b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorStringTests.cs index e4edda55f5c..eb126139fed 100644 --- a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorStringTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorStringTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; 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 b2f06d9f43a..e1db83d979c 100644 --- a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorStructTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorStructTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorVariablesTests.cs b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorVariablesTests.cs index eb62e95caa6..acdd63a30c9 100644 --- a/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorVariablesTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.InMemory.Tests/QueryableFilterVisitorVariablesTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/DataLoaderTests.cs b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/DataLoaderTests.cs index ee39eb6b7a5..c3f18af2a4b 100644 --- a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/DataLoaderTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/DataLoaderTests.cs @@ -1,5 +1,4 @@ using System.Linq.Expressions; -using CookieCrumble; using GreenDonut; using GreenDonut.Predicates; using HotChocolate.Execution; diff --git a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/FilteringAndPaging.cs b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/FilteringAndPaging.cs index c4f7250e265..87963d811e3 100644 --- a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/FilteringAndPaging.cs +++ b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/FilteringAndPaging.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/HotChocolate.Data.Filters.SqlServer.Tests.csproj b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/HotChocolate.Data.Filters.SqlServer.Tests.csproj index 5ddfb18c7f1..c8f6c1aea8c 100644 --- a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/HotChocolate.Data.Filters.SqlServer.Tests.csproj +++ b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/HotChocolate.Data.Filters.SqlServer.Tests.csproj @@ -7,6 +7,7 @@ + diff --git a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..4a0dbac9ef0 --- /dev/null +++ b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.Filters; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorBooleanTests.cs b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorBooleanTests.cs index 5c2c2dc81c9..38f7cc4f4ba 100644 --- a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorBooleanTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorBooleanTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorComparableTests.cs b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorComparableTests.cs index a0948f4973b..3756fc091b7 100644 --- a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorComparableTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorComparableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorEnumTests.cs b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorEnumTests.cs index eba2de83825..80422549b99 100644 --- a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorEnumTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorEnumTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorExecutableTests.cs b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorExecutableTests.cs index 328d08b331a..39b7b7788da 100644 --- a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorExecutableTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorExecutableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorExpressionTests.cs b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorExpressionTests.cs index f3f780289cd..626cbbc29b4 100644 --- a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorExpressionTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorExpressionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorInterfacesTests.cs b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorInterfacesTests.cs index 42c22d5da31..ee6c6811c69 100644 --- a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorInterfacesTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorInterfacesTests.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.EntityFrameworkCore; 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 72d4ef377b7..4391d0ccb15 100644 --- a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorListTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorListTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorObjectTests.cs b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorObjectTests.cs index 1e714745844..d42575c10ba 100644 --- a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorObjectTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorObjectTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorStringTests.cs b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorStringTests.cs index a5acc294ecb..84dd357f0e2 100644 --- a/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorStringTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorStringTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/Context/FilterContextTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/Context/FilterContextTests.cs index e81c8bb1767..a55bb3ef842 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/Context/FilterContextTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/Context/FilterContextTests.cs @@ -1,5 +1,4 @@ using System.Collections.Immutable; -using CookieCrumble; using HotChocolate.Data.Filters.Expressions; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/Convention/FilterConventionScopeTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/Convention/FilterConventionScopeTests.cs index 682687d413f..db7df11acec 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/Convention/FilterConventionScopeTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/Convention/FilterConventionScopeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/Convention/FilterConventionTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/Convention/FilterConventionTests.cs index 2dda08a8309..2b5c9e054d3 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/Convention/FilterConventionTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/Convention/FilterConventionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters.Expressions; using HotChocolate.Execution; using HotChocolate.Language; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorComparableTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorComparableTests.cs index 19c1332fcf0..3556ced255c 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorComparableTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorComparableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorEnumTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorEnumTests.cs index 0823960f272..867b5c5e85f 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorEnumTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/Expression/QueryableFilterVisitorEnumTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/ExtensionsTest.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/ExtensionsTest.cs index ef13d232c4a..6cb3511ff6f 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/ExtensionsTest.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/ExtensionsTest.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/FilterAttributeTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/FilterAttributeTests.cs index a086fb68784..8a88f785d7e 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/FilterAttributeTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/FilterAttributeTests.cs @@ -1,7 +1,6 @@ using System.Reflection; using HotChocolate.Types; using HotChocolate.Types.Descriptors; -using CookieCrumble; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/FilterInputTypeTest.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/FilterInputTypeTest.cs index 63e55d41e3e..3a79e23fbc5 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/FilterInputTypeTest.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/FilterInputTypeTest.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Configuration; using HotChocolate.Data.Filters; using HotChocolate.Data.Filters.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/IdFilterTypeInterceptorTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/IdFilterTypeInterceptorTests.cs index cf76a95cd85..b4dd7d78fdc 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/IdFilterTypeInterceptorTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/IdFilterTypeInterceptorTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..841340c61d7 --- /dev/null +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.Tests; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/QueryableFilteringExtensionsTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/QueryableFilteringExtensionsTests.cs index e36ba4630b5..9f9e536f3d5 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/QueryableFilteringExtensionsTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/QueryableFilteringExtensionsTests.cs @@ -1,5 +1,4 @@ using System.Reflection; -using CookieCrumble; using HotChocolate.Data.Filters.Expressions; using HotChocolate.Execution; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/Types/BooleanOperationInputTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/Types/BooleanOperationInputTests.cs index 54a584d4ce0..62f4846bf56 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/Types/BooleanOperationInputTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/Types/BooleanOperationInputTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/Types/ComparableOperationInputTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/Types/ComparableOperationInputTests.cs index 777a902fef5..85f2cfb846c 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/Types/ComparableOperationInputTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/Types/ComparableOperationInputTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/Types/EnumOperationInputTypeTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/Types/EnumOperationInputTypeTests.cs index 4e8d87a665e..a43a02b621a 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/Types/EnumOperationInputTypeTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/Types/EnumOperationInputTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/Types/ListFilterInputTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/Types/ListFilterInputTests.cs index 57d27121319..502c59116cb 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/Types/ListFilterInputTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/Types/ListFilterInputTests.cs @@ -1,5 +1,4 @@ using HotChocolate.Types; -using CookieCrumble; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/Types/MethodOperationInputTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/Types/MethodOperationInputTests.cs index cfae12f415c..5ed573d6764 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/Types/MethodOperationInputTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/Types/MethodOperationInputTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Data.Filters; public class MethodOperationInputTests diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/Types/ObjectInputTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/Types/ObjectInputTests.cs index ee298f28e30..ae70eff7d4e 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/Types/ObjectInputTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/Types/ObjectInputTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Filters.Tests/Types/StringOperationInputTests.cs b/src/HotChocolate/Data/test/Data.Filters.Tests/Types/StringOperationInputTests.cs index 243f08ebfb7..1c321a37ad8 100644 --- a/src/HotChocolate/Data/test/Data.Filters.Tests/Types/StringOperationInputTests.cs +++ b/src/HotChocolate/Data/test/Data.Filters.Tests/Types/StringOperationInputTests.cs @@ -1,5 +1,4 @@ using HotChocolate.Types; -using CookieCrumble; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/HotChocolate.Data.Projections.SqlServer.Tests.csproj b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/HotChocolate.Data.Projections.SqlServer.Tests.csproj index 012608b27f6..d0e257f79a0 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/HotChocolate.Data.Projections.SqlServer.Tests.csproj +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/HotChocolate.Data.Projections.SqlServer.Tests.csproj @@ -6,6 +6,7 @@ + diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..11c7d3f3faf --- /dev/null +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.Projections; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableFirstOrDefaultTests.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableFirstOrDefaultTests.cs index a67e2e049df..ca4af659ef1 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableFirstOrDefaultTests.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableFirstOrDefaultTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.EntityFrameworkCore; diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionExtensionsTests.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionExtensionsTests.cs index 03ef8061d7f..0d5f78c5f97 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionExtensionsTests.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionExtensionsTests.cs @@ -1,5 +1,4 @@ using System.Reflection; -using CookieCrumble; using HotChocolate.Data.Projections.Expressions; using HotChocolate.Execution; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionFilterTests.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionFilterTests.cs index 57d7696ac4a..9e6f0dff34d 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionFilterTests.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionFilterTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.EntityFrameworkCore; diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionHashSetTest.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionHashSetTest.cs index 737e7f6caaa..cffae5719ce 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionHashSetTest.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionHashSetTest.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.EntityFrameworkCore; diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionInterfaceTypeTests.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionInterfaceTypeTests.cs index 62ec3eba2a7..34cad99c1f9 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionInterfaceTypeTests.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionInterfaceTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.EntityFrameworkCore; diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionNestedTests.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionNestedTests.cs index 12b52c52f0f..4caf5fb1ac1 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionNestedTests.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionNestedTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.EntityFrameworkCore; diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionSetTest.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionSetTest.cs index 2f2d990dc60..d749c7e2934 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionSetTest.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionSetTest.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.EntityFrameworkCore; diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionSortedSetTest.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionSortedSetTest.cs index 142a2dbcbed..539a9237093 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionSortedSetTest.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionSortedSetTest.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.EntityFrameworkCore; diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionSortingTests.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionSortingTests.cs index 7353ca50aa3..287de7ea53d 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionSortingTests.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionSortingTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.EntityFrameworkCore; diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionUnionTypeTests.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionUnionTypeTests.cs index 723360f03d7..5f104fdaf34 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionUnionTypeTests.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionUnionTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.EntityFrameworkCore; diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionVisitorExecutableTests.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionVisitorExecutableTests.cs index 230b3568bda..f8c135924ae 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionVisitorExecutableTests.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionVisitorExecutableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionVisitorIsProjectedTests.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionVisitorIsProjectedTests.cs index 9a144ea919c..7527a0be799 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionVisitorIsProjectedTests.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionVisitorIsProjectedTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Projections; diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionVisitorPagingTests.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionVisitorPagingTests.cs index fef8b0f1a34..064a5fd1a06 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionVisitorPagingTests.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionVisitorPagingTests.cs @@ -1,5 +1,4 @@ using System.Reflection; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionVisitorScalarTests.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionVisitorScalarTests.cs index 5762cbc69a6..3b3fde804fa 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionVisitorScalarTests.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableProjectionVisitorScalarTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableSingleOrDefaultTests.cs b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableSingleOrDefaultTests.cs index 13b1cd0e415..4c721aa8419 100644 --- a/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableSingleOrDefaultTests.cs +++ b/src/HotChocolate/Data/test/Data.Projections.SqlServer.Tests/QueryableSingleOrDefaultTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.EntityFrameworkCore; diff --git a/src/HotChocolate/Data/test/Data.Projections.Tests/HotChocolate.Data.Projections.Tests.csproj b/src/HotChocolate/Data/test/Data.Projections.Tests/HotChocolate.Data.Projections.Tests.csproj index 72a14e0e450..0e437af12de 100644 --- a/src/HotChocolate/Data/test/Data.Projections.Tests/HotChocolate.Data.Projections.Tests.csproj +++ b/src/HotChocolate/Data/test/Data.Projections.Tests/HotChocolate.Data.Projections.Tests.csproj @@ -6,6 +6,7 @@ + diff --git a/src/HotChocolate/Data/test/Data.Projections.Tests/IntegrationTests.cs b/src/HotChocolate/Data/test/Data.Projections.Tests/IntegrationTests.cs index 6668a4dbec5..cf270e4224d 100644 --- a/src/HotChocolate/Data/test/Data.Projections.Tests/IntegrationTests.cs +++ b/src/HotChocolate/Data/test/Data.Projections.Tests/IntegrationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using HotChocolate.Types.Relay; diff --git a/src/HotChocolate/Data/test/Data.Projections.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Projections.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..9ec3dcfa4cf --- /dev/null +++ b/src/HotChocolate/Data/test/Data.Projections.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Data/test/Data.Projections.Tests/ProjectionsAttributeTests.cs b/src/HotChocolate/Data/test/Data.Projections.Tests/ProjectionsAttributeTests.cs index bf24e6b8668..39a6acf9864 100644 --- a/src/HotChocolate/Data/test/Data.Projections.Tests/ProjectionsAttributeTests.cs +++ b/src/HotChocolate/Data/test/Data.Projections.Tests/ProjectionsAttributeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; namespace HotChocolate.Data; diff --git a/src/HotChocolate/Data/test/Data.Projections.Tests/SelectionContextTests.cs b/src/HotChocolate/Data/test/Data.Projections.Tests/SelectionContextTests.cs index 9f0cd797f7a..dc147983cd5 100644 --- a/src/HotChocolate/Data/test/Data.Projections.Tests/SelectionContextTests.cs +++ b/src/HotChocolate/Data/test/Data.Projections.Tests/SelectionContextTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Projections.Context; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..df44e0254da --- /dev/null +++ b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.Sorting; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableFilterVisitorInterfacesTests.cs b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableFilterVisitorInterfacesTests.cs index cc6737f1c78..577442021ca 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableFilterVisitorInterfacesTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableFilterVisitorInterfacesTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Execution; diff --git a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorBooleanTests.cs b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorBooleanTests.cs index ab47d286619..14e5d8b48a5 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorBooleanTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorBooleanTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorComparableTests.cs b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorComparableTests.cs index 795fe1b3faa..f3526eb0972 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorComparableTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorComparableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorEnumTests.cs b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorEnumTests.cs index a04b0c12ddc..e4b938bf375 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorEnumTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorEnumTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorExecutableTests.cs b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorExecutableTests.cs index 1bd30962ae9..7f4d6451776 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorExecutableTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorExecutableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting; 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 379b189a5c7..ebed28d608e 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorExpressionTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorExpressionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorObjectTests.cs b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorObjectTests.cs index d25eaa3ef3f..5cca23d7394 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorObjectTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorObjectTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorStringTests.cs b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorStringTests.cs index f8f1e3077f9..de9616f571a 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorStringTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorStringTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorVariablesTests.cs b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorVariablesTests.cs index ae4b7cbde61..093163bac51 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorVariablesTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.InMemory.Tests/QueryableSortVisitorVariablesTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.AspNetCore.Tests.Utilities; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; diff --git a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..df44e0254da --- /dev/null +++ b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.Sorting; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorBooleanTests.cs b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorBooleanTests.cs index 3d64c5313d8..fa3f1ff2c1c 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorBooleanTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorBooleanTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorComparableTests.cs b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorComparableTests.cs index fee1a3835a3..9ec5aa55d47 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorComparableTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorComparableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorEnumTests.cs b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorEnumTests.cs index a5ac82b354a..5c4bd6dbd8a 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorEnumTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorEnumTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorExecutableTests.cs b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorExecutableTests.cs index f50c48b22d6..d4f5641039a 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorExecutableTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorExecutableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting; 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 89f923081bc..c24f21831a0 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorExpressionTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorExpressionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorObjectTests.cs b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorObjectTests.cs index 5ebc5767f71..10740b25e9c 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorObjectTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorObjectTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting.Expressions; diff --git a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorStringTests.cs b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorStringTests.cs index 8d00041f693..35a765c146e 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorStringTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.SqlLite.Tests/QueryableSortVisitorStringTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/Context/SortingContextTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/Context/SortingContextTests.cs index cdb682780dd..e0f75eb969d 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/Context/SortingContextTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/Context/SortingContextTests.cs @@ -1,5 +1,4 @@ using System.Collections.Immutable; -using CookieCrumble; using HotChocolate.Data.Sorting.Expressions; using HotChocolate.Execution; using HotChocolate.Types; 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 9e0043f7c5b..45d3c0a74e8 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/Convention/SortConventionScopeTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/Convention/SortConventionScopeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/Convention/SortConventionTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/Convention/SortConventionTests.cs index 12e2e8e1acc..6fb8e0e1aa6 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/Convention/SortConventionTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/Convention/SortConventionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting.Expressions; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/ExtensionsTest.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/ExtensionsTest.cs index e7f7d8297c6..94f8dd8a58b 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/ExtensionsTest.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/ExtensionsTest.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/IntegrationTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/IntegrationTests.cs index e8f3090ddd6..ecfd6940769 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/IntegrationTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/IntegrationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..841340c61d7 --- /dev/null +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.Tests; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/QueryableSortingExtensionsTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/QueryableSortingExtensionsTests.cs index 3b3fe47fe68..b50df36b3c9 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/QueryableSortingExtensionsTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/QueryableSortingExtensionsTests.cs @@ -1,5 +1,4 @@ using System.Reflection; -using CookieCrumble; using HotChocolate.Data.Sorting.Expressions; using HotChocolate.Execution; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/SortAttributeTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/SortAttributeTests.cs index 2391d6742a9..c2b3999c4af 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/SortAttributeTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/SortAttributeTests.cs @@ -1,5 +1,4 @@ using System.Reflection; -using CookieCrumble; using HotChocolate.Types; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Data/test/Data.Sorting.Tests/SortInputTypeTests.cs b/src/HotChocolate/Data/test/Data.Sorting.Tests/SortInputTypeTests.cs index b7fa841a6b8..09986760ee5 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/SortInputTypeTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/SortInputTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Data.Sorting.Expressions; using HotChocolate.Language; 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 58b5322f0a4..7f2dd7acda4 100644 --- a/src/HotChocolate/Data/test/Data.Sorting.Tests/Types/ObjectInputTests.cs +++ b/src/HotChocolate/Data/test/Data.Sorting.Tests/Types/ObjectInputTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Types; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Data/test/Data.Tests/ExecutableTests.cs b/src/HotChocolate/Data/test/Data.Tests/ExecutableTests.cs index 148ab0848cc..d2453c08c87 100644 --- a/src/HotChocolate/Data/test/Data.Tests/ExecutableTests.cs +++ b/src/HotChocolate/Data/test/Data.Tests/ExecutableTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Data; public class ExecutableTests(AuthorFixture authorFixture) : IClassFixture diff --git a/src/HotChocolate/Data/test/Data.Tests/IntegrationTests.cs b/src/HotChocolate/Data/test/Data.Tests/IntegrationTests.cs index ec14aa7d908..e228fe910a2 100644 --- a/src/HotChocolate/Data/test/Data.Tests/IntegrationTests.cs +++ b/src/HotChocolate/Data/test/Data.Tests/IntegrationTests.cs @@ -4,7 +4,6 @@ // ReSharper disable MemberCanBePrivate.Global // ReSharper disable MoveLocalFunctionAfterJumpStatement -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/Data/test/Data.Tests/ModuleInitializer.cs b/src/HotChocolate/Data/test/Data.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..9ec3dcfa4cf --- /dev/null +++ b/src/HotChocolate/Data/test/Data.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Data/test/Data.Tests/TypeValidationTests.cs b/src/HotChocolate/Data/test/Data.Tests/TypeValidationTests.cs index 10afe7d9ba6..1bd19721b20 100644 --- a/src/HotChocolate/Data/test/Data.Tests/TypeValidationTests.cs +++ b/src/HotChocolate/Data/test/Data.Tests/TypeValidationTests.cs @@ -1,5 +1,4 @@ using System.Reflection; -using CookieCrumble; using HotChocolate.Types; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Data/test/Directory.Build.props b/src/HotChocolate/Data/test/Directory.Build.props index 99b31a0cfb3..c88e1f6c5c9 100644 --- a/src/HotChocolate/Data/test/Directory.Build.props +++ b/src/HotChocolate/Data/test/Directory.Build.props @@ -7,11 +7,13 @@ + + - + diff --git a/src/HotChocolate/Diagnostics/test/Diagnostics.Tests/QueryInstrumentationTests.cs b/src/HotChocolate/Diagnostics/test/Diagnostics.Tests/QueryInstrumentationTests.cs index 43ee3e4a4f6..2385e2aea4f 100644 --- a/src/HotChocolate/Diagnostics/test/Diagnostics.Tests/QueryInstrumentationTests.cs +++ b/src/HotChocolate/Diagnostics/test/Diagnostics.Tests/QueryInstrumentationTests.cs @@ -1,5 +1,4 @@ using System.Diagnostics; -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Execution; using static HotChocolate.Diagnostics.ActivityTestHelper; diff --git a/src/HotChocolate/Diagnostics/test/Diagnostics.Tests/ServerInstrumentationTests.cs b/src/HotChocolate/Diagnostics/test/Diagnostics.Tests/ServerInstrumentationTests.cs index ab525e68685..c7fb066d6d3 100644 --- a/src/HotChocolate/Diagnostics/test/Diagnostics.Tests/ServerInstrumentationTests.cs +++ b/src/HotChocolate/Diagnostics/test/Diagnostics.Tests/ServerInstrumentationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.AspNetCore.TestHost; using Microsoft.Extensions.DependencyInjection; using HotChocolate.AspNetCore.Tests.Utilities; diff --git a/src/HotChocolate/Diagnostics/test/Directory.Build.props b/src/HotChocolate/Diagnostics/test/Directory.Build.props index 10887b0cce2..aba3882a0c5 100644 --- a/src/HotChocolate/Diagnostics/test/Directory.Build.props +++ b/src/HotChocolate/Diagnostics/test/Directory.Build.props @@ -7,6 +7,7 @@ + diff --git a/src/HotChocolate/Fusion-vnext/test/Fusion.Execution.Tests/Planning/InlineFragmentOperationRewriterTests.txt b/src/HotChocolate/Fusion-vnext/test/Fusion.Execution.Tests/Planning/InlineFragmentOperationRewriterTests.txt index 7b02a97ea74..07e96d0db34 100644 --- a/src/HotChocolate/Fusion-vnext/test/Fusion.Execution.Tests/Planning/InlineFragmentOperationRewriterTests.txt +++ b/src/HotChocolate/Fusion-vnext/test/Fusion.Execution.Tests/Planning/InlineFragmentOperationRewriterTests.txt @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Fusion.Planning; using HotChocolate.Fusion.Types.Completion; using HotChocolate.Language; diff --git a/src/HotChocolate/Fusion/src/Core/HotChocolate.Fusion.csproj b/src/HotChocolate/Fusion/src/Core/HotChocolate.Fusion.csproj index b5e5d259a77..dd03b000e15 100644 --- a/src/HotChocolate/Fusion/src/Core/HotChocolate.Fusion.csproj +++ b/src/HotChocolate/Fusion/src/Core/HotChocolate.Fusion.csproj @@ -14,7 +14,7 @@ - + diff --git a/src/HotChocolate/Fusion/test/CommandLine.Tests/ComposeCommandTests.cs b/src/HotChocolate/Fusion/test/CommandLine.Tests/ComposeCommandTests.cs index 81065092fd4..77658462bbf 100644 --- a/src/HotChocolate/Fusion/test/CommandLine.Tests/ComposeCommandTests.cs +++ b/src/HotChocolate/Fusion/test/CommandLine.Tests/ComposeCommandTests.cs @@ -1,6 +1,5 @@ using System.CommandLine.Parsing; using System.Text; -using CookieCrumble; using HotChocolate.Fusion; using HotChocolate.Fusion.CommandLine; using HotChocolate.Fusion.CommandLine.Helpers; diff --git a/src/HotChocolate/Fusion/test/CommandLine.Tests/ModuleInitializer.cs b/src/HotChocolate/Fusion/test/CommandLine.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..c971b1940bb --- /dev/null +++ b/src/HotChocolate/Fusion/test/CommandLine.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace CommandLine.Tests; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Fusion/test/CommandLine.Tests/PackageHelperTests.cs b/src/HotChocolate/Fusion/test/CommandLine.Tests/PackageHelperTests.cs index 57eba16426e..31968670509 100644 --- a/src/HotChocolate/Fusion/test/CommandLine.Tests/PackageHelperTests.cs +++ b/src/HotChocolate/Fusion/test/CommandLine.Tests/PackageHelperTests.cs @@ -1,6 +1,5 @@ using System.Text; using System.Text.Json; -using CookieCrumble; using HotChocolate.Fusion.CommandLine.Helpers; using HotChocolate.Fusion.Composition; using HotChocolate.Fusion.Shared; diff --git a/src/HotChocolate/Fusion/test/Composition.Tests/CompositionTestBase.cs b/src/HotChocolate/Fusion/test/Composition.Tests/CompositionTestBase.cs index dcd0e17fc8b..abf6d904dd5 100644 --- a/src/HotChocolate/Fusion/test/Composition.Tests/CompositionTestBase.cs +++ b/src/HotChocolate/Fusion/test/Composition.Tests/CompositionTestBase.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Fusion.Shared; using HotChocolate.Skimmed.Serialization; using Xunit.Abstractions; diff --git a/src/HotChocolate/Fusion/test/Composition.Tests/DataTypesTests.cs b/src/HotChocolate/Fusion/test/Composition.Tests/DataTypesTests.cs index f4de12386c7..02e72e46457 100644 --- a/src/HotChocolate/Fusion/test/Composition.Tests/DataTypesTests.cs +++ b/src/HotChocolate/Fusion/test/Composition.Tests/DataTypesTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Fusion.Shared; using HotChocolate.Skimmed.Serialization; using Xunit.Abstractions; diff --git a/src/HotChocolate/Fusion/test/Composition.Tests/DirectiveTests.cs b/src/HotChocolate/Fusion/test/Composition.Tests/DirectiveTests.cs index e5de954212e..0957b081a38 100644 --- a/src/HotChocolate/Fusion/test/Composition.Tests/DirectiveTests.cs +++ b/src/HotChocolate/Fusion/test/Composition.Tests/DirectiveTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Fusion.Composition.Features; using HotChocolate.Fusion.Metadata; using HotChocolate.Fusion.Shared; diff --git a/src/HotChocolate/Fusion/test/Composition.Tests/ModuleInitializer.cs b/src/HotChocolate/Fusion/test/Composition.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..713217fab87 --- /dev/null +++ b/src/HotChocolate/Fusion/test/Composition.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Fusion.Composition; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Fusion/test/Composition.Tests/RequireTests.cs b/src/HotChocolate/Fusion/test/Composition.Tests/RequireTests.cs index af6c165ef81..f826cba109d 100644 --- a/src/HotChocolate/Fusion/test/Composition.Tests/RequireTests.cs +++ b/src/HotChocolate/Fusion/test/Composition.Tests/RequireTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Fusion.Shared; using HotChocolate.Skimmed.Serialization; using Xunit.Abstractions; diff --git a/src/HotChocolate/Fusion/test/Composition.Tests/ResolverCompositionTests.cs b/src/HotChocolate/Fusion/test/Composition.Tests/ResolverCompositionTests.cs index bdced356f48..19f384a47ef 100644 --- a/src/HotChocolate/Fusion/test/Composition.Tests/ResolverCompositionTests.cs +++ b/src/HotChocolate/Fusion/test/Composition.Tests/ResolverCompositionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Xunit.Abstractions; namespace HotChocolate.Fusion.Composition; diff --git a/src/HotChocolate/Fusion/test/Composition.Tests/ResolverTests.cs b/src/HotChocolate/Fusion/test/Composition.Tests/ResolverTests.cs index e7e5ac80a2d..f9298cda11d 100644 --- a/src/HotChocolate/Fusion/test/Composition.Tests/ResolverTests.cs +++ b/src/HotChocolate/Fusion/test/Composition.Tests/ResolverTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Fusion.Shared; using HotChocolate.Skimmed.Serialization; using Xunit.Abstractions; diff --git a/src/HotChocolate/Fusion/test/Composition.Tests/TagTests.cs b/src/HotChocolate/Fusion/test/Composition.Tests/TagTests.cs index 79323b75ec0..79de1b7112e 100644 --- a/src/HotChocolate/Fusion/test/Composition.Tests/TagTests.cs +++ b/src/HotChocolate/Fusion/test/Composition.Tests/TagTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Fusion.Composition.Features; using HotChocolate.Fusion.Shared; using HotChocolate.Skimmed.Serialization; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/AutomaticMockingTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/AutomaticMockingTests.cs index 560e79b4a04..0b2f15d3da1 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/AutomaticMockingTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/AutomaticMockingTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Fusion.Shared; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/ConfigurationRewriterTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/ConfigurationRewriterTests.cs index ede2f4b2c4b..559094f767b 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/ConfigurationRewriterTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/ConfigurationRewriterTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Fusion.Composition; using HotChocolate.Fusion.Metadata; using HotChocolate.Fusion.Shared; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/DataTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/DataTests.cs index d4e658541eb..761168c2ce5 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/DataTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/DataTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Fusion.Composition; using HotChocolate.Fusion.Shared; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/DemoIntegrationTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/DemoIntegrationTests.cs index d6a7be5e7e9..645ccc51c96 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/DemoIntegrationTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/DemoIntegrationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Fusion.Composition; using HotChocolate.Fusion.Composition.Features; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/EventStreamTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/EventStreamTests.cs index 5c2acccf310..402b59b7eda 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/EventStreamTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/EventStreamTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Fusion.Clients; using HotChocolate.Fusion.Composition; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/FileUploadTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/FileUploadTests.cs index 5a8e2f5bb00..1e0a6e22825 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/FileUploadTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/FileUploadTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Fusion.Clients; using HotChocolate.Fusion.Composition; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/InterfaceTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/InterfaceTests.cs index 00651291f2b..69c77b05605 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/InterfaceTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/InterfaceTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Fusion.Composition; using HotChocolate.Fusion.Composition.Features; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/IntrospectionTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/IntrospectionTests.cs index 0a4873205d8..9cdf29e310a 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/IntrospectionTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/IntrospectionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Fusion.Composition; using HotChocolate.Fusion.Shared; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/ModuleInitializer.cs b/src/HotChocolate/Fusion/test/Core.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..baeee20b013 --- /dev/null +++ b/src/HotChocolate/Fusion/test/Core.Tests/ModuleInitializer.cs @@ -0,0 +1,13 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Fusion; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleFusion.Initialize(); + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Fusion/test/Core.Tests/RequestPipelineTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/RequestPipelineTests.cs index a8b8196d6df..232bc686b74 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/RequestPipelineTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/RequestPipelineTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Fetching; using HotChocolate.Fusion.Composition; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/RequestPlannerTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/RequestPlannerTests.cs index 9a77a56837d..a0d1ed10604 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/RequestPlannerTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/RequestPlannerTests.cs @@ -1,5 +1,4 @@ using System.Diagnostics.CodeAnalysis; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Execution.Processing; using HotChocolate.Fusion.Composition; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/SourceSchemaTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/SourceSchemaTests.cs index 86869e9909f..bbe0373dad8 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/SourceSchemaTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/SourceSchemaTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Fusion.SourceSchema.Types; using HotChocolate.Types.Relay; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/SubgraphErrorTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/SubgraphErrorTests.cs index 02e28226469..b6591cc64f2 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/SubgraphErrorTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/SubgraphErrorTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Fusion.Shared; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/TestHelper.cs b/src/HotChocolate/Fusion/test/Core.Tests/TestHelper.cs index 1d6d7304243..5a7e4ccdab5 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/TestHelper.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/TestHelper.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Execution.Serialization; using HotChocolate.Fusion.Execution.Nodes; diff --git a/src/HotChocolate/Fusion/test/Core.Tests/UnionTests.cs b/src/HotChocolate/Fusion/test/Core.Tests/UnionTests.cs index 60392133e65..94eef46c543 100644 --- a/src/HotChocolate/Fusion/test/Core.Tests/UnionTests.cs +++ b/src/HotChocolate/Fusion/test/Core.Tests/UnionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Fusion.Clients; using HotChocolate.Fusion.Composition; diff --git a/src/HotChocolate/Fusion/test/Directory.Build.props b/src/HotChocolate/Fusion/test/Directory.Build.props index fcbcf43ec20..a1d76dbc5d1 100644 --- a/src/HotChocolate/Fusion/test/Directory.Build.props +++ b/src/HotChocolate/Fusion/test/Directory.Build.props @@ -8,11 +8,15 @@ + + + - + + diff --git a/src/HotChocolate/Fusion/test/Shared/Authors/Book.cs b/src/HotChocolate/Fusion/test/Shared/Authors/Book.cs index b78b2548c89..1c66a3fce8d 100644 --- a/src/HotChocolate/Fusion/test/Shared/Authors/Book.cs +++ b/src/HotChocolate/Fusion/test/Shared/Authors/Book.cs @@ -1,4 +1,3 @@ - namespace HotChocolate.Fusion.Shared.Authors; public class Book diff --git a/src/HotChocolate/Fusion/test/Shared/Extensions/SnapshotExtensions.cs b/src/HotChocolate/Fusion/test/Shared/Extensions/SnapshotExtensions.cs index 01c3d24b7d8..929a4e3b9d7 100644 --- a/src/HotChocolate/Fusion/test/Shared/Extensions/SnapshotExtensions.cs +++ b/src/HotChocolate/Fusion/test/Shared/Extensions/SnapshotExtensions.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using HotChocolate.Skimmed; using HotChocolate.Skimmed.Serialization; diff --git a/src/HotChocolate/Fusion/test/Shared/HotChocolate.Fusion.Tests.Shared.csproj b/src/HotChocolate/Fusion/test/Shared/HotChocolate.Fusion.Tests.Shared.csproj index 5f0f775df54..bbf41eca8c7 100644 --- a/src/HotChocolate/Fusion/test/Shared/HotChocolate.Fusion.Tests.Shared.csproj +++ b/src/HotChocolate/Fusion/test/Shared/HotChocolate.Fusion.Tests.Shared.csproj @@ -9,6 +9,7 @@ + diff --git a/src/HotChocolate/Language/test/Directory.Build.props b/src/HotChocolate/Language/test/Directory.Build.props index e48d84d3818..008f418e208 100644 --- a/src/HotChocolate/Language/test/Directory.Build.props +++ b/src/HotChocolate/Language/test/Directory.Build.props @@ -7,11 +7,12 @@ - + + - + diff --git a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/ArgumentNodeTests.cs b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/ArgumentNodeTests.cs index 95a3a79d471..6e77ed5212a 100644 --- a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/ArgumentNodeTests.cs +++ b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/ArgumentNodeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Xunit; namespace HotChocolate.Language.SyntaxTree; diff --git a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/DirectiveDefinitionNodeTests.cs b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/DirectiveDefinitionNodeTests.cs index 8f05db48ff9..7b021bae86c 100644 --- a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/DirectiveDefinitionNodeTests.cs +++ b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/DirectiveDefinitionNodeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Xunit; namespace HotChocolate.Language.SyntaxTree; diff --git a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SchemaCoordinateTests.cs b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SchemaCoordinateTests.cs index 2c731d8a440..eebaf9dd8be 100644 --- a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SchemaCoordinateTests.cs +++ b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SchemaCoordinateTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Xunit; namespace HotChocolate.Language.SyntaxTree; diff --git a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SelectionSetNodeTests.cs b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SelectionSetNodeTests.cs index cf0d987efb8..00a5b0510e2 100644 --- a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SelectionSetNodeTests.cs +++ b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/SelectionSetNodeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Xunit; namespace HotChocolate.Language.SyntaxTree; diff --git a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/QuerySyntaxPrinterTests.cs b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/QuerySyntaxPrinterTests.cs index 7da54ee7022..fd04cc0f018 100644 --- a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/QuerySyntaxPrinterTests.cs +++ b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/QuerySyntaxPrinterTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Xunit; namespace HotChocolate.Language.SyntaxTree.Utilities; diff --git a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/SchemaSyntaxPrinterTests.cs b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/SchemaSyntaxPrinterTests.cs index 0a96c8d1343..acdde6158f0 100644 --- a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/SchemaSyntaxPrinterTests.cs +++ b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/SchemaSyntaxPrinterTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Xunit; namespace HotChocolate.Language.SyntaxTree.Utilities; diff --git a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/VariableDefinitionNodeTests.cs b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/VariableDefinitionNodeTests.cs index c692c5d57be..4d8a1044dc0 100644 --- a/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/VariableDefinitionNodeTests.cs +++ b/src/HotChocolate/Language/test/Language.SyntaxTree.Tests/VariableDefinitionNodeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Xunit; namespace HotChocolate.Language.SyntaxTree; diff --git a/src/HotChocolate/Language/test/Language.Tests/ModuleInitializer.cs b/src/HotChocolate/Language/test/Language.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..4b9416795de --- /dev/null +++ b/src/HotChocolate/Language/test/Language.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Language; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Language/test/Language.Tests/Parser/BlockStringTokenReaderTests.cs b/src/HotChocolate/Language/test/Language.Tests/Parser/BlockStringTokenReaderTests.cs index 47538e55f27..918e169c39e 100644 --- a/src/HotChocolate/Language/test/Language.Tests/Parser/BlockStringTokenReaderTests.cs +++ b/src/HotChocolate/Language/test/Language.Tests/Parser/BlockStringTokenReaderTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using Xunit; namespace HotChocolate.Language; diff --git a/src/HotChocolate/Language/test/Language.Tests/Parser/DirectiveParserTests.cs b/src/HotChocolate/Language/test/Language.Tests/Parser/DirectiveParserTests.cs index b297ee0c86b..d83b18542b3 100644 --- a/src/HotChocolate/Language/test/Language.Tests/Parser/DirectiveParserTests.cs +++ b/src/HotChocolate/Language/test/Language.Tests/Parser/DirectiveParserTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using Xunit; namespace HotChocolate.Language; diff --git a/src/HotChocolate/Language/test/Language.Tests/Parser/GraphQLParserSyntaxTests.cs b/src/HotChocolate/Language/test/Language.Tests/Parser/GraphQLParserSyntaxTests.cs index 561e0efa349..821a1c95742 100644 --- a/src/HotChocolate/Language/test/Language.Tests/Parser/GraphQLParserSyntaxTests.cs +++ b/src/HotChocolate/Language/test/Language.Tests/Parser/GraphQLParserSyntaxTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using Xunit; namespace HotChocolate.Language; diff --git a/src/HotChocolate/Language/test/Language.Tests/Parser/GraphQLRequestParserTests.cs b/src/HotChocolate/Language/test/Language.Tests/Parser/GraphQLRequestParserTests.cs index dc6973f8e67..2f26d075d7b 100644 --- a/src/HotChocolate/Language/test/Language.Tests/Parser/GraphQLRequestParserTests.cs +++ b/src/HotChocolate/Language/test/Language.Tests/Parser/GraphQLRequestParserTests.cs @@ -1,7 +1,6 @@ using System.Diagnostics.CodeAnalysis; using System.Security.Cryptography; using System.Text; -using CookieCrumble; using Newtonsoft.Json; using Xunit; diff --git a/src/HotChocolate/Language/test/Language.Tests/Parser/KitchenSinkParserTests.cs b/src/HotChocolate/Language/test/Language.Tests/Parser/KitchenSinkParserTests.cs index 6f72a44ce42..beb104fa16e 100644 --- a/src/HotChocolate/Language/test/Language.Tests/Parser/KitchenSinkParserTests.cs +++ b/src/HotChocolate/Language/test/Language.Tests/Parser/KitchenSinkParserTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using Xunit; using static CookieCrumble.Formatters.SnapshotValueFormatters; diff --git a/src/HotChocolate/Language/test/Language.Tests/Parser/NumberTokenReaderTests.cs b/src/HotChocolate/Language/test/Language.Tests/Parser/NumberTokenReaderTests.cs index 695bb667781..016ec811960 100644 --- a/src/HotChocolate/Language/test/Language.Tests/Parser/NumberTokenReaderTests.cs +++ b/src/HotChocolate/Language/test/Language.Tests/Parser/NumberTokenReaderTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using Xunit; namespace HotChocolate.Language; diff --git a/src/HotChocolate/Language/test/Language.Tests/Parser/PunctuatorTokenReaderTests.cs b/src/HotChocolate/Language/test/Language.Tests/Parser/PunctuatorTokenReaderTests.cs index 370f589dd25..d9b2c5cc426 100644 --- a/src/HotChocolate/Language/test/Language.Tests/Parser/PunctuatorTokenReaderTests.cs +++ b/src/HotChocolate/Language/test/Language.Tests/Parser/PunctuatorTokenReaderTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using Xunit; namespace HotChocolate.Language; diff --git a/src/HotChocolate/Language/test/Language.Tests/Parser/QueryParserTests.cs b/src/HotChocolate/Language/test/Language.Tests/Parser/QueryParserTests.cs index b64716369e7..1c0f32737ba 100644 --- a/src/HotChocolate/Language/test/Language.Tests/Parser/QueryParserTests.cs +++ b/src/HotChocolate/Language/test/Language.Tests/Parser/QueryParserTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using Xunit; using static CookieCrumble.Formatters.SnapshotValueFormatters; diff --git a/src/HotChocolate/Language/test/Language.Tests/Parser/ReaderTests.cs b/src/HotChocolate/Language/test/Language.Tests/Parser/ReaderTests.cs index 390e61fe713..68b3c009150 100644 --- a/src/HotChocolate/Language/test/Language.Tests/Parser/ReaderTests.cs +++ b/src/HotChocolate/Language/test/Language.Tests/Parser/ReaderTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using Xunit; namespace HotChocolate.Language; diff --git a/src/HotChocolate/Language/test/Language.Tests/Parser/SchemCoordinateParserTests.cs b/src/HotChocolate/Language/test/Language.Tests/Parser/SchemCoordinateParserTests.cs index 6f3b100fac5..45772ea94ac 100644 --- a/src/HotChocolate/Language/test/Language.Tests/Parser/SchemCoordinateParserTests.cs +++ b/src/HotChocolate/Language/test/Language.Tests/Parser/SchemCoordinateParserTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using Xunit; namespace HotChocolate.Language; diff --git a/src/HotChocolate/Language/test/Language.Tests/Parser/SchemaParserTests.cs b/src/HotChocolate/Language/test/Language.Tests/Parser/SchemaParserTests.cs index 3ba0f5640f6..73e0b5c094b 100644 --- a/src/HotChocolate/Language/test/Language.Tests/Parser/SchemaParserTests.cs +++ b/src/HotChocolate/Language/test/Language.Tests/Parser/SchemaParserTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using Xunit; namespace HotChocolate.Language; diff --git a/src/HotChocolate/Language/test/Language.Tests/Utilities/SyntaxPrinterTests.cs b/src/HotChocolate/Language/test/Language.Tests/Utilities/SyntaxPrinterTests.cs index 9d7f331424d..438539ed588 100644 --- a/src/HotChocolate/Language/test/Language.Tests/Utilities/SyntaxPrinterTests.cs +++ b/src/HotChocolate/Language/test/Language.Tests/Utilities/SyntaxPrinterTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Xunit; namespace HotChocolate.Language.Utilities; diff --git a/src/HotChocolate/Language/test/Language.Tests/Visitors/SyntaxRewriterTests.cs b/src/HotChocolate/Language/test/Language.Tests/Visitors/SyntaxRewriterTests.cs index d855fc427db..9881cd46926 100644 --- a/src/HotChocolate/Language/test/Language.Tests/Visitors/SyntaxRewriterTests.cs +++ b/src/HotChocolate/Language/test/Language.Tests/Visitors/SyntaxRewriterTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language.Utilities; using Xunit; using static HotChocolate.Language.Utf8GraphQLParser; diff --git a/src/HotChocolate/Language/test/Language.Web.Tests/MD5DocumentHashProviderTests.cs b/src/HotChocolate/Language/test/Language.Web.Tests/MD5DocumentHashProviderTests.cs index 32eec4c5f4b..639e5dcd2fc 100644 --- a/src/HotChocolate/Language/test/Language.Web.Tests/MD5DocumentHashProviderTests.cs +++ b/src/HotChocolate/Language/test/Language.Web.Tests/MD5DocumentHashProviderTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Language; public class MD5DocumentHashProviderTests diff --git a/src/HotChocolate/Language/test/Language.Web.Tests/Sha1DocumentHashProviderTests.cs b/src/HotChocolate/Language/test/Language.Web.Tests/Sha1DocumentHashProviderTests.cs index 1713d179d8a..0a40e362eb8 100644 --- a/src/HotChocolate/Language/test/Language.Web.Tests/Sha1DocumentHashProviderTests.cs +++ b/src/HotChocolate/Language/test/Language.Web.Tests/Sha1DocumentHashProviderTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Language; public class Sha1DocumentHashProviderTests diff --git a/src/HotChocolate/Language/test/Language.Web.Tests/Sha256DocumentHashProviderTests.cs b/src/HotChocolate/Language/test/Language.Web.Tests/Sha256DocumentHashProviderTests.cs index 431c954b494..7a7378b6ed9 100644 --- a/src/HotChocolate/Language/test/Language.Web.Tests/Sha256DocumentHashProviderTests.cs +++ b/src/HotChocolate/Language/test/Language.Web.Tests/Sha256DocumentHashProviderTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Language; public class Sha256DocumentHashProviderTests diff --git a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/FilteringAndPaging.cs b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/FilteringAndPaging.cs index 6362f7798aa..b2cd42c272c 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/FilteringAndPaging.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/FilteringAndPaging.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/IntegrationTests.cs b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/IntegrationTests.cs index 882bc335bfe..2f1b0661bd1 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/IntegrationTests.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/IntegrationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Marten; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/ModuleInitializer.cs b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..9ec3dcfa4cf --- /dev/null +++ b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorBooleanTests.cs b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorBooleanTests.cs index 20ec0eb79ce..ad689e75f84 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorBooleanTests.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorBooleanTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorComparableTests.cs b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorComparableTests.cs index 8d054acb2cf..ff1fbd81a41 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorComparableTests.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorComparableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorEnumTests.cs b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorEnumTests.cs index da3485dd45b..32bcd0b021e 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorEnumTests.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorEnumTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorExecutableTests.cs b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorExecutableTests.cs index 54fd0cd5c8e..3e8731c0b84 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorExecutableTests.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorExecutableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorInterfacesTests.cs b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorInterfacesTests.cs index c73b02eabcb..62e8c8a1ff5 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorInterfacesTests.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorInterfacesTests.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations; -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorListTests.cs b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorListTests.cs index 08c70a82dcb..44e5ad1e79c 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorListTests.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorListTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorObjectTests.cs b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorObjectTests.cs index 3b582de1569..2220f87e3d9 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorObjectTests.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorObjectTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorStringTests.cs b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorStringTests.cs index 421a8bd560a..e5e17e0330c 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorStringTests.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Filters.Tests/QueryableFilterVisitorStringTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/ModuleInitializer.cs b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..9ec3dcfa4cf --- /dev/null +++ b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorBooleanTests.cs b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorBooleanTests.cs index 253fd9e2cae..e40d0481baa 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorBooleanTests.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorBooleanTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Execution; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorComparableTests.cs b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorComparableTests.cs index 1e3898abcfb..d2cbb6e6989 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorComparableTests.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorComparableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Execution; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorEnumTests.cs b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorEnumTests.cs index 445ddb3b9c7..d1d296ac88d 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorEnumTests.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorEnumTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Execution; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorExecutableTests.cs b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorExecutableTests.cs index d5df4d0761a..821d7c2364b 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorExecutableTests.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorExecutableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Execution; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorExpressionTests.cs b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorExpressionTests.cs index e96fe0683d4..761fb9eb3f3 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorExpressionTests.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorExpressionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorObjectTests.cs b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorObjectTests.cs index 16a5af2009b..652cead4754 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorObjectTests.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorObjectTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Execution; diff --git a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorStringTests.cs b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorStringTests.cs index 36d9f2d92ce..4f8042759a8 100644 --- a/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorStringTests.cs +++ b/src/HotChocolate/Marten/test/Data.Marten.Sorting.Tests/QueryableSortVisitorStringTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Execution; diff --git a/src/HotChocolate/Marten/test/Directory.Build.props b/src/HotChocolate/Marten/test/Directory.Build.props index 10887b0cce2..ec781d79004 100644 --- a/src/HotChocolate/Marten/test/Directory.Build.props +++ b/src/HotChocolate/Marten/test/Directory.Build.props @@ -7,11 +7,13 @@ + + - + diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/ModuleInitializer.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..b76dc7a24eb --- /dev/null +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.MongoDb.Filters; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbAggregateFluentTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbAggregateFluentTests.cs index 16268791557..0c75306149e 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbAggregateFluentTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbAggregateFluentTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbCollectionTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbCollectionTests.cs index 7804c78b825..5adf603de75 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbCollectionTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbCollectionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterCombinatorTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterCombinatorTests.cs index 1816d423f6a..a24d2ec0db7 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterCombinatorTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterCombinatorTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorBooleanTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorBooleanTests.cs index 28106f353ed..446336adba3 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorBooleanTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorBooleanTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorComparableTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorComparableTests.cs index b3534a3a70c..4566d8f8113 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorComparableTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorComparableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorDateOnlyTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorDateOnlyTests.cs index 747b2ab9d9f..bd9fadc289c 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorDateOnlyTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorDateOnlyTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorEnumTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorEnumTests.cs index 467ccf6f080..ce8703e8da3 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorEnumTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorEnumTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorListTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorListTests.cs index 0c88af3f807..2ffc2e4e785 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorListTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorListTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorObjectIdTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorObjectIdTests.cs index 556fc9316b3..acd4c526225 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorObjectIdTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorObjectIdTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorObjectTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorObjectTests.cs index d811bcdba7c..91a5ada493a 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorObjectTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorObjectTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorStringTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorStringTests.cs index 37307e1eea4..a6f393b3ae3 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorStringTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorStringTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorTimeOnlyTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorTimeOnlyTests.cs index e207d4abe24..b7d175bc776 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorTimeOnlyTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFilterVisitorTimeOnlyTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFindFluentTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFindFluentTests.cs index 175716312a6..41588ac8e60 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFindFluentTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/MongoDbFindFluentTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbCursorPagingAggregateFluentTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbCursorPagingAggregateFluentTests.cs index 834a11f7f67..f37410b8960 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbCursorPagingAggregateFluentTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbCursorPagingAggregateFluentTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.MongoDb.Filters; using HotChocolate.Execution; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbCursorPagingFindFluentTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbCursorPagingFindFluentTests.cs index 8394c42af53..6cdd88334cf 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbCursorPagingFindFluentTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbCursorPagingFindFluentTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.MongoDb.Filters; using HotChocolate.Execution; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbOffsetPagingAggregateTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbOffsetPagingAggregateTests.cs index e6549be23da..de89bd8d9f8 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbOffsetPagingAggregateTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbOffsetPagingAggregateTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.MongoDb.Filters; using HotChocolate.Execution; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbOffsetPagingFindFluentTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbOffsetPagingFindFluentTests.cs index d61101de519..8a36877a82a 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbOffsetPagingFindFluentTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbOffsetPagingFindFluentTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.MongoDb.Filters; using HotChocolate.Execution; using HotChocolate.Resolvers; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbRelayTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbRelayTests.cs index d7735bbcc3b..437467cb0cd 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbRelayTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Paging.Tests/MongoDbRelayTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/MongoDbProjectionObjectsTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/MongoDbProjectionObjectsTests.cs index 6c8cc5a166f..991d2af1fb5 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/MongoDbProjectionObjectsTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/MongoDbProjectionObjectsTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/MongoDbProjectionVisitorIsProjectedTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/MongoDbProjectionVisitorIsProjectedTests.cs index adaa5d99bf4..353e072d34e 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/MongoDbProjectionVisitorIsProjectedTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/MongoDbProjectionVisitorIsProjectedTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/MongoDbProjectionVisitorPagingTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/MongoDbProjectionVisitorPagingTests.cs index 0014011a5a0..9f45b3d96d7 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/MongoDbProjectionVisitorPagingTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/MongoDbProjectionVisitorPagingTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/MongoDbProjectionVisitorScalarTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/MongoDbProjectionVisitorScalarTests.cs index 8179999bf53..46a28ab68e9 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/MongoDbProjectionVisitorScalarTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Projections.Tests/MongoDbProjectionVisitorScalarTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbAggregateFluentTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbAggregateFluentTests.cs index 7af4a6fe775..e7405c31d05 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbAggregateFluentTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbAggregateFluentTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbCollectionTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbCollectionTests.cs index 795a31d5078..72b7c1bd296 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbCollectionTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbCollectionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbFindFluentTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbFindFluentTests.cs index 4a39cad6cc9..243419ed6a6 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbFindFluentTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbFindFluentTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorBooleanTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorBooleanTests.cs index 17499e613b8..cb2ae0a4402 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorBooleanTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorBooleanTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Execution; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorComparableTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorComparableTests.cs index 302e7819aa6..f56907c26a2 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorComparableTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorComparableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Execution; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorEnumTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorEnumTests.cs index 7cab6c6aefd..4f0650ec77f 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorEnumTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorEnumTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Execution; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorObjectTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorObjectTests.cs index 7358654a909..bda04ddfc39 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorObjectTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorObjectTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Execution; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorStringTests.cs b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorStringTests.cs index 24de41aa157..78ac7362fdd 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorStringTests.cs +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Sorting.Tests/MongoDbSortVisitorStringTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Sorting; using HotChocolate.Execution; using MongoDB.Bson; diff --git a/src/HotChocolate/MongoDb/test/Directory.Build.props b/src/HotChocolate/MongoDb/test/Directory.Build.props index 10887b0cce2..ec781d79004 100644 --- a/src/HotChocolate/MongoDb/test/Directory.Build.props +++ b/src/HotChocolate/MongoDb/test/Directory.Build.props @@ -7,11 +7,13 @@ + + - + diff --git a/src/HotChocolate/MongoDb/test/Types.MongoDb/BsonTypeTests.cs b/src/HotChocolate/MongoDb/test/Types.MongoDb/BsonTypeTests.cs index 376d6cd75e5..f136c3e8a9b 100644 --- a/src/HotChocolate/MongoDb/test/Types.MongoDb/BsonTypeTests.cs +++ b/src/HotChocolate/MongoDb/test/Types.MongoDb/BsonTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/MongoDb/test/Types.MongoDb/ModuleInitializer.cs b/src/HotChocolate/MongoDb/test/Types.MongoDb/ModuleInitializer.cs new file mode 100644 index 00000000000..f4200c1d7b0 --- /dev/null +++ b/src/HotChocolate/MongoDb/test/Types.MongoDb/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Types; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/MongoDb/test/Types.MongoDb/ObjectIdTypeTests.cs b/src/HotChocolate/MongoDb/test/Types.MongoDb/ObjectIdTypeTests.cs index d81dbe4a712..e58c3c8c70d 100644 --- a/src/HotChocolate/MongoDb/test/Types.MongoDb/ObjectIdTypeTests.cs +++ b/src/HotChocolate/MongoDb/test/Types.MongoDb/ObjectIdTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types.MongoDb; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/OpenApi/test/Directory.Build.props b/src/HotChocolate/OpenApi/test/Directory.Build.props index b19d5615ebe..7f7f5e0b83b 100644 --- a/src/HotChocolate/OpenApi/test/Directory.Build.props +++ b/src/HotChocolate/OpenApi/test/Directory.Build.props @@ -7,6 +7,7 @@ + diff --git a/src/HotChocolate/OpenApi/test/HotChocolate.OpenApi.Tests/IntegrationTests.cs b/src/HotChocolate/OpenApi/test/HotChocolate.OpenApi.Tests/IntegrationTests.cs index edcc30fbc9c..5ac0c358b26 100644 --- a/src/HotChocolate/OpenApi/test/HotChocolate.OpenApi.Tests/IntegrationTests.cs +++ b/src/HotChocolate/OpenApi/test/HotChocolate.OpenApi.Tests/IntegrationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.OpenApi.Extensions; using Microsoft.AspNetCore.Builder; diff --git a/src/HotChocolate/OpenApi/test/HotChocolate.OpenApi.Tests/OpenApiMutableSchemaBuilderTests.cs b/src/HotChocolate/OpenApi/test/HotChocolate.OpenApi.Tests/OpenApiMutableSchemaBuilderTests.cs index 2ce33ea31e6..a44423d0826 100644 --- a/src/HotChocolate/OpenApi/test/HotChocolate.OpenApi.Tests/OpenApiMutableSchemaBuilderTests.cs +++ b/src/HotChocolate/OpenApi/test/HotChocolate.OpenApi.Tests/OpenApiMutableSchemaBuilderTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Skimmed.Serialization; using Microsoft.OpenApi.Readers; diff --git a/src/HotChocolate/Pagination/test/Directory.Build.props b/src/HotChocolate/Pagination/test/Directory.Build.props index 99b31a0cfb3..c88e1f6c5c9 100644 --- a/src/HotChocolate/Pagination/test/Directory.Build.props +++ b/src/HotChocolate/Pagination/test/Directory.Build.props @@ -7,11 +7,13 @@ + + - + diff --git a/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/HotChocolate.Pagination.EntityFramework.Tests.csproj b/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/HotChocolate.Pagination.EntityFramework.Tests.csproj index e96b8e5f86e..62b5b2b041d 100644 --- a/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/HotChocolate.Pagination.EntityFramework.Tests.csproj +++ b/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/HotChocolate.Pagination.EntityFramework.Tests.csproj @@ -6,6 +6,7 @@ + diff --git a/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/InterfaceIntegrationTests.cs b/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/InterfaceIntegrationTests.cs index a84680d5a60..eac09b46ce3 100644 --- a/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/InterfaceIntegrationTests.cs +++ b/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/InterfaceIntegrationTests.cs @@ -1,5 +1,4 @@ using System.Collections.Immutable; -using CookieCrumble; using GreenDonut; using GreenDonut.Selectors; using HotChocolate.Data.TestContext; diff --git a/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/ModuleInitializer.cs b/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..9ec3dcfa4cf --- /dev/null +++ b/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/PagingHelperIntegrationTests.cs b/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/PagingHelperIntegrationTests.cs index 3448144257a..a14fad53799 100644 --- a/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/PagingHelperIntegrationTests.cs +++ b/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/PagingHelperIntegrationTests.cs @@ -1,6 +1,5 @@ using System.Collections.Immutable; using HotChocolate.Data.TestContext; -using CookieCrumble; using GreenDonut; using GreenDonut.Selectors; using HotChocolate.Execution; diff --git a/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/PagingHelperTests.cs b/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/PagingHelperTests.cs index dbd46bb9e16..ac98c235439 100644 --- a/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/PagingHelperTests.cs +++ b/src/HotChocolate/Pagination/test/Pagination.EntityFramework.Tests/PagingHelperTests.cs @@ -1,6 +1,5 @@ using HotChocolate.Data.TestContext; using HotChocolate.Pagination; -using CookieCrumble; using Microsoft.EntityFrameworkCore; using Squadron; diff --git a/src/HotChocolate/PersistedOperations/test/Directory.Build.props b/src/HotChocolate/PersistedOperations/test/Directory.Build.props index 10887b0cce2..aba3882a0c5 100644 --- a/src/HotChocolate/PersistedOperations/test/Directory.Build.props +++ b/src/HotChocolate/PersistedOperations/test/Directory.Build.props @@ -7,6 +7,7 @@ + diff --git a/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/FileSystemOperationDocumentStorageTests.cs b/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/FileSystemOperationDocumentStorageTests.cs index 4bde3504cec..72fdce9483a 100644 --- a/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/FileSystemOperationDocumentStorageTests.cs +++ b/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/FileSystemOperationDocumentStorageTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Language.Utilities; diff --git a/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/IntegrationTests.cs b/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/IntegrationTests.cs index 018a3392f89..e5d572f59c1 100644 --- a/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/IntegrationTests.cs +++ b/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/IntegrationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Types; using HotChocolate.Execution; diff --git a/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/ServiceCollectionTests.cs b/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/ServiceCollectionTests.cs index 8b6b999425d..139232c8566 100644 --- a/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/ServiceCollectionTests.cs +++ b/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/ServiceCollectionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Utilities; diff --git a/src/HotChocolate/PersistedOperations/test/PersistedOperations.InMemory.Tests/IntegrationTests.cs b/src/HotChocolate/PersistedOperations/test/PersistedOperations.InMemory.Tests/IntegrationTests.cs index 530d3d04438..97ee85b69c7 100644 --- a/src/HotChocolate/PersistedOperations/test/PersistedOperations.InMemory.Tests/IntegrationTests.cs +++ b/src/HotChocolate/PersistedOperations/test/PersistedOperations.InMemory.Tests/IntegrationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Types; diff --git a/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/IntegrationTests.cs b/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/IntegrationTests.cs index 2840e9d75dc..ec1ac04b4b1 100644 --- a/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/IntegrationTests.cs +++ b/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/IntegrationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/RedisOperationDocumentStorageTests.cs b/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/RedisOperationDocumentStorageTests.cs index 03b21b12912..504b1cf4240 100644 --- a/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/RedisOperationDocumentStorageTests.cs +++ b/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/RedisOperationDocumentStorageTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Language.Utilities; diff --git a/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/ServiceCollectionExtensionsTests.cs b/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/ServiceCollectionExtensionsTests.cs index 9dee2f35e65..90c2b25e8ef 100644 --- a/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/ServiceCollectionExtensionsTests.cs +++ b/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/ServiceCollectionExtensionsTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Microsoft.Extensions.DependencyInjection; using HotChocolate.Utilities; using Squadron; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/ConventionTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/ConventionTests.cs index 3be757fdacc..4a47955920b 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/ConventionTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/ConventionTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace HotChocolate.Data.Filters; [Collection(SchemaCacheCollectionFixture.DefinitionName)] diff --git a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/Data.Raven.Filters.Tests.csproj b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/Data.Raven.Filters.Tests.csproj index a0409e24b16..44eb6b4c11f 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/Data.Raven.Filters.Tests.csproj +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/Data.Raven.Filters.Tests.csproj @@ -6,6 +6,7 @@ + diff --git a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/FilteringAndPaging.cs b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/FilteringAndPaging.cs index bf7afc2da02..69efd216ab8 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/FilteringAndPaging.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/FilteringAndPaging.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/ModuleInitializer.cs b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..4a0dbac9ef0 --- /dev/null +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.Filters; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorBooleanTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorBooleanTests.cs index 6baadca75e9..767a8269135 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorBooleanTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorBooleanTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorComparableTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorComparableTests.cs index ca911286854..e8a0effcc14 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorComparableTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorComparableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; 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 9219a80159e..fb170026738 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorEnumTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorEnumTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorExecutableTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorExecutableTests.cs index f2ccc1bd878..d7fa994c8f7 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorExecutableTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorExecutableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorInterfacesTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorInterfacesTests.cs index c2afdb4d521..dffb6526bc1 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorInterfacesTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorInterfacesTests.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Execution.Configuration; using HotChocolate.Types; 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 70f9e8f8a85..c91a4c20106 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorListTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorListTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorObjectTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorObjectTests.cs index 9ca654909cd..f96ef93e289 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorObjectTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorObjectTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using Microsoft.Extensions.DependencyInjection; using Raven.Client.Documents; 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 4b0d269625e..4e6c8e7063f 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorStringTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/QueryableFilterVisitorStringTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Filters; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/HotChocolate.Data.Raven.Paging.Tests.csproj b/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/HotChocolate.Data.Raven.Paging.Tests.csproj index cff51c36fb4..45f204931df 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/HotChocolate.Data.Raven.Paging.Tests.csproj +++ b/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/HotChocolate.Data.Raven.Paging.Tests.csproj @@ -6,6 +6,7 @@ + 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 65fee609440..72509b22127 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/RavenAsyncDocumentQueryTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/RavenAsyncDocumentQueryTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Raven.Filters; using HotChocolate.Data.Raven.Paging; using HotChocolate.Execution; 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 67eb191e376..f0d664a4a28 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/RavenDocumentQueryTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Paging.Tests/RavenDocumentQueryTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Raven.Filters; using HotChocolate.Data.Raven.Paging; using HotChocolate.Execution; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/HotChocolate.Data.Raven.Projections.Tests.csproj b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/HotChocolate.Data.Raven.Projections.Tests.csproj index 25f36803e19..2733bd17783 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/HotChocolate.Data.Raven.Projections.Tests.csproj +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/HotChocolate.Data.Raven.Projections.Tests.csproj @@ -6,6 +6,7 @@ + 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 0f36f534c74..31536b8f8b9 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableFirstOrDefaultTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableFirstOrDefaultTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Raven; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionFilterTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionFilterTests.cs index 890bc6c99ca..6e7623fc9a6 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionFilterTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionFilterTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Raven; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionHashSetTest.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionHashSetTest.cs index 48396d5c260..3e0c586bc4c 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionHashSetTest.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionHashSetTest.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Raven; 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 004f873fce1..3d0eaf4d207 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionInterfaceTypeTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionInterfaceTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Execution.Configuration; using HotChocolate.Types; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionNestedTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionNestedTests.cs index 11f77af16bb..8a645c7060f 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionNestedTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionNestedTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Raven; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionSetTest.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionSetTest.cs index a84363abb1a..8878f62051e 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionSetTest.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionSetTest.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Raven; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionSortedSetTest.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionSortedSetTest.cs index da579f6f4cf..19b51e75849 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionSortedSetTest.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionSortedSetTest.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Raven; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionSortingTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionSortingTests.cs index bf9d1ee4a38..57e975ef2ac 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionSortingTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionSortingTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Raven; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionUnionTypeTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionUnionTypeTests.cs index 3ef5e318d61..1ff65840e5d 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionUnionTypeTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionUnionTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Execution.Configuration; using HotChocolate.Types; 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 e92f76873ca..5a78bbb8275 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 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 10ce79f301c..1792ada5308 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 CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Raven; 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 7078bae289b..3da09e87d92 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorPagingTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableProjectionVisitorPagingTests.cs @@ -1,5 +1,4 @@ using System.Reflection; -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using HotChocolate.Types.Descriptors; 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 ef32d299254..d28bf620f22 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 CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableSingleOrDefaultTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableSingleOrDefaultTests.cs index 7eec205d2d1..4df865401d1 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableSingleOrDefaultTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Projections.Tests/QueryableSingleOrDefaultTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Raven; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/ModuleInitializer.cs b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..df44e0254da --- /dev/null +++ b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.Sorting; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorBooleanTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorBooleanTests.cs index 2d02d732db8..320461d3acf 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorBooleanTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorBooleanTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorComparableTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorComparableTests.cs index 1d5eb683f62..a037cbc43ce 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorComparableTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorComparableTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting; 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 74bdeaa10c6..6ffc1bbc2de 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 CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting.Expressions; 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 bedfc632262..2cd6d3ae623 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 CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorExpressionTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorExpressionTests.cs index 75792816a99..fab852a1cfc 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorExpressionTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorExpressionTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorObjectTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorObjectTests.cs index 87049d2b8b6..d8d6ec40ad0 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorObjectTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorObjectTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting.Expressions; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorStringTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorStringTests.cs index 80ecd266a45..abac7e9086d 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorStringTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Sorting.Tests/QueryableSortVisitorStringTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; namespace HotChocolate.Data.Sorting; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Tests/AnnotationBasedTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Tests/AnnotationBasedTests.cs index bb36949a61f..ac39f877d9f 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Tests/AnnotationBasedTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Tests/AnnotationBasedTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using Microsoft.Extensions.DependencyInjection; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Tests/Data.Raven.Tests.csproj b/src/HotChocolate/Raven/test/Data.Raven.Tests/Data.Raven.Tests.csproj index 3a4e50eb6c3..6d2cacd652d 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Tests/Data.Raven.Tests.csproj +++ b/src/HotChocolate/Raven/test/Data.Raven.Tests/Data.Raven.Tests.csproj @@ -6,6 +6,7 @@ + diff --git a/src/HotChocolate/Raven/test/Data.Raven.Tests/DataExtensionsTests.cs b/src/HotChocolate/Raven/test/Data.Raven.Tests/DataExtensionsTests.cs index b06941ad15a..ef6bc3f8d39 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Tests/DataExtensionsTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Tests/DataExtensionsTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; 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 95674230d0b..159dc8dd48d 100644 --- a/src/HotChocolate/Raven/test/Data.Raven.Tests/FluentApiTests.cs +++ b/src/HotChocolate/Raven/test/Data.Raven.Tests/FluentApiTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types; using HotChocolate.Types.Pagination; diff --git a/src/HotChocolate/Raven/test/Data.Raven.Tests/ModuleInitializer.cs b/src/HotChocolate/Raven/test/Data.Raven.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..8779dd16985 --- /dev/null +++ b/src/HotChocolate/Raven/test/Data.Raven.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Data.Raven.Test; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Raven/test/Directory.Build.props b/src/HotChocolate/Raven/test/Directory.Build.props index 10887b0cce2..ec781d79004 100644 --- a/src/HotChocolate/Raven/test/Directory.Build.props +++ b/src/HotChocolate/Raven/test/Directory.Build.props @@ -7,11 +7,13 @@ + + - + diff --git a/src/HotChocolate/Skimmed/test/Directory.Build.props b/src/HotChocolate/Skimmed/test/Directory.Build.props index 11f48acab0b..e640393171a 100644 --- a/src/HotChocolate/Skimmed/test/Directory.Build.props +++ b/src/HotChocolate/Skimmed/test/Directory.Build.props @@ -7,6 +7,7 @@ + diff --git a/src/HotChocolate/Skimmed/test/Skimmed.Tests/RefactoringTests.cs b/src/HotChocolate/Skimmed/test/Skimmed.Tests/RefactoringTests.cs index 9c56571e428..855c10cca5c 100644 --- a/src/HotChocolate/Skimmed/test/Skimmed.Tests/RefactoringTests.cs +++ b/src/HotChocolate/Skimmed/test/Skimmed.Tests/RefactoringTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using HotChocolate.Skimmed.Serialization; using HotChocolate.Types; diff --git a/src/HotChocolate/Skimmed/test/Skimmed.Tests/SchemaFormatterTests.cs b/src/HotChocolate/Skimmed/test/Skimmed.Tests/SchemaFormatterTests.cs index 4db5a47fb1d..d418a406ab1 100644 --- a/src/HotChocolate/Skimmed/test/Skimmed.Tests/SchemaFormatterTests.cs +++ b/src/HotChocolate/Skimmed/test/Skimmed.Tests/SchemaFormatterTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using HotChocolate.Skimmed.Serialization; namespace HotChocolate.Skimmed; diff --git a/src/HotChocolate/Skimmed/test/Skimmed.Tests/ToStringTests.cs b/src/HotChocolate/Skimmed/test/Skimmed.Tests/ToStringTests.cs index db4ee2032cb..43f34296438 100644 --- a/src/HotChocolate/Skimmed/test/Skimmed.Tests/ToStringTests.cs +++ b/src/HotChocolate/Skimmed/test/Skimmed.Tests/ToStringTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; using HotChocolate.Skimmed.Serialization; namespace HotChocolate.Skimmed; diff --git a/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorContainsTests.cs b/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorContainsTests.cs index 868ffa4b8e9..28256bef7c3 100644 --- a/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorContainsTests.cs +++ b/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorContainsTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorDistanceTests.cs b/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorDistanceTests.cs index cf52e4123a3..b895a2bd373 100644 --- a/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorDistanceTests.cs +++ b/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorDistanceTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorIntersectTests.cs b/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorIntersectTests.cs index 7b84901e94c..759dde2d64c 100644 --- a/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorIntersectTests.cs +++ b/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorIntersectTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorOverlapsTests.cs b/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorOverlapsTests.cs index f1ef9c29ea0..58705d98c2c 100644 --- a/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorOverlapsTests.cs +++ b/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorOverlapsTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorTouchesTests.cs b/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorTouchesTests.cs index 38f574c43c7..fe9d9ebe8ff 100644 --- a/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorTouchesTests.cs +++ b/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorTouchesTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorWithinTests.cs b/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorWithinTests.cs index aab3ad5fc0c..c567118fc0a 100644 --- a/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorWithinTests.cs +++ b/src/HotChocolate/Spatial/test/Data.Filters.SqlServer.Tests/QueryableFilterVisitorWithinTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters; using HotChocolate.Execution; using NetTopologySuite.Geometries; 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 839ce06cb6a..ec7b8d8ace1 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 CookieCrumble; using HotChocolate.Execution; using NetTopologySuite.Geometries; using Squadron; diff --git a/src/HotChocolate/Spatial/test/Data.Tests/GeometryFilterTypeTests.cs b/src/HotChocolate/Spatial/test/Data.Tests/GeometryFilterTypeTests.cs index 0409837bf8c..00645ab5f44 100644 --- a/src/HotChocolate/Spatial/test/Data.Tests/GeometryFilterTypeTests.cs +++ b/src/HotChocolate/Spatial/test/Data.Tests/GeometryFilterTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Data.Filters.Spatial; using HotChocolate.Data.Filters.Spatial.Tests; using HotChocolate.Types; diff --git a/src/HotChocolate/Spatial/test/Directory.Build.props b/src/HotChocolate/Spatial/test/Directory.Build.props index 10887b0cce2..ec781d79004 100644 --- a/src/HotChocolate/Spatial/test/Directory.Build.props +++ b/src/HotChocolate/Spatial/test/Directory.Build.props @@ -7,11 +7,13 @@ + + - + diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonLineStringInputTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonLineStringInputTests.cs index b73589cbdf4..109b4a909d5 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonLineStringInputTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonLineStringInputTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonLineStringSerializerTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonLineStringSerializerTests.cs index 941e6b81a7d..20391e8b747 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonLineStringSerializerTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonLineStringSerializerTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Utilities; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonLineStringTypeTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonLineStringTypeTests.cs index f8942fe1379..364e3b6baf9 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonLineStringTypeTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonLineStringTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types.Descriptors; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiLineStringInputTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiLineStringInputTests.cs index 38f5075b705..ac7934fa273 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiLineStringInputTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiLineStringInputTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiLineStringSerializerTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiLineStringSerializerTests.cs index 5f1f5896ac1..dc886f25d9c 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiLineStringSerializerTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiLineStringSerializerTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Utilities; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiLineStringTypeTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiLineStringTypeTests.cs index 44253ac8ae0..3e88c29a080 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiLineStringTypeTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiLineStringTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types.Descriptors; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPointInputTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPointInputTests.cs index 95c7485baf6..f2d5eafc79c 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPointInputTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPointInputTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPointSerializerTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPointSerializerTests.cs index 6753efaab4f..4ff472a1f91 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPointSerializerTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPointSerializerTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Utilities; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPointTypeTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPointTypeTests.cs index d7d5f56386d..ab7d3faee03 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPointTypeTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPointTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types.Descriptors; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPolygonInputTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPolygonInputTests.cs index d96f41a1b8f..57d086de571 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPolygonInputTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPolygonInputTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPolygonSerializerTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPolygonSerializerTests.cs index 771fc780e65..079d72810d7 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPolygonSerializerTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPolygonSerializerTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Utilities; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPolygonTypeTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPolygonTypeTests.cs index 8dfa8b00774..195fa7354b7 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPolygonTypeTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonMultiPolygonTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types.Descriptors; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPointInputTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPointInputTests.cs index c56e6e4a950..46222040771 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPointInputTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPointInputTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPointSerializerTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPointSerializerTests.cs index 971e11d449d..b4771b784d3 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPointSerializerTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPointSerializerTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Utilities; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPointTypeTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPointTypeTests.cs index 4887127e172..bf5f90aea45 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPointTypeTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPointTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types.Descriptors; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPolygonInputTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPolygonInputTests.cs index 1e5281f2d83..fa84dfa6fc0 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPolygonInputTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPolygonInputTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Language; using HotChocolate.Types.Descriptors; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPolygonSerializerTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPolygonSerializerTests.cs index 1b443f9022d..339c42e4482 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPolygonSerializerTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPolygonSerializerTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language; using HotChocolate.Utilities; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPolygonTypeTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPolygonTypeTests.cs index d54ef3a4e01..09a648793c9 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPolygonTypeTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/GeoJsonPolygonTypeTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Execution; using HotChocolate.Types.Descriptors; using NetTopologySuite.Geometries; diff --git a/src/HotChocolate/Spatial/test/Types.Tests/ModuleInitializer.cs b/src/HotChocolate/Spatial/test/Types.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..975f81c9cb1 --- /dev/null +++ b/src/HotChocolate/Spatial/test/Types.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Types.Spatial; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Spatial/test/Types.Tests/TransformationIntegrationTests.cs b/src/HotChocolate/Spatial/test/Types.Tests/TransformationIntegrationTests.cs index 0d259861deb..8c723ec9716 100644 --- a/src/HotChocolate/Spatial/test/Types.Tests/TransformationIntegrationTests.cs +++ b/src/HotChocolate/Spatial/test/Types.Tests/TransformationIntegrationTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Configuration; using HotChocolate.Execution; using HotChocolate.Types.Descriptors.Definitions; diff --git a/src/HotChocolate/Utilities/test/Directory.Build.props b/src/HotChocolate/Utilities/test/Directory.Build.props index b922b3b7b96..6e5f9f04197 100644 --- a/src/HotChocolate/Utilities/test/Directory.Build.props +++ b/src/HotChocolate/Utilities/test/Directory.Build.props @@ -6,6 +6,10 @@ false + + + + diff --git a/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionClientTests.cs b/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionClientTests.cs index 0b8446e70e5..f94629c0fbd 100644 --- a/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionClientTests.cs +++ b/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionClientTests.cs @@ -1,5 +1,4 @@ using System.Net; -using CookieCrumble; using Xunit; using HotChocolate.AspNetCore.Tests.Utilities; diff --git a/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionFormatterTests.cs b/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionFormatterTests.cs index 57405d218af..48c1a149a25 100644 --- a/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionFormatterTests.cs +++ b/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionFormatterTests.cs @@ -1,5 +1,4 @@ using System.Text.Json; -using CookieCrumble; using Xunit; using static HotChocolate.Utilities.Introspection.IntrospectionClient; diff --git a/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionQueryBuilderTests.cs b/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionQueryBuilderTests.cs index a2b2c5a8bb5..1904c6bc082 100644 --- a/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionQueryBuilderTests.cs +++ b/src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/IntrospectionQueryBuilderTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using HotChocolate.Language.Utilities; using Xunit; diff --git a/src/StrawberryShake/Client/test/Core.Tests/Json/JsonErrorParserTests.cs b/src/StrawberryShake/Client/test/Core.Tests/Json/JsonErrorParserTests.cs index 000a2168146..b7d40980f35 100644 --- a/src/StrawberryShake/Client/test/Core.Tests/Json/JsonErrorParserTests.cs +++ b/src/StrawberryShake/Client/test/Core.Tests/Json/JsonErrorParserTests.cs @@ -1,5 +1,4 @@ using System.Text.Json; -using CookieCrumble; namespace StrawberryShake.Json; diff --git a/src/StrawberryShake/Client/test/Core.Tests/Json/JsonOperationRequestSerializerTests.cs b/src/StrawberryShake/Client/test/Core.Tests/Json/JsonOperationRequestSerializerTests.cs index 3ff46291685..257f1b2dcce 100644 --- a/src/StrawberryShake/Client/test/Core.Tests/Json/JsonOperationRequestSerializerTests.cs +++ b/src/StrawberryShake/Client/test/Core.Tests/Json/JsonOperationRequestSerializerTests.cs @@ -1,6 +1,5 @@ using System.Text; using System.Text.Json; -using CookieCrumble; namespace StrawberryShake.Json; diff --git a/src/StrawberryShake/Client/test/Directory.Build.props b/src/StrawberryShake/Client/test/Directory.Build.props index 4a65cc9f69c..6dd3bd77dca 100644 --- a/src/StrawberryShake/Client/test/Directory.Build.props +++ b/src/StrawberryShake/Client/test/Directory.Build.props @@ -7,6 +7,7 @@ + diff --git a/src/StrawberryShake/Client/test/Transport.Http.Tests/HttpConnectionTests.cs b/src/StrawberryShake/Client/test/Transport.Http.Tests/HttpConnectionTests.cs index 9b8c719609b..3aea9b7736a 100644 --- a/src/StrawberryShake/Client/test/Transport.Http.Tests/HttpConnectionTests.cs +++ b/src/StrawberryShake/Client/test/Transport.Http.Tests/HttpConnectionTests.cs @@ -1,6 +1,5 @@ using System.Text; using System.Text.Json; -using CookieCrumble; using HotChocolate.AspNetCore.Tests.Utilities; using StrawberryShake.Json; diff --git a/src/StrawberryShake/Client/test/Transport.InMemory.Tests/IntegrationTests.cs b/src/StrawberryShake/Client/test/Transport.InMemory.Tests/IntegrationTests.cs index cfb56c63aa1..5e8d7f688b6 100644 --- a/src/StrawberryShake/Client/test/Transport.InMemory.Tests/IntegrationTests.cs +++ b/src/StrawberryShake/Client/test/Transport.InMemory.Tests/IntegrationTests.cs @@ -1,6 +1,5 @@ using System.Text; using System.Text.Json; -using CookieCrumble; using HotChocolate.AspNetCore.Tests.Utilities; using HotChocolate.Execution; using HotChocolate.StarWars; diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/Messaging/OperationMessagesTest.cs b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/Messaging/OperationMessagesTest.cs index ee82128c68c..61a99c9c946 100644 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/Messaging/OperationMessagesTest.cs +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/Messaging/OperationMessagesTest.cs @@ -1,5 +1,4 @@ using System.Text.Json; -using CookieCrumble; using StrawberryShake.Transport.WebSockets.Messages; namespace StrawberryShake.Transport.WebSockets; diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/Protocols/GraphQLWebSocket/GraphQLWebSocketMessageParserTests.cs b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/Protocols/GraphQLWebSocket/GraphQLWebSocketMessageParserTests.cs index e7c26ebde32..d6975fd3070 100644 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/Protocols/GraphQLWebSocket/GraphQLWebSocketMessageParserTests.cs +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/Protocols/GraphQLWebSocket/GraphQLWebSocketMessageParserTests.cs @@ -1,7 +1,6 @@ using System.Buffers; using System.Runtime.Serialization; using System.Text; -using CookieCrumble; namespace StrawberryShake.Transport.WebSockets.Protocols; diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/Protocols/GraphQLWebSocket/GraphQLWebSocketProtocolTests.cs b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/Protocols/GraphQLWebSocket/GraphQLWebSocketProtocolTests.cs index 17b60067bb6..c283f677d04 100644 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/Protocols/GraphQLWebSocket/GraphQLWebSocketProtocolTests.cs +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/Protocols/GraphQLWebSocket/GraphQLWebSocketProtocolTests.cs @@ -1,6 +1,5 @@ using System.Text; using System.Text.Json; -using CookieCrumble; using Moq; using StrawberryShake.Transport.WebSockets.Messages; diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/Protocols/GraphQLWebSocket/GraphQLWebSocketWriterExtensionTests.cs b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/Protocols/GraphQLWebSocket/GraphQLWebSocketWriterExtensionTests.cs index 3f5950c3b90..855c4e17476 100644 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/Protocols/GraphQLWebSocket/GraphQLWebSocketWriterExtensionTests.cs +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/Protocols/GraphQLWebSocket/GraphQLWebSocketWriterExtensionTests.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; namespace StrawberryShake.Transport.WebSockets.Protocols; diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/SocketMessageWriterTest.cs b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/SocketMessageWriterTest.cs index 0760fb09a70..18c7dccd726 100644 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/SocketMessageWriterTest.cs +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/SocketMessageWriterTest.cs @@ -1,5 +1,4 @@ using System.Text; -using CookieCrumble; namespace StrawberryShake.Transport.WebSockets; diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/WebSocketClientTests.cs b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/WebSocketClientTests.cs index 1d8c20394fa..682b09b131c 100644 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/WebSocketClientTests.cs +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/WebSocketClientTests.cs @@ -1,5 +1,3 @@ -using CookieCrumble; - namespace StrawberryShake.Transport.WebSockets; public class WebSocketClientTests diff --git a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/WebSocketConnectionTests.cs b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/WebSocketConnectionTests.cs index 9625e1634c5..22feb72d56b 100644 --- a/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/WebSocketConnectionTests.cs +++ b/src/StrawberryShake/Client/test/Transport.WebSocket.Tests/WebSocketConnectionTests.cs @@ -1,6 +1,5 @@ using System.Text; using System.Text.Json; -using CookieCrumble; using Moq; using StrawberryShake.Transport.WebSockets.Messages; diff --git a/src/StrawberryShake/Tooling/test/Configuration.Tests/FileContentsTests.cs b/src/StrawberryShake/Tooling/test/Configuration.Tests/FileContentsTests.cs index 0557780f563..da3452df48e 100644 --- a/src/StrawberryShake/Tooling/test/Configuration.Tests/FileContentsTests.cs +++ b/src/StrawberryShake/Tooling/test/Configuration.Tests/FileContentsTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Xunit; namespace StrawberryShake.Tools.Configuration; diff --git a/src/StrawberryShake/Tooling/test/Configuration.Tests/GraphQLConfigTests.cs b/src/StrawberryShake/Tooling/test/Configuration.Tests/GraphQLConfigTests.cs index 9e3a6520078..2685d600200 100644 --- a/src/StrawberryShake/Tooling/test/Configuration.Tests/GraphQLConfigTests.cs +++ b/src/StrawberryShake/Tooling/test/Configuration.Tests/GraphQLConfigTests.cs @@ -1,4 +1,3 @@ -using CookieCrumble; using Xunit; namespace StrawberryShake.Tools.Configuration; diff --git a/src/StrawberryShake/Tooling/test/Directory.Build.props b/src/StrawberryShake/Tooling/test/Directory.Build.props index 2bc98e863ca..1a81da46f59 100644 --- a/src/StrawberryShake/Tooling/test/Directory.Build.props +++ b/src/StrawberryShake/Tooling/test/Directory.Build.props @@ -6,6 +6,10 @@ false + + + + From 3866227a78e496d212249318a7d2c35d2a31d197 Mon Sep 17 00:00:00 2001 From: Glen Date: Thu, 28 Nov 2024 15:35:47 +0200 Subject: [PATCH 2/4] Fixed tests --- .../CookieCrumble.HotChocolate.csproj | 1 + .../Formatters/GraphQLHttpResponseFormatter.cs | 9 +++++---- .../test/ApolloFederation.Tests/ModuleInitializer.cs | 12 ++++++++++++ .../ApolloFederation/test/Directory.Build.props | 3 ++- .../Caching/test/Caching.Tests/ModuleInitializer.cs | 12 ++++++++++++ src/HotChocolate/Caching/test/Directory.Build.props | 3 ++- src/HotChocolate/OpenApi/test/Directory.Build.props | 3 ++- .../HotChocolate.OpenApi.Tests/ModuleInitializer.cs | 12 ++++++++++++ .../PersistedOperations/test/Directory.Build.props | 3 ++- .../ModuleInitializer.cs | 12 ++++++++++++ .../ModuleInitializer.cs | 12 ++++++++++++ 11 files changed, 74 insertions(+), 8 deletions(-) create mode 100644 src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/Caching/test/Caching.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/OpenApi/test/HotChocolate.OpenApi.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/ModuleInitializer.cs create mode 100644 src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/ModuleInitializer.cs diff --git a/src/CookieCrumble/src/CookieCrumble.HotChocolate/CookieCrumble.HotChocolate.csproj b/src/CookieCrumble/src/CookieCrumble.HotChocolate/CookieCrumble.HotChocolate.csproj index 2bf135923e2..d177e47f486 100644 --- a/src/CookieCrumble/src/CookieCrumble.HotChocolate/CookieCrumble.HotChocolate.csproj +++ b/src/CookieCrumble/src/CookieCrumble.HotChocolate/CookieCrumble.HotChocolate.csproj @@ -9,6 +9,7 @@ + diff --git a/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/GraphQLHttpResponseFormatter.cs b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/GraphQLHttpResponseFormatter.cs index 9f0744914a3..ac7ac36a022 100644 --- a/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/GraphQLHttpResponseFormatter.cs +++ b/src/CookieCrumble/src/CookieCrumble.HotChocolate/Formatters/GraphQLHttpResponseFormatter.cs @@ -2,21 +2,22 @@ using System.Net.Http.Headers; using System.Text.Json; using CookieCrumble.Formatters; +using HotChocolate.Transport.Http; using Microsoft.AspNetCore.WebUtilities; namespace CookieCrumble.HotChocolate.Formatters; -internal sealed class GraphQLHttpResponseFormatter : SnapshotValueFormatter +internal sealed class GraphQLHttpResponseFormatter : SnapshotValueFormatter { - protected override void Format(IBufferWriter snapshot, HttpResponseMessage value) + protected override void Format(IBufferWriter snapshot, GraphQLHttpResponse value) { - var contentType = value.Content.Headers.ContentType; + var contentType = value.ContentHeaders.ContentType; if (string.Equals(contentType?.MediaType, "multipart/mixed", StringComparison.Ordinal)) { var boundary = contentType!.Parameters.First( t => string.Equals(t.Name, "boundary", StringComparison.Ordinal)); - FormatStreamAsync(snapshot, boundary, value.Content.ReadAsStream()).Wait(); + FormatStreamAsync(snapshot, boundary, value.HttpResponseMessage.Content.ReadAsStream()).Wait(); } } diff --git a/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ModuleInitializer.cs b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..ec7cd91d5b1 --- /dev/null +++ b/src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.ApolloFederation; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/ApolloFederation/test/Directory.Build.props b/src/HotChocolate/ApolloFederation/test/Directory.Build.props index aba3882a0c5..ec781d79004 100644 --- a/src/HotChocolate/ApolloFederation/test/Directory.Build.props +++ b/src/HotChocolate/ApolloFederation/test/Directory.Build.props @@ -8,11 +8,12 @@ + - + diff --git a/src/HotChocolate/Caching/test/Caching.Tests/ModuleInitializer.cs b/src/HotChocolate/Caching/test/Caching.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..5d8557db1b8 --- /dev/null +++ b/src/HotChocolate/Caching/test/Caching.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.Caching.Tests; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/Caching/test/Directory.Build.props b/src/HotChocolate/Caching/test/Directory.Build.props index ef4f2b57628..6169b24a476 100644 --- a/src/HotChocolate/Caching/test/Directory.Build.props +++ b/src/HotChocolate/Caching/test/Directory.Build.props @@ -8,10 +8,11 @@ + - + diff --git a/src/HotChocolate/OpenApi/test/Directory.Build.props b/src/HotChocolate/OpenApi/test/Directory.Build.props index 7f7f5e0b83b..cb0896020b2 100644 --- a/src/HotChocolate/OpenApi/test/Directory.Build.props +++ b/src/HotChocolate/OpenApi/test/Directory.Build.props @@ -8,11 +8,12 @@ + - + diff --git a/src/HotChocolate/OpenApi/test/HotChocolate.OpenApi.Tests/ModuleInitializer.cs b/src/HotChocolate/OpenApi/test/HotChocolate.OpenApi.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..87362ffdde0 --- /dev/null +++ b/src/HotChocolate/OpenApi/test/HotChocolate.OpenApi.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.OpenApi.Tests; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/PersistedOperations/test/Directory.Build.props b/src/HotChocolate/PersistedOperations/test/Directory.Build.props index aba3882a0c5..ec781d79004 100644 --- a/src/HotChocolate/PersistedOperations/test/Directory.Build.props +++ b/src/HotChocolate/PersistedOperations/test/Directory.Build.props @@ -8,11 +8,12 @@ + - + diff --git a/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/ModuleInitializer.cs b/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..a04c389eee0 --- /dev/null +++ b/src/HotChocolate/PersistedOperations/test/PersistedOperations.FileSystem.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.PersistedOperations.FileSystem; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} diff --git a/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/ModuleInitializer.cs b/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/ModuleInitializer.cs new file mode 100644 index 00000000000..827c05b6af5 --- /dev/null +++ b/src/HotChocolate/PersistedOperations/test/PersistedOperations.Redis.Tests/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace HotChocolate.PersistedOperations.Redis; + +internal static class ModuleInitializer +{ + [ModuleInitializer] + public static void Initialize() + { + CookieCrumbleHotChocolate.Initialize(); + } +} From e1b420871ea6ae2b5921f65bc1e938a92c39eece Mon Sep 17 00:00:00 2001 From: Glen Date: Thu, 28 Nov 2024 15:46:55 +0200 Subject: [PATCH 3/4] Fixed tests --- .../test/AspNetCore.Tests/HttpPostMiddlewareTests.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpPostMiddlewareTests.cs b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpPostMiddlewareTests.cs index 44938d0a04b..b7435626e80 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpPostMiddlewareTests.cs +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/HttpPostMiddlewareTests.cs @@ -5,6 +5,7 @@ using HotChocolate.AspNetCore.Tests.Utilities; using HotChocolate.Execution; using HotChocolate.Execution.Serialization; +using HotChocolate.Transport.Http; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; @@ -394,7 +395,7 @@ ... on Droid @defer(label: ""my_id"") }); // assert - result.MatchInlineSnapshot( + new GraphQLHttpResponse(result).MatchInlineSnapshot( """ { "data": { @@ -405,8 +406,7 @@ ... on Droid @defer(label: ""my_id"") "wait": true } } - """, - formatter: SnapshotValueFormatters.GraphQLHttp); + """); } [Fact] @@ -498,7 +498,7 @@ nodes @stream(initialCount: 1 label: ""foo"") { }); // assert - result.MatchInlineSnapshot( + new GraphQLHttpResponse(result).MatchInlineSnapshot( """ { "data": { @@ -521,8 +521,7 @@ nodes @stream(initialCount: 1 label: ""foo"") { "wait": true } } - """, - formatter: SnapshotValueFormatters.GraphQLHttp); + """); } [Fact] From 30849f0ee03a5048abdb1e1300afc7c5e4af8550 Mon Sep 17 00:00:00 2001 From: Glen Date: Thu, 28 Nov 2024 16:06:19 +0200 Subject: [PATCH 4/4] Removed unused file --- .../Extensions/SnapshotExtensions.cs | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/CookieCrumble/src/CookieCrumble.Fusion/Extensions/SnapshotExtensions.cs diff --git a/src/CookieCrumble/src/CookieCrumble.Fusion/Extensions/SnapshotExtensions.cs b/src/CookieCrumble/src/CookieCrumble.Fusion/Extensions/SnapshotExtensions.cs deleted file mode 100644 index ad4611cd935..00000000000 --- a/src/CookieCrumble/src/CookieCrumble.Fusion/Extensions/SnapshotExtensions.cs +++ /dev/null @@ -1,11 +0,0 @@ -using CookieCrumble.Fusion.Formatters; - -namespace CookieCrumble.Fusion; - -public static class SnapshotExtensions -{ - public static void TryRegisterFusionFormatters(this Snapshot _) - { - Snapshot.TryRegisterFormatter(SnapshotValueFormatters.QueryPlan); - } -}