Microsoft.WindowsAzure.Management.ServiceManagement.Test.FunctionalTests.ServiceManagementCmdletTestHelper.AddAzureEndPointNoLB C# (CSharp) Method

AddAzureEndPointNoLB() public method

public AddAzureEndPointNoLB ( Microsoft.WindowsAzure.Management.ServiceManagement.Test.FunctionalTests.ConfigDataInfo.AzureEndPointConfigInfo endPointConfig ) : PersistentVM
endPointConfig Microsoft.WindowsAzure.Management.ServiceManagement.Test.FunctionalTests.ConfigDataInfo.AzureEndPointConfigInfo
return Microsoft.WindowsAzure.Management.ServiceManagement.Model.PersistentVM
        public PersistentVM AddAzureEndPointNoLB(AzureEndPointConfigInfo endPointConfig)
        {
            AddAzureEndpointCmdletInfo addAzureEndPointCmdletInfo = AddAzureEndpointCmdletInfo.BuildNoLoadBalancedCmdletInfo(endPointConfig);
            WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(addAzureEndPointCmdletInfo);

            Collection<PSObject> result = azurePowershellCmdlet.Run();
            if (result.Count == 1)
            {
                return (PersistentVM)result[0].BaseObject;
            }
            return null;
        }
ServiceManagementCmdletTestHelper