@@ -130,7 +130,6 @@ protected List<TodoItem> CreateTodoWithOwner()
130
130
var articles = new List < Article > ( ) { articleTagsSubset , articleWithAllTags } ;
131
131
return ( articles , allJoins , allTags ) ;
132
132
}
133
-
134
133
}
135
134
136
135
public class HooksTestsSetup : HooksDummyData
@@ -169,7 +168,6 @@ public class HooksTestsSetup : HooksDummyData
169
168
// mocking the GenericProcessorFactory and JsonApiContext and wiring them up.
170
169
( var context , var processorFactory ) = CreateContextAndProcessorMocks ( ) ;
171
170
172
-
173
171
var dbContext = repoDbContextOptions != null ? new AppDbContext ( repoDbContextOptions ) : null ;
174
172
175
173
SetupProcessorFactoryForResourceDefinition ( processorFactory , mainResource . Object , mainDiscovery , context . Object , dbContext ) ;
@@ -276,12 +274,10 @@ void MockHooks<TModel>(Mock<IResourceHookContainer<TModel>> resourceDefinition)
276
274
resourceDefinition
277
275
. Setup ( rd => rd . BeforeImplicitUpdateRelationship ( It . IsAny < IRelationshipsDictionary < TModel > > ( ) , It . IsAny < ResourcePipeline > ( ) ) )
278
276
. Verifiable ( ) ;
279
-
280
277
resourceDefinition
281
278
. Setup ( rd => rd . OnReturn ( It . IsAny < HashSet < TModel > > ( ) , It . IsAny < ResourcePipeline > ( ) ) )
282
279
. Returns < IEnumerable < TModel > , ResourcePipeline > ( ( entities , context ) => entities )
283
280
. Verifiable ( ) ;
284
-
285
281
resourceDefinition
286
282
. Setup ( rd => rd . AfterCreate ( It . IsAny < HashSet < TModel > > ( ) , It . IsAny < ResourcePipeline > ( ) ) )
287
283
. Verifiable ( ) ;
@@ -294,8 +290,6 @@ void MockHooks<TModel>(Mock<IResourceHookContainer<TModel>> resourceDefinition)
294
290
resourceDefinition
295
291
. Setup ( rd => rd . AfterDelete ( It . IsAny < HashSet < TModel > > ( ) , It . IsAny < ResourcePipeline > ( ) , It . IsAny < bool > ( ) ) )
296
292
. Verifiable ( ) ;
297
-
298
-
299
293
}
300
294
301
295
( Mock < IJsonApiContext > , Mock < IGenericProcessorFactory > ) CreateContextAndProcessorMocks ( )
0 commit comments