Summary
In this chapter, you learned:
- The concepts around IoC and DI
- How dependency services are registered and resolved
- Dependency service lifetimes and when they should be used
- How to implement a generic host
- How ASP.NET Core uses DI
In the next chapter, you will be introduced to many types of testing, and then learn the details of unit testing and how to mock dependencies in your tests. It’s a natural next step after this chapter.