Skip to main content

Practice

DI Practice: Fakes, Lifetimes, Wiring

⭐⭐ intermediate~30 min of coding3 challenges

Break a hardwired dependency with an interface, prove container lifetimes, and build the composition root.

Checking your progress…0%

What you will practice

  1. Invert a Hardwired Dependency⭐⭐ intermediate
  2. Build the Tiny Container⭐⭐ intermediate
  3. Wire the Composition Root⭐⭐ intermediate

Need the concept first? Re-read the lesson.