public void CleanupTest() { // Remove the test databases NewAzureSqlDatabaseTests.RemoveTestDatabasesWithSqlAuth(); // Save the mock session results DatabaseTestHelper.SaveDefaultSessionCollection(); }
/// <summary> /// Helper function to remove the test databases. /// </summary> public static void RemoveTestDatabasesWithSqlAuth() { using (System.Management.Automation.PowerShell powershell = System.Management.Automation.PowerShell.Create()) { // Create a context NewAzureSqlDatabaseServerContextTests.CreateServerContextSqlAuth( powershell, "$context"); // Remove the 2 test databases NewAzureSqlDatabaseTests.RemoveTestDatabasesWithSqlAuth( powershell, "$context"); } }