Based on several requests, I created a new screencast that shows one step-by-step how to add the Unity IoC Container from Microsoft Patterns & Practices to an ASP.NET MVC Web Application to create controllers and inject their dependencies.
You can also catch the first Unity Screencast that shows about a dozen common usages of Unity as well as briefly discusses the use of Unity using MVC and Model-View-Presenter:
Here are some links to sample code on Unity regarding what you see in the screencasts:
- Unity IoC and ASP.NET MVC Framework – Dependency Injection of Controllers
- Unity Nested Containers – IUnityParentContainer and CreateChildContainer
- UnityContainer and UnityConfigurationSection – Populating Unity Container via App.config or Web.config
- Unity IoC Dependency Injection and ASP.NET Model-View-Presenter
Hope this helps.