A five-part guide to integration testing with .NET Aspire and SQL Server — from dev orchestration to container persistence.
.NET Aspire SQL Integration Tests
.NET Aspire dev-time orchestration for SQL Server integration tests
.NET Aspire's dev-time orchestration can be used to build integration tests that depend on a SQL Server database. This blog series explains how.
.NET Aspire SQL Server integration tests
.NET Aspire offers features enabling integration tests to use dev-time orchestration. This post shows how a test can use these.
.NET Aspire SQL Server integration tests and local development
.NET Aspire can create local services such as a SQL Server to stand in for cloud resources under local development and testing. This post shows how to ensure such a database is suitably initialized.
.NET Aspire: using SqlConnection in integration tests
.NET Aspire can create all of the resources an integration test required, but the test will often need direct access to the same SQL database as the code under test. This post shows how to do that.
.NET Aspire: SQL persistence
.NET Aspire can create new local instances of services such as SQL Server from scratch each time you run. While this guarantees repeatability and isolation, it can be time consuming, so this post explores alternatives.