Question OOP-SOLID-0047
MediumWhy does dependency injection make unit testing easier?
- A.
A fake or mock implementation can be passed in place of the real database or service
- B.
It removes the need for tests
- C.
Sign up free to see the answer and a step-by-step explanation.