Microsoft.Protocols.TestSuites.MS_SITESS.S02_ManageSubSite.MSSITESS_S02_TC08_GetSiteTemplatesSuccessfully C# (CSharp) Method

MSSITESS_S02_TC08_GetSiteTemplatesSuccessfully() private method

private MSSITESS_S02_TC08_GetSiteTemplatesSuccessfully ( ) : void
return void
        public void MSSITESS_S02_TC08_GetSiteTemplatesSuccessfully()
        {
            #region Variables

            uint localeId = uint.Parse(Common.GetConfigurationPropertyValue(Constants.ValidLCID, this.Site));
            Template[] templateList;
            uint getTemplateResult = 0;

            #endregion Variables

            // Initialize the web service with an authenticated account.
            this.sitessAdapter.InitializeWebService(UserAuthenticationOption.Authenticated);

            // Invoke the GetSiteTemplates operation with valid parameters, so result == 0 and templateList.Length > 1 are expected.
            getTemplateResult = this.sitessAdapter.GetSiteTemplates(localeId, out templateList);

            // If the templateList is not empty, it means the GetSiteTemplates operation is succeed.
            Site.Assert.IsTrue(
                 templateList != null && templateList.Length != 1,
                "GetTemplate operation should return more than one template.");

            #region Capture requirements

            this.VerifyResultOfGetSiteTemplate(getTemplateResult);

            #endregion Capture requirements
        }