/// <summary> /// Verify the MeetingMessageType structure. /// </summary> /// <param name="meetingMessageType">Represents a meeting in the messaging server store</param> /// <param name="isSchemaValidated">The result of schema validation, true means valid.</param> private void VerifyMeetingMessageType(MeetingMessageType meetingMessageType, bool isSchemaValidated) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSMTGS_R262"); // Verify MS-OXWSMTGS requirement: MS-OXWSMTGS_R262 Site.CaptureRequirementIfIsTrue( isSchemaValidated, 262, @"[In t:MeetingMessageType Complex Type] [Its schema is] <xs:complexType name=""MeetingMessageType""> <xs:complexContent> <xs:extension base=""t:MessageType"" > <xs:sequence> <xs:element name=""AssociatedCalendarItemId"" type=""t:ItemIdType"" minOccurs=""0"" /> <xs:element name=""IsDelegated"" type=""xs:boolean"" minOccurs=""0"" /> <xs:element name=""IsOutOfDate"" type=""xs:boolean"" minOccurs=""0"" /> <xs:element name=""HasBeenProcessed"" type=""xs:boolean"" minOccurs=""0"" /> <xs:element name=""ResponseType"" type=""t:ResponseTypeType"" minOccurs=""0"" /> <xs:element name=""UID"" type=""xs:string"" minOccurs=""0"" /> <xs:element name=""RecurrenceId"" type=""xs:dateTime"" minOccurs=""0"" /> <xs:element name=""DateTimeStamp"" type=""xs:dateTime"" minOccurs=""0"" /> <xs:element name=""IsOrganizer"" type=""xs:boolean"" minOccurs=""0""/> </xs:sequence> </xs:extension> </xs:complexContent>"); #region Verify MeetingMessageType structure if (meetingMessageType.AssociatedCalendarItemId != null) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSMTGS_R263"); Site.CaptureRequirementIfIsTrue( isSchemaValidated, 263, @"[In t:MeetingMessageType Complex Type] The type of AssociatedCalendarItemId is t:ItemIdType ([MS-OXWSCORE] section 2.2.4.19)."); } if (meetingMessageType.IsDelegatedSpecified) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSMTGS_R265"); // Verify MS-OXWSMTGS requirement: MS-OXWSMTGS_R265 Site.CaptureRequirementIfIsTrue( isSchemaValidated, 265, @"[In t:MeetingMessageType Complex Type] The type of IsDelegated is xs:boolean ([XMLSCHEMA2])."); } if (meetingMessageType.IsOutOfDateSpecified) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSMTGS_R267"); // Verify MS-OXWSMTGS requirement: MS-OXWSMTGS_R267 Site.CaptureRequirementIfIsTrue( isSchemaValidated, 267, @"[In t:MeetingMessageType Complex Type] The type of IsOutOfDate is xs:boolean."); } if (meetingMessageType.HasBeenProcessedSpecified) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSMTGS_R269"); // Verify MS-OXWSMTGS requirement: MS-OXWSMTGS_R269 Site.CaptureRequirementIfIsTrue( isSchemaValidated, 269, @"[In t:MeetingMessageType Complex Type] The type of HasBeenProcessed is xs:boolean."); } if (meetingMessageType.ResponseTypeSpecified) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSMTGS_R271"); // Verify MS-OXWSMTGS requirement: MS-OXWSMTGS_R271 Site.CaptureRequirementIfIsTrue( isSchemaValidated, 271, @"[In t:MeetingMessageType Complex Type] The type of ResponseType is t:ResponseTypeType (section 2.2.5.10)."); } if (!string.IsNullOrEmpty(meetingMessageType.UID)) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSMTGS_R274"); // Verify MS-OXWSMTGS requirement: MS-OXWSMTGS_R274 Site.CaptureRequirementIfIsTrue( isSchemaValidated, 274, @"[In t:MeetingMessageType Complex Type] The type of UID is xs:string ([XMLSCHEMA2])."); } if (meetingMessageType.RecurrenceIdSpecified) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSMTGS_R276"); // Verify MS-OXWSMTGS requirement: MS-OXWSMTGS_R276 Site.CaptureRequirementIfIsTrue( isSchemaValidated, 276, @"[In t:MeetingMessageType Complex Type] The type of RecurrenceId is xs:dateTime ([XMLSCHEMA2])."); } if (meetingMessageType.DateTimeStamp != null) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSMTGS_R278"); // Verify MS-OXWSMTGS requirement: MS-OXWSMTGS_R278 Site.CaptureRequirementIfIsTrue( isSchemaValidated, 278, @"[In t:MeetingMessageType Complex Type] The type of DateTimeStamp is xs:dateTime."); } if (meetingMessageType.IsOrganizerSpecified) { // Add the debug information this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSMTGS_R80004"); // Verify MS-OXWSMTGS requirement: MS-OXWSMTGS_R80004 Site.CaptureRequirementIfIsTrue( isSchemaValidated, 80004, @"[In t:MeetingMessageType Complex Type] The type of IsOrganizer is xs:boolean ([XMLSCHEMA2])."); } #endregion if (meetingMessageType.ResponseTypeSpecified) { this.VerifyResponseTypeType(isSchemaValidated); } }