Hi PJ , great article, I really learnt a lot.
Lehlohonolo Isaac

HI Lehlohonolo.

Great question, I was waiting for someone to ask. So in the ProductRepositoryImplementation you can create a singleton mapper that you can reset the Implementation with your mock. You can also use a dependency container and swop out the implementations that way. Ill be creating another article that will show how you can do this soon.

Like what you read? Give Peter-John Welcome a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.