using System.IO;
using Microsoft.WindowsAzure.Commands.ServiceManagement.Test.FunctionalTests.PowershellCore;

namespace Microsoft.WindowsAzure.Commands.ServiceManagement.Test.FunctionalTests.IaasCmdletInfo
{
    public class WindowsAzurePowershellCmdlet : PowershellCmdlet
    {
        private static readonly string[] modules = new[]
        {
            Path.Combine(Utilities.windowsAzurePowershellPath, Utilities.windowsAzurePowershellServiceModule)
        };

        public WindowsAzurePowershellCmdlet(CmdletsInfo cmdlet) : base(cmdlet, ConstructModules())
        {
        }

        public static string[] Modules
        {
            get
            {
                return modules;
            }
        }

        private static PowershellModule[] ConstructModules()
        {
            return new[]
            {
                new PowershellModule(Utilities.windowsAzurePowershellServiceModule, Utilities.windowsAzurePowershellPath)
            };
        }
    }
}