In this post, we will see how to implement a decoupled, unit-testable, N tier architecture based on Generic Repository Pattern with Entity Framework, IoC Container and Dependency Injection in ASP.NET MVC. We will implement a sample application step by step for the same. Note: If you think repository pattern on top of Entity Framework is redundant and want to skip it in N Layered application, refer
![Generic Repository and Unit of Work Pattern, Entity Framework, Unit Testing, Autofac IoC Container and ASP.NET MVC [Part 1] - TechBrij](https://cdn-ak-scissors.b.st-hatena.com/image/square/96bed849099350db2181879b7904a6529e2df70b/height=288;version=1;width=512/https%3A%2F%2Ftechbrij.com%2Fimg%2F1244%2Ffolder-structure.png)