I'm using Respawn to clean up my test database, but when this method executes:
public static Task ResetCheckpoint() => Checkpoint.Reset(ConfigurationManager.ConnectionStrings["TestConnection"].ConnectionString);
This error message is shown:
Message: System.InvalidOperationException : Invalid operation. The connection is closed.
I have already checked the value returned by ConfigurationManager.ConnectionStrings["TestConnection"].ConnectionString and it is correct.
I based my integration test structure in this sample project by Jimmy Bogard: https://github.com/jbogard/ContosoUniversityDotNetCore-Pages, more specifically, these two classes: