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
     };
 }
Beispiel #2
0
 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
     };
 }
Beispiel #3
0
 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
     };
 }