This is sample code for [Testing an ASP.NET Core web app](https://testcontainers.com/guides/testing-an-aspnet-core-web-app) guide.
Make sure you have .NET 7 and a [compatible Docker environment](https://www.testcontainers.org/supported_docker_environment/) installed.
For example:
$ dotnet --list-sdks
7.0.104 [C:\Program Files\dotnet\sdk]
$ docker version
...
Server: Docker Desktop 4.12.0 (85629)
Engine:
Version: 20.10.17
API version: 1.41 (minimum version 1.12)
Go version: go1.17.11
...
-
Clone the repository
git clone https://github.com/testcontainers/tc-guide-testing-aspnet-core.git cd tc-guide-testing-aspnet-core
-
Open the tc-guide-testing-aspnet-core project in your favorite IDE.