SOLID Principles

SOLID principles are the design principles that enable us to manage with most of the software design problems. S: Single Responsibility Principle (SRP) O: Open closed Principle (OSP) L: Liskov substitution Principle (LSP) I: Interface Segregation Principle (ISP) D: Dependency Inversion Principle (DIP) Single Responsibility Principle SRP says "Every software module should have only one … Continue reading SOLID Principles


Dependency Injection using SimpleInjector

What is Dependency Injection Dependency injection is a technique that helps to inject dependant objects into your class thus making your architecture more loosely coupled. Take for instance the following UserController¬†class in the context of an ASP.NET MVC application: public class UserController : Controller { private readonly IUserRepository repository; private readonly ILogger logger; // Use … Continue reading Dependency Injection using SimpleInjector