C# Testcontainers for MongoDB: How To Easily Run Local Databases
The NuGet package for MongoDB Testcontainers in .NET is Testcontainers.MongoDb. Here is how to install it and spin up a throwaway MongoDB in your C# tests.
Guides on using Testcontainers in .NET, including running local MongoDB instances and integrating containerized dependencies into ASP.NET Core test suites.
Showing 1–2 of 2 articles
The NuGet package for MongoDB Testcontainers in .NET is Testcontainers.MongoDb. Here is how to install it and spin up a throwaway MongoDB in your C# tests.
Use Testcontainers in ASP.NET Core testing to get better coverage! Learn how to simulate dependencies, test in parallel, and integrate with CI/CD tools!