Skip to content

Glossary: C# Beyond the Basics

dependency injection

Also written: DI

A technique where a class is handed the interfaces it needs, such as an `IStore<T>`, instead of creating them. You can then swap in a fake in tests. It is covered in the next book.

Where the book teaches it

Related terms

interfacefakeASP.NET Core