Closing database connections during test teardown

added by DotNetKicks
7/20/2020 4:12:17 PM


How to close database connections to SQL Server during integration testing teardown. Whenever I need to run integration tests that involve SQL Server, I have a standard approach that I've evolved since 2007. It involves setting up a SQL Server Express database before each test running the test tearing down the database I've explained the basic process in details in my Outside-In Test-Driven Development Pluralsight course.