@@ -141,9 +141,9 @@ protected List<TodoItem> CreateTodoWithOwner()
141141
142142 public class HooksTestsSetup : HooksDummyData
143143 {
144- ( Mock < ITargetedFields > , Mock < IIncludeService > , Mock < IGenericProcessorFactory > , IJsonApiOptions ) CreateMocks ( )
144+ ( Mock < ITargetedFields > , Mock < IIncludeService > , Mock < IGenericServiceFactory > , IJsonApiOptions ) CreateMocks ( )
145145 {
146- var pfMock = new Mock < IGenericProcessorFactory > ( ) ;
146+ var pfMock = new Mock < IGenericServiceFactory > ( ) ;
147147 var ufMock = new Mock < ITargetedFields > ( ) ;
148148 var iqsMock = new Mock < IIncludeService > ( ) ;
149149 var optionsMock = new JsonApiOptions { LoaDatabaseValues = false } ;
@@ -156,7 +156,7 @@ public class HooksTestsSetup : HooksDummyData
156156 // creates the resource definition mock and corresponding ImplementedHooks discovery instance
157157 var mainResource = CreateResourceDefinition ( mainDiscovery ) ;
158158
159- // mocking the GenericProcessorFactory and JsonApiContext and wiring them up.
159+ // mocking the genericServiceFactory and JsonApiContext and wiring them up.
160160 var ( ufMock , iqMock , gpfMock , options ) = CreateMocks ( ) ;
161161
162162 SetupProcessorFactoryForResourceDefinition ( gpfMock , mainResource . Object , mainDiscovery , null ) ;
@@ -181,7 +181,7 @@ public class HooksTestsSetup : HooksDummyData
181181 var mainResource = CreateResourceDefinition ( mainDiscovery ) ;
182182 var nestedResource = CreateResourceDefinition ( nestedDiscovery ) ;
183183
184- // mocking the GenericProcessorFactory and JsonApiContext and wiring them up.
184+ // mocking the genericServiceFactory and JsonApiContext and wiring them up.
185185 var ( ufMock , iqMock , gpfMock , options ) = CreateMocks ( ) ;
186186
187187 var dbContext = repoDbContextOptions != null ? new AppDbContext ( repoDbContextOptions ) : null ;
@@ -212,7 +212,7 @@ public class HooksTestsSetup : HooksDummyData
212212 var firstNestedResource = CreateResourceDefinition ( firstNestedDiscovery ) ;
213213 var secondNestedResource = CreateResourceDefinition ( secondNestedDiscovery ) ;
214214
215- // mocking the GenericProcessorFactory and JsonApiContext and wiring them up.
215+ // mocking the genericServiceFactory and JsonApiContext and wiring them up.
216216 var ( ufMock , iqMock , gpfMock , options ) = CreateMocks ( ) ;
217217
218218 var dbContext = repoDbContextOptions != null ? new AppDbContext ( repoDbContextOptions ) : null ;
@@ -311,17 +311,17 @@ void MockHooks<TModel>(Mock<IResourceHookContainer<TModel>> resourceDefinition)
311311 }
312312
313313 void SetupProcessorFactoryForResourceDefinition < TModel > (
314- Mock < IGenericProcessorFactory > processorFactory ,
314+ Mock < IGenericServiceFactory > processorFactory ,
315315 IResourceHookContainer < TModel > modelResource ,
316316 IHooksDiscovery < TModel > discovery ,
317317 AppDbContext dbContext = null
318318 )
319319 where TModel : class , IIdentifiable < int >
320320 {
321- processorFactory . Setup ( c => c . GetProcessor < IResourceHookContainer > ( typeof ( ResourceDefinition < > ) , typeof ( TModel ) ) )
321+ processorFactory . Setup ( c => c . Gett < <IResourceHookContainer > ( typeof ( ResourceDefinition < > ) , typeof ( TModel ) ) )
322322 . Returns ( modelResource ) ;
323323
324- processorFactory . Setup ( c => c . GetProcessor < IHooksDiscovery > ( typeof ( IHooksDiscovery < > ) , typeof ( TModel ) ) )
324+ processorFactory . Setup ( c => c . Gett < <IHooksDiscovery > ( typeof ( IHooksDiscovery < > ) , typeof ( TModel ) ) )
325325 . Returns ( discovery ) ;
326326
327327 if ( dbContext != null )
@@ -330,7 +330,7 @@ void SetupProcessorFactoryForResourceDefinition<TModel>(
330330 if ( idType == typeof ( int ) )
331331 {
332332 IResourceReadRepository < TModel , int > repo = CreateTestRepository < TModel > ( dbContext ) ;
333- processorFactory . Setup ( c => c . GetProcessor < IResourceReadRepository < TModel , int > > ( typeof ( IResourceReadRepository < , > ) , typeof ( TModel ) , typeof ( int ) ) ) . Returns ( repo ) ;
333+ processorFactory . Setup ( c => c . Gett < <IResourceReadRepository < TModel , int > > ( typeof ( IResourceReadRepository < , > ) , typeof ( TModel ) , typeof ( int ) ) ) . Returns ( repo ) ;
334334 }
335335 else
336336 {
0 commit comments