Constructor Injection
A class asks for its dependencies in its constructor and keeps them in readonly fields. Whoever creates it passes them in, so a test can pass a fake.
Updated

- Category
- C#
- Level
- Journeyman
- Tags
- Constructor Injection (oop), c-sharp, Dependency Injection (oop), OOP, Stub and Fake, Test Double