Integrating StructureMap in an MVC 3 Project:
- New MVC 3 Project
- Install StructureMap.MVC3 NuGet Package
- Add the following to Application_Start() in Global.asax.cs:
DependencyResolver.SetResolver(new SmDependencyResolver(IoC.Initialize()));
Integrating StructureMap in an MVC 3 Project:
DependencyResolver.SetResolver(new SmDependencyResolver(IoC.Initialize()));