This is a simple lunch presentation to demonstrate some common scenarios of using dependency injection with Ninject.
This presentation is probably out of date but may still be useful for basic examples.
The presentation is built with Reveal.js and hosted on GitHub Pages: http://paulzerkel.github.io/pres-di-ninject/
Edit the root index.html
file to change the presentation. All of the files for Reveal.js are in /reveal
. The master branch contains the live site.
There are a few basic examples located in src
.
Tightly coupled code, no IoC used.
Added in manual dependency injection.
Replaced the manual injection with Ninject.
Demonstrates how Ninject will resolve dependency chains.
Shows an implementation of the decorator pattern.