This repository contains the example code I presented in the Testcontainers Software Journal Club session. It uses an Azurite Docker container created using the Testcontainers library to emulate Azure Blob Storage. This repository is a C# solution that can be opened using Visual Studio or any other C# IDE.
- .NET 8 SDK or later
- A C# IDE, such as Visual Studio
- Docker Desktop
- (optional) Azure Storage Explorer to inspect the contents of the Azurite container while debugging.
The integration tests can be found the AlbumCoverServiceTests
file in the Albums.Test
project. You can use the test runner in your IDE, or run dotnet test
from the command line. Docker must be running in the background for the tests to work.
0-start
is the starting point for the Journal Club session.1-containerbuilder
uses theContainerBuilder
class to create the Azurite container.2-azurite-module
uses the Azurite Testcontainers module to create the Azurite container, as well as making the code debuggable.