public void SetupTest() { new FileSystemHelper(this).CreateAzureSdkDirectoryAndImportPublishSettings(); mockCommandRuntime = new Mock<ICommandRuntime>(); mockStoreClient = new Mock<StoreClient>(); mockConfirmation = new Mock<PowerShellCustomConfirmation>(); cmdlet = new SetAzureStoreAddOnCommand() { StoreClient = mockStoreClient.Object, CommandRuntime = mockCommandRuntime.Object, CustomConfirmation = mockConfirmation.Object }; }
public SetAzureStoreAddOnTests() { new FileSystemHelper(this).CreateAzureSdkDirectoryAndImportPublishSettings(); mockCommandRuntime = new Mock <ICommandRuntime>(); mockStoreClient = new Mock <StoreClient>(); mockConfirmation = new Mock <PowerShellCustomConfirmation>(); cmdlet = new SetAzureStoreAddOnCommand() { StoreClient = mockStoreClient.Object, CommandRuntime = mockCommandRuntime.Object, CustomConfirmation = mockConfirmation.Object }; }
public void SetupTest() { CmdletSubscriptionExtensions.SessionManager = new InMemorySessionManager(); new FileSystemHelper(this).CreateAzureSdkDirectoryAndImportPublishSettings(); mockCommandRuntime = new Mock<ICommandRuntime>(); mockStoreClient = new Mock<StoreClient>(); mockConfirmation = new Mock<PowerShellCustomConfirmation>(); cmdlet = new SetAzureStoreAddOnCommand() { StoreClient = mockStoreClient.Object, CommandRuntime = mockCommandRuntime.Object, CustomConfirmation = mockConfirmation.Object }; }