public void SetupTest()
        {
            GlobalPathInfo.GlobalSettingsDirectory = Data.AzureSdkAppDir;
            mockCommandRuntime = new MockCommandRuntime();
            cloudServiceClientMock = new Mock<ICloudServiceClient>();

            stopServiceCmdlet = new StartAzureServiceCommand()
            {
                CloudServiceClient = cloudServiceClientMock.Object,
                CommandRuntime = mockCommandRuntime
            };
        }
        public StartAzureServiceTests()
        {
            AzurePowerShell.ProfileDirectory = Test.Utilities.Common.Data.AzureSdkAppDir;
            mockCommandRuntime     = new MockCommandRuntime();
            cloudServiceClientMock = new Mock <ICloudServiceClient>();

            stopServiceCmdlet = new StartAzureServiceCommand()
            {
                CloudServiceClient = cloudServiceClientMock.Object,
                CommandRuntime     = mockCommandRuntime
            };
        }
Ejemplo n.º 3
0
        public void SetupTest()
        {
            GlobalPathInfo.GlobalSettingsDirectory = Data.AzureSdkAppDir;
            mockCommandRuntime     = new MockCommandRuntime();
            cloudServiceClientMock = new Mock <ICloudServiceClient>();

            stopServiceCmdlet = new StartAzureServiceCommand()
            {
                CloudServiceClient = cloudServiceClientMock.Object,
                CommandRuntime     = mockCommandRuntime
            };
        }
Ejemplo n.º 4
0
        public void SetupTest()
        {
            GlobalPathInfo.GlobalSettingsDirectory      = Data.AzureSdkAppDir;
            CmdletSubscriptionExtensions.SessionManager = new InMemorySessionManager();
            mockCommandRuntime     = new MockCommandRuntime();
            cloudServiceClientMock = new Mock <ICloudServiceClient>();

            stopServiceCmdlet = new StartAzureServiceCommand()
            {
                CloudServiceClient = cloudServiceClientMock.Object,
                CommandRuntime     = mockCommandRuntime
            };
        }
        public void SetupTest()
        {
            GlobalPathInfo.GlobalSettingsDirectory = Data.AzureSdkAppDir;
            CmdletSubscriptionExtensions.SessionManager = new InMemorySessionManager();
            mockCommandRuntime = new MockCommandRuntime();
            channel = new SimpleServiceManagement();

            startServiceCmdlet = new StartAzureServiceCommand(channel) { ShareChannel = true };
            startServiceCmdlet.CommandRuntime = mockCommandRuntime;
        }