2 ms·
Serious question: what is a dependency injection framework? If I need to pass in a mock/fake for testing, then I define an interface for that dependency and pas
by physicles 3y ago
Serious question: what is a dependency injection framework? If I need to pass in a mock/fake for testing, then I define an interface for that dependency and pass it in as a parameter. Takes a couple minutes. Why does this need a framework?