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.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.