injectCRUDMock method
Inject a fake implementation of this injected model.
- Required parameters:
creationFunction
(positional parameter): the fake creation function
Implementation
void injectCRUDMock(ICRUD<T, P> Function() fakeRepository) {
dispose();
RM.disposeAll();
_cachedRepoMocks.add(fakeRepository);
}