|
1 | | -using System.Collections.Generic; |
2 | 1 | using FluentAssertions; |
3 | | -using JetBrains.Annotations; |
4 | 2 | using JsonApiDotNetCore.Configuration; |
5 | 3 | using JsonApiDotNetCore.Hooks; |
6 | 4 | using JsonApiDotNetCore.Middleware; |
@@ -154,49 +152,5 @@ public void Can_add_resource_hooks_definition_from_current_assembly_to_container |
154 | 152 | var resourceHooksDefinition = services.GetRequiredService<ResourceHooksDefinition<TestResource>>(); |
155 | 153 | resourceHooksDefinition.Should().BeOfType<TestResourceHooksDefinition>(); |
156 | 154 | } |
157 | | - |
158 | | - [UsedImplicitly(ImplicitUseTargetFlags.Members)] |
159 | | - public sealed class TestResource : Identifiable |
160 | | - { |
161 | | - } |
162 | | - |
163 | | - [UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)] |
164 | | - public sealed class TestResourceService : JsonApiResourceService<TestResource> |
165 | | - { |
166 | | - public TestResourceService(IResourceRepositoryAccessor repositoryAccessor, IQueryLayerComposer queryLayerComposer, |
167 | | - IPaginationContext paginationContext, IJsonApiOptions options, ILoggerFactory loggerFactory, IJsonApiRequest request, |
168 | | - IResourceChangeTracker<TestResource> resourceChangeTracker, IResourceHookExecutorFacade hookExecutor) |
169 | | - : base(repositoryAccessor, queryLayerComposer, paginationContext, options, loggerFactory, request, resourceChangeTracker, hookExecutor) |
170 | | - { |
171 | | - } |
172 | | - } |
173 | | - |
174 | | - [UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)] |
175 | | - public sealed class TestResourceRepository : EntityFrameworkCoreRepository<TestResource> |
176 | | - { |
177 | | - public TestResourceRepository(ITargetedFields targetedFields, IDbContextResolver contextResolver, IResourceGraph resourceGraph, |
178 | | - IResourceFactory resourceFactory, IEnumerable<IQueryConstraintProvider> constraintProviders, ILoggerFactory loggerFactory) |
179 | | - : base(targetedFields, contextResolver, resourceGraph, resourceFactory, constraintProviders, loggerFactory) |
180 | | - { |
181 | | - } |
182 | | - } |
183 | | - |
184 | | - [UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)] |
185 | | - public sealed class TestResourceHooksDefinition : ResourceHooksDefinition<TestResource> |
186 | | - { |
187 | | - public TestResourceHooksDefinition(IResourceGraph resourceGraph) |
188 | | - : base(resourceGraph) |
189 | | - { |
190 | | - } |
191 | | - } |
192 | | - |
193 | | - [UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)] |
194 | | - public sealed class TestResourceDefinition : JsonApiResourceDefinition<TestResource> |
195 | | - { |
196 | | - public TestResourceDefinition(IResourceGraph resourceGraph) |
197 | | - : base(resourceGraph) |
198 | | - { |
199 | | - } |
200 | | - } |
201 | 155 | } |
202 | 156 | } |
0 commit comments