In this repository you can find an example using minimal API with a few libraries together, but the project mainly focuses on integration testing.
Alba helps to run the API in-memory, while the PostgreSQL server can run in Docker using Testcontainers. After each test, the database is cleaned with the Respawn library, ensuring that each test runs in a clean state.
- Testcontainers for .NET 📓 - Lightweight implementation to support test environment with Docker containers
- Using any container image in a generic way or pre-configured modules
- Respawn 👤JimmyBogard - Resets the database back to a clean, empty state
- Mapster 👤 - Object to object mapper
- Alba 📓 - Utilizes the built-in
TestServer
- The cleanest way to use Docker for testing 📽️13min-NickChapsas
- Reset your database during testing with Respawn 📽️13min-NickChapsas
- Testing RabbitMQ with Testcontainers 📽️12 min - Gui Ferreira
- Integration test using SqlServer image with TestContainers 📓HamidMosalla
- Minimal API validation with Endpoint Filters 📓BenFoster | FluentValidation
- FluentDocker 👤Mario Toffia - Other library that enables docker and docker-compose interactions