Do you inject your dependencies?
Rules to Better MVC|f6113a94-ea9d-4c29-9f67-4770573c432d
v2.0
Posted at
2/11/2012 6:11 PM by
Adam Stephensen
Rule Intro
Injecting your dependency gives you:
- Loosely coupled classes
- Increased code reusing
- Maintainable code
- Testable methods
- All dependencies are specified in one place
- Class dependencies are clearly visible in the constructor
{28B28F90-0E00-43EE-826E-5DDAB62FC7E4}
Do you feel this rule needs an update?