Testcontainers for .NET

Free.NETgithub.com

Best for: Integration tests against real databases

Overview

Starts real throwaway Docker containers, such as PostgreSQL, Redis or RabbitMQ, from your tests, so integration tests run against the real thing instead of in-memory fakes.

Strengths

  • Tests hit real services
  • Ready-made modules for common databases

Drawbacks

  • Needs Docker on every machine and CI runner

Alternatives to Testcontainers for .NET

See all 20 →

Microsoft Learn: .NET

Learning C# and .NET from the source
Free

Microsoft's official .NET and C# documentation, with free tutorials and learning paths from a first console app up to cloud apps.

ASP.NET Core docs

Building web APIs in .NET
Free

Official ASP.NET Core documentation: minimal APIs, controllers, middleware, authentication and hosting, with tutorials for each.

Entity Framework Core

The default data layer for most .NET apps
Free

Microsoft's ORM for .NET. Map C# classes to tables, query with LINQ, and manage schema changes with migrations. Works with SQL Server, PostgreSQL (via Npgsql), SQLite and others.