C# Class Microsoft.WindowsAzure.Commands.SqlDatabase.Test.UnitTests.Database.Cmdlet.NewAzureSqlDatabaseTests

Inheritance: TestBase
Show file Open project: Azure/azure-powershell Class Usage Examples

Public Methods

Method Description
CreateTestDatabasesWithCertAuth ( System powershell ) : void

Helper function to create the test databases.

CreateTestDatabasesWithSqlAuth ( ) : void

Helper function to create the test databases.

CreateTestDatabasesWithSqlAuth ( System powershell, string contextVariable ) : void

Create $testdb1 and $testdb2 on the given context.

RemoveTestDatabasesWithCertAuth ( System powershell ) : void

Helper function to remove the test databases.

RemoveTestDatabasesWithSqlAuth ( ) : void

Helper function to remove the test databases.

RemoveTestDatabasesWithSqlAuth ( System powershell, string contextVariable ) : void

Removes $testdb1 and $testdb2 on the given context.

Private Methods

Method Description
CleanupTest ( ) : void
NewAzureSqlDatabaseWithSqlAuth ( ) : void
NewAzureSqlDatabaseWithSqlAuthDuplicateName ( ) : void
SetupTest ( ) : void

Method Details

CreateTestDatabasesWithCertAuth() public static method

Helper function to create the test databases.
public static CreateTestDatabasesWithCertAuth ( System powershell ) : void
powershell System
return void

CreateTestDatabasesWithSqlAuth() public static method

Helper function to create the test databases.
public static CreateTestDatabasesWithSqlAuth ( ) : void
return void

CreateTestDatabasesWithSqlAuth() public static method

Create $testdb1 and $testdb2 on the given context.
public static CreateTestDatabasesWithSqlAuth ( System powershell, string contextVariable ) : void
powershell System The powershell instance containing the context.
contextVariable string The variable name that holds the server context.
return void

RemoveTestDatabasesWithCertAuth() public static method

Helper function to remove the test databases.
public static RemoveTestDatabasesWithCertAuth ( System powershell ) : void
powershell System
return void

RemoveTestDatabasesWithSqlAuth() public static method

Helper function to remove the test databases.
public static RemoveTestDatabasesWithSqlAuth ( ) : void
return void

RemoveTestDatabasesWithSqlAuth() public static method

Removes $testdb1 and $testdb2 on the given context.
public static RemoveTestDatabasesWithSqlAuth ( System powershell, string contextVariable ) : void
powershell System The powershell instance containing the context.
contextVariable string The variable name that holds the server context.
return void