This one helps you write integration tests using TestContainers for .NET with xUnit, spinning up real databases, Redis, RabbitMQ, and other infrastructure in Docker containers instead of relying on mocks. It covers SQL Server, PostgreSQL, testing actual database migrations, handling container lifecycle with IAsyncLifetime, and using Respawn to reset data between tests without recreating containers. The core argument is solid: mocking a database doesn't catch SQL syntax errors, constraint violations, or real query behavior. You get actual integration confidence at the cost of slightly slower tests, though the patterns here show you how to reuse containers across test classes to keep things fast. Works in CI/CD environments that support Docker.
npx skills add https://github.com/aaronontheweb/dotnet-skills --skill testcontainers-integration-tests