C# Class Microsoft.WindowsAzure.Commands.Test.Utilities.Common.RMTestBase

Base class for Microsoft Azure PowerShell unit tests.
Show file Open project: Azure/azure-powershell

Protected Properties

Property Type Description
currentProfile Microsoft.Azure.Commands.Common.Authentication.Models.AzureRMProfile

Public Methods

Method Description
BaseSetup ( ) : void

Initialize the necessary environment for the tests.

RMTestBase ( ) : Microsoft.Azure.Commands.Common.Authentication
SetupConfirmation ( Mock mock ) : void

Set up the command runtime to return true for all confirmation prompts

Method Details

BaseSetup() public method

Initialize the necessary environment for the tests.
public BaseSetup ( ) : void
return void

RMTestBase() public method

public RMTestBase ( ) : Microsoft.Azure.Commands.Common.Authentication
return Microsoft.Azure.Commands.Common.Authentication

SetupConfirmation() public static method

Set up the command runtime to return true for all confirmation prompts
public static SetupConfirmation ( Mock mock ) : void
mock Mock The mock command runtiem to set up
return void

Property Details

currentProfile protected property

protected AzureRMProfile,Microsoft.Azure.Commands.Common.Authentication.Models currentProfile
return Microsoft.Azure.Commands.Common.Authentication.Models.AzureRMProfile