
Integration tests verify that controllers, middleware, DI, and infrastructure work together.
Use WebApplicationFactory<TEntryPoint> to host the API in-memory and send HTTP requests.
Test real database interactions with test containers or in-memory databases where appropriate.
Architecture impact: Integration tests catch wiring and configuration issues that unit tests miss.
Reference:
TaskLoco™ — The Sticky Note GOAT