Creating an Automocking container for Moq using Unity
Auto mocking allows you to get object of the type you want to test without setting up mocks by hand. Using an auto mocker you can create the mock classes with dependencies and the container will...
View ArticleIoC – Unity as a DI and Service Locator container
Inversion of control (IoC) is an abstract principle describing an aspect of some software architecture designs in which the flow of control of a system is inverted in comparison to procedural...
View ArticleASP.NET dependency injection using Unity Application Block
ASP.NET was not designed with the concepts of DI and IoC in mind. That makes it very difficult to actually configure a website/ application using ASP.NET to use the concepts of IoC and resolve the...
View ArticleUsing Unity to Resolve Instances based on a condition
Unity is a lightweight, extensible dependency injection container with support for nested containers that stores registrations and mappings between types and can instantiate the appropriate concrete...
View ArticleAspect Oriented Programming and Interceptor pattern – Creating a Session...
Interceptor pattern can be used for addressing cross cutting concerns in the application that happens at either the beginning or end of a method. For e.g. checking the validity of the input parameters...
View ArticleDependency injection – Auto registration in Unity
Unity Auto Registration extends Unity IoC container and provides fluent syntax to configure rules for automatic type registration. You can add Unity Auto Registration package using NuGet package...
View Article