A Gentle Introduction to Dependency Injection
How to reduce complexity while making testing easier in .NET 5
Published in
13 min readJan 24, 2021
In this article:
- Benefits of Dependency Injection (DI) and Inversion of Control (IoC)
- What is the problem to be solved?
- Basic DI concepts
- DI in a console application
- Autofac in an ASP.NET web application in .NET 5.0