﻿// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

namespace Microsoft.Azure.Commands.LogicApp.Test.ScenarioTests
{
    using Microsoft.WindowsAzure.Commands.ScenarioTest;
    using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
    using Xunit;

    /// <summary>
    /// Scenario tests for integration account certificate commands.
    /// </summary>
    public class IntegrationAccountCertificateTests : RMTestBase
    {

        /// <summary>
        /// Test New-AzureRmIntegrationAccountCertificate command to create a new integration account certificate.
        /// </summary>
        [Fact]
        [Trait(Category.AcceptanceType, Category.CheckIn)]
        public void TestCreateIntegrationAccountCertificate()
        {
            WorkflowController.NewInstance.RunPowerShellTest("Test-CreateIntegrationAccountCertificate");
        }

        /// <summary>
        /// Test New-AzureRmIntegrationAccountCertificatePrivateKey command to create a new integration account certificate.
        /// </summary>
        [Fact]
        [Trait(Category.AcceptanceType, Category.CheckIn)]
        public void TestCreateIntegrationAccountCertificatePrivateKey()
        {
            WorkflowController.NewInstance.RunPowerShellTest("Test-CreateIntegrationAccountCertificatePrivateKey");
        }

        /// <summary>
        /// Test Get-AzureRmIntegrationAccountCertificate command to get the integration account certificate.
        /// </summary>
        [Fact]
        [Trait(Category.AcceptanceType, Category.CheckIn)]
        public void TestGetIntegrationAccountCertificate()
        {
            WorkflowController.NewInstance.RunPowerShellTest("Test-GetIntegrationAccountCertificate");
        }

        /// <summary>
        /// Test Remove-AzureRmIntegrationAccountCertificate command to remove the integration account certificate.
        /// </summary>
        [Fact]
        [Trait(Category.AcceptanceType, Category.CheckIn)]
        public void TestRemoveIntegrationAccountCertificate()
        {
            WorkflowController.NewInstance.RunPowerShellTest("Test-RemoveIntegrationAccountCertificate");
        }        

        /// <summary>
        /// Test Set-AzureRmIntegrationAccountCertificate command to update the integration account certificate.
        /// </summary>
        [Fact]
        [Trait(Category.AcceptanceType, Category.CheckIn)]
        public void TestUpdateIntegrationAccountCertificate()
        {
            WorkflowController.NewInstance.RunPowerShellTest("Test-UpdateIntegrationAccountCertificate");
        }

        /// <summary>
        /// Test-CreateIntegrationAccountCertificatePublicKey command to update the integration account certificate.
        /// </summary>
        [Fact]
        [Trait(Category.AcceptanceType, Category.CheckIn)]
        public void TestCreateIntegrationAccountCertificatePublicKey()
        {
            WorkflowController.NewInstance.RunPowerShellTest("Test-CreateIntegrationAccountCertificatePublicKey");
        }
    }
}

