I have implemented the singleton pattern on both repositories. Pay attention that to be able to implement it, the Fake Repositories are now implementing the standard Repositories instead of extending them as there is now a factory in place of a parameterless constructor. And so I had to use a delegate to call the not overridden methods.
I have implemented the singleton pattern on both repositories. Pay attention that to be able to implement it, the Fake Repositories are now implementing the standard Repositories instead of extending them as there is now a factory in place of a parameterless constructor. And so I had to use a delegate to call the not overridden methods.