There will be a series. This is part 1.
Link to part 1 - Concepts: https://yo utu.be/YnBPjt2dBWk
Link to part 2 - DI in .NET Core & ASP.NET Core: • Design Code for Change | Dependency Inject...
Link to part 3 - Service Lifetime in DI: • Design Code for Change | Dependency Inject...
Link to part 4 - Anti Patterns in DI: • Design Code for Change | Dependency Inject...
We talked about what is dependency injection, and shared 3 examples of benefits of using it.
The example code used prints a dog in JSON. We will see how dependency injection brings in explicit, decouple and testability step by step.
Details:
00:00 Intro
00:45 Code Architecture
01:05 What the code to print a json dog look like before DI
01:18 What is dependency injection
02:32 Benefit 1: Explicit
04:52 Benefit 2: Decouple
06:23 Benefit 3: Testability
10:39 Recap