All Questions
Tagged with factory-pattern mocking
1 question
0
votes
1
answer
2k
views
How to avoid "mock returning mock" when using factory pattern
I have recently encountered multiple articles with title Everytime a mock returns a mock a fairy dies And I ran into exact same situation while using factory class in my code. I am writing a sample ...