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

NewAzureCertificateSetting() public method

public NewAzureCertificateSetting ( string thumbprint, string store ) : CertificateSetting
thumbprint string
store string
return CertificateSetting
        public CertificateSetting NewAzureCertificateSetting(string thumbprint, string store)
        {
            NewAzureCertificateSettingCmdletInfo newAzureCertificateSettingCmdletInfo = new NewAzureCertificateSettingCmdletInfo(thumbprint, store);
            WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(newAzureCertificateSettingCmdletInfo);

            Collection<PSObject> result = azurePowershellCmdlet.Run();

            if (result.Count == 1)
            {
                return (CertificateSetting)result[0].BaseObject;

            }
            return null;
        }
ServiceManagementCmdletTestHelper