public static RemoveTestDatabasesWithSqlAuth ( ) : void | ||
return | void |
public void CleanupTest() { // Remove the test databases NewAzureSqlPremiumDatabaseTests.RemoveTestDatabasesWithSqlAuth(); // Save the mock session results MockServerHelper.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 NewAzureSqlPremiumDatabaseTests.RemoveTestDatabasesWithSqlAuth( powershell, "$context"); } }