Questions
Let's take a look at a few practice questions:
- What are the three Dependency Injection lifetimes that we can assign to objects in ASP.NET Core?
- What is the composition root for?
- Is it true that we should avoid the
new
keyword when instantiating volatile dependencies? - What is the pattern that we revisited in this chapter that helps compose objects to eliminate inheritance?
- Is the Service Locator pattern a design pattern, a code smell, or an anti-pattern?