Binding Multiple Interfaces using Ninject in ASP.NET MVC4

This post is in continuation to the earlier post on NInject and assumes that the reader has knowledge about NInject and DI concepts.  For those, who stumbled upon this link accidentally, read my previous blog about using NInject with ASP.NET MVC4 to get a better idea about NInject.

NInject  3.0 offers a fluent syntax that helps to bind multiple interfaces with a concrete implementation.

Continue reading

2,834 total views, 1 views today

Using NInject with MVC4 – Step-By-Step

Dependency Injection – an Introduction
I have always been a big fan of using DI and NInject has been my favorite Dependency Injection tool because of the ease and flexibility it offers for integrating it with any project/solution.  (Note:  Other DI tools that are worth considering for .net applications are Structure Map, Castle Windsor and Unity).  However, this blog is aimed at helping novice users to configure NInject with ASP.NET MVC4 and get started with using DI to achieve Separation Of Concerns (SOC).

Continue reading

7,369 total views, 3 views today