A test repo to demo using Testcontainers for integration tests with ASP.NET WebApplicationFactory and CosmosDB
-
Clone the repository.
-
Make sure you have Docker Desktop running (assuming running on Windows).
-
Make sure Docker is set to work with Linux based containers.
-
Restore and Build solution.
-
Run tests project.
The Microsoft CosmosDB Emulator image will need to be downloaded. This might need to be done before being able to run the tests.