public void SetupTest() { new FileSystemHelper(this).CreateAzureSdkDirectoryAndImportPublishSettings(); mockCommandRuntime = new Mock<ICommandRuntime>(); mockStoreClient = new Mock<StoreClient>(); mockConfirmation = new Mock<PowerShellCustomConfirmation>(); cmdlet = new NewAzureStoreAddOnCommand() { StoreClient = mockStoreClient.Object, CommandRuntime = mockCommandRuntime.Object, CustomConfirmation = mockConfirmation.Object }; }
public NewAzureStoreAddOnTests() { new FileSystemHelper(this).CreateAzureSdkDirectoryAndImportPublishSettings(); mockCommandRuntime = new Mock <ICommandRuntime>(); mockStoreClient = new Mock <StoreClient>(); mockConfirmation = new Mock <PowerShellCustomConfirmation>(); cmdlet = new NewAzureStoreAddOnCommand() { 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 NewAzureStoreAddOnCommand() { StoreClient = mockStoreClient.Object, CommandRuntime = mockCommandRuntime.Object, CustomConfirmation = mockConfirmation.Object }; }