Sample code for DI Why?
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LooseCoupling
TightCoupling
.gitattributes
.gitignore
README.md

README.md

learning-dependency-injection

What is Dependency Injection? And why would we want to use it? That's what we're here to answer. We'll start by looking at the problems caused by tight coupling. Then we'll use some DI patterns such as constructor injection and property injection to break that tight coupling. We'll see how loosely-coupled applications are easier to extend and test. With a better understanding of the basic patterns, we'll remove the magic behind DI containers so that we can use the tools appropriately in our code.

Articles discribing the code are collected here: http://www.jeremybytes.com/Demos.aspx#DI