Microsoft.Protocols.TestSuites.MS_MEETS.S01_MeetingWorkspace.MSMEETS_S01_TC15_GetMeetingInformationWithAllParametersSpecified C# (CSharp) Method

MSMEETS_S01_TC15_GetMeetingInformationWithAllParametersSpecified() private method

        public void MSMEETS_S01_TC15_GetMeetingInformationWithAllParametersSpecified()
        {
            // Check whether creating workspace is supported and query available languages.
            SoapResult<GetMeetingsInformationResponseGetMeetingsInformationResult> getWorkspaceInfoResult = this.meetsAdapter.GetMeetingsInformation(MeetingInfoTypes.AllowCreate | MeetingInfoTypes.QueryLanguages, null);
            Site.Assert.IsNull(getWorkspaceInfoResult.Exception, "GetMeetingsInformation should succeed");
            Site.Assume.AreEqual<string>("true", getWorkspaceInfoResult.Result.MeetingsInformation.AllowCreate.ToLower(CultureInfo.CurrentCulture), "Site must support creating workspace");
            Site.Assume.AreNotEqual<int>(0, getWorkspaceInfoResult.Result.MeetingsInformation.ListTemplateLanguages.Length, "ListTemplateLanguages must contain one or more items.");
            string lcidString = getWorkspaceInfoResult.Result.MeetingsInformation.ListTemplateLanguages[0];
            uint lcid = 0;
            Site.Assert.IsTrue(uint.TryParse(lcidString, out lcid), "LCID must be integer");

            getWorkspaceInfoResult = this.meetsAdapter.GetMeetingsInformation(MeetingInfoTypes.QueryLanguages, lcid);
            Site.Assert.IsNull(getWorkspaceInfoResult.Exception, "GetMeetingsInformation should succeed");

            // If GetMeetingInformation executed succeed and the ListTemplateLanguages is returned. All the returned values of ListTemplateLanguages are supported languages(LCID), MS-MEETS_R198, MS-MEETS_R200 can be verified.
            Site.CaptureRequirementIfIsNotNull(
                getWorkspaceInfoResult.Result.MeetingsInformation.ListTemplateLanguages,
                198,
                @"[In GetMeetingsInformationResponse]ListTemplateLanguages: Lists the site template languages supported.");

            Site.CaptureRequirementIfIsNotNull(
                getWorkspaceInfoResult.Result.MeetingsInformation.ListTemplateLanguages[0],
                200,
                @"[In GetMeetingsInformationResponse]LCID: The LCID of the available site template.");

            // GetMeetingInformation with all parameters specified.
            getWorkspaceInfoResult = this.meetsAdapter.GetMeetingsInformation(MeetingInfoTypes.QueryTemplates, lcid);
            Site.Assert.IsNull(getWorkspaceInfoResult.Exception, "GetMeetingsInformation should succeed");
            Site.Assert.AreNotEqual<int>(0, getWorkspaceInfoResult.Result.MeetingsInformation.ListTemplates.Length, "ListTemplates must contain one or more items.");
        }