0
kicks
Dependency injection in real world
Most of the blog posts I’ve seen present an ideal “perfect day” situation setup for writing the test which is not always the case in real world.
In this kind of “not-so-perfect” situations, service locator based solution I’ve presented in that blog post allowed me to increase testability and introduce TDD into existing code bases and environments not so much interested in the TDD.