3 ms·
Show me a complaint about "dependency injection" as a concept, and I'll show you someone who does little or no unit testing. The only real ways to do it are de
by StevePerkins 5y ago
Show me a complaint about "dependency injection" as a concept, and I'll show you someone who does little or no unit testing.
The only real ways to do it are dependency-injecting mocks, or else maybe a Python-style "patch" approach where you're literally overwriting portions of the code under test at runtime. I've seen the latter kinda-sorta work in Python shops, but the former is far more sane.