4 ms·
I have been considering replacing static dependencies with a simple IoC container for simple services because of that. that way I can just instance a FakeRepos
by leidenfrost 4y ago
I have been considering replacing static dependencies with a simple IoC container for simple services because of that.
that way I can just instance a FakeRepository, inject it into RealService, and then inject it into RealController.
That way you can create an integration testing way more straightforward