View Code? Open in Web Editor
NEW
A simple Console App implementing Dependency Inversion Principle and Dependency Injecting them
diprinciple's Introduction
Dependency Inversion Principle(DIP) And Dependency Injection Principle Implementation
- This project is a simple Gist of me trying to implement DIP and Injecting them using the 3 Dependency Injection types.
Dependency Inversion Principle. It is part of the SOLID Principle. It is the D in the Principle. It stays that:
- High-level modules should not import anything from low-level modules. Both should depend on abstractions (e.g., interfaces).
- Abstractions should not depend on details. Details (concrete implementations) should depend on abstractions.
Dependency Injection types implemented
- Constructor Injection
- Property Injection
- Method Injection
![DipDiagram](/images/dip.png)
![DipDiagram](/images/DipOutput.png)
diprinciple's People
Contributors
Watchers