2 points · by rmord · 14y ago · 2 comments
What are some of the practices when we "do not" use dependency injection (DI)? What arguments exists for not using DI for these scenarios?
You can always get away with using "sinful hacks" (in the eyes of some DI evangelists) like wrapping dependencies in a getter/setter if you just want to inject a mock version for testing.
http://tutorials.jenkov.com/dependency-injection/when-to-use...