Microsoft.Protocols.TestSuites.MS_MEETS.S02_Meeting.MSMEETS_S02_TC03_MeetingInvalidUrlError C# (CSharp) Method

MSMEETS_S02_TC03_MeetingInvalidUrlError() private method

private MSMEETS_S02_TC03_MeetingInvalidUrlError ( ) : void
return void
        public void MSMEETS_S02_TC03_MeetingInvalidUrlError()
        {
            string uid = Guid.NewGuid().ToString();

            // Set the Url to the default site, which is not workspace.
            this.meetsAdapter.Url = Common.GetConfigurationPropertyValue("TargetServiceUrl", this.Site);
            string organizerEmail = Common.GetConfigurationPropertyValue("OrganizerEmail", this.Site);
            string meetingTitle = TestSuiteBase.GetUniqueMeetingTitle();
            string meetingLocation = TestSuiteBase.GetUniqueMeetingLocation();
            SoapResult<AddMeetingResponseAddMeetingResult> addMeetingResult = this.meetsAdapter.AddMeeting(organizerEmail, uid, null, DateTime.Now, meetingTitle, meetingLocation, DateTime.Now, DateTime.Now.AddHours(1), false);

            // If error code "0x00000006" is returned, MS-MEETS_R66 can be verified.
            Site.CaptureRequirementIfAreEqual<string>(
                "0x00000006",
                addMeetingResult.GetErrorCode(),
                66,
                @"[In AddMeetingResponse]If this operation [AddMeeting]is sent to a Web site that is not a meeting workspace, the response [AddMeetingResponse]MUST be a SOAP fault with SOAP Fault code ""0x00000006"".");

            string updatedMeetingTitle = TestSuiteBase.GetUniqueMeetingTitle();
            string updatedLocation = TestSuiteBase.GetUniqueMeetingLocation();
            SoapResult<Null> updateMeetingResult = this.meetsAdapter.UpdateMeeting(uid, null, null, updatedMeetingTitle, updatedLocation, DateTime.Now, DateTime.Now.AddHours(1), null);

            // If error code "0x00000006" is returned, MS-MEETS_R350 can be verified.
            Site.CaptureRequirementIfAreEqual<string>(
                "0x00000006",
                updateMeetingResult.GetErrorCode(),
                350,
                @"[In UpdateMeetingResponse]If this operation [UpdateMeeting] is sent to a web site that is not a meeting workspace, the response MUST be a SOAP fault with SOAP fault code ""0x00000006"".");
        }