# Dependency Inversion: Depend on the Promise

When the report-card sender builds the school's email server inside itself, it can never send a text and can never be tested without sending real email; the dependency inversion principle says the report card should depend on a promise it owns ("a way to send"), and be handed whatever keeps it, which is the start of dependency injection.

![Cheat sheet: Dependency Inversion: Depend on the Promise](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/d7ba38afe3404a528127122a38f6dd5b.webp)

- Category: Data Structures
- Level: Journeyman
- Tags: Dependency, Dependency Injection, Dependency Inversion Principle, OOP
- Author: Gregor Dzierzon
- Updated: November 17, 2026

Source: https://www.ask-codey.com/cheat-sheets/dp-dependency-inversion-cheat-sheet
