> or if class instances were always invoked directly without magic.
Then you can't provide a test seam.
Dependency injection + mocking is a very powerful concept.
Then you can't provide a test seam.
Dependency injection + mocking is a very powerful concept.
Definitely. I do 99% of my dependency injection as constructor "injection".
Injection frameworks and Whitebox testing just introduce layers of complexity that can be very difficult to debug
Definitely. I do 99% of my dependency injection as constructor "injection".
Injection frameworks and Whitebox testing just introduce layers of complexity that can be very difficult to debug