3 ms·
I still need a good reason why I need DI built into a framework and the following is not sufficient: SomeClass.SomeDep = MockDep; In other words, inject thr
by Touche 10y ago
I still need a good reason why I need DI built into a framework and the following is not sufficient:
SomeClass.SomeDep = MockDep;
In other words, inject through static properties. I do this with normal classes to test models and the like with no issues. No DI container necessary.