public void StartsWebsiteSlot()
        {
            const string slot = "staging";
            const string websiteName = "website1";

            // Setup
            Mock<IWebsitesClient> websitesClientMock = new Mock<IWebsitesClient>();
            websitesClientMock.Setup(f => f.StartWebsite(websiteName, slot));

            // Test
            StartAzureWebsiteCommand startAzureWebsiteCommand = new StartAzureWebsiteCommand()
            {
                CommandRuntime = new MockCommandRuntime(),
                Name = websiteName,
                WebsitesClient = websitesClientMock.Object,
                Slot = slot
            };
            currentProfile = new AzureSMProfile();
            var subscription = new AzureSubscription{Id = new Guid(base.subscriptionId) };
            subscription.Properties[AzureSubscription.Property.Default] = "True";
            currentProfile.Subscriptions[new Guid(base.subscriptionId)] = subscription;

            startAzureWebsiteCommand.ExecuteCmdlet();

            websitesClientMock.Verify(f => f.StartWebsite(websiteName, slot), Times.Once());
        }
        public void ProcessStartWebsiteTest()
        {
            const string websiteName = "website1";

            // Setup
            Mock<IWebsitesClient> websitesClientMock = new Mock<IWebsitesClient>();
            websitesClientMock.Setup(f => f.StartWebsite(websiteName, null));

            // Test
            StartAzureWebsiteCommand startAzureWebsiteCommand = new StartAzureWebsiteCommand()
            {
                CommandRuntime = new MockCommandRuntime(),
                Name = websiteName,
                WebsitesClient = websitesClientMock.Object
            };
            AzureSession.SetCurrentContext(new AzureSubscription { Id = new Guid(base.subscriptionId) }, null, null);

            startAzureWebsiteCommand.ExecuteCmdlet();

            websitesClientMock.Verify(f => f.StartWebsite(websiteName, null), Times.Once());
        }