/// <summary> /// Verify the ResponseObjectType structure /// </summary> /// <param name="responseObject">A ResponseObjectType instance.</param> private void VerifyResponseObjectType(ResponseObjectType responseObject) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSCDATA_R1289"); // If the responseObject element is not null and schema is validated, // this requirement can be validated. Site.CaptureRequirementIfIsNotNull( responseObject, "MS-OXWSCDATA", 1289, @"[In t:ResponseObjectType Complex Type] The type [ResponseObjectType] is defined as follow: <xs:complexType name=""ResponseObjectType"" abstract=""true"" > <xs:complexContent> <xs:extension base=""t:ResponseObjectCoreType"" > <xs:attribute name=""ObjectName"" type=""xs:string"" use=""optional"" /> </xs:extension> </xs:complexContent> </xs:complexType>"); this.VerifyResponseObjectCoreType(responseObject); switch (responseObject.GetType().Name) { case "ForwardItemType": // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSCDATA_R1173"); // Verify MS-OXWSCORE requirement: MS-OXWSCDATA_R1173 // If the responseObject element is a ForwardItemType, it must not be null and schema is validated, // this requirement can be validated. Site.CaptureRequirement( "MS-OXWSCDATA", 1173, @"[In t:ForwardItemType Complex Type] The type [ForwardItemType] is defined as follow: <xs:complexType name=""ForwardItemType""> <xs:complexContent> <xs:extension base=""t:SmartResponseType"" /> </xs:complexContent> </xs:complexType>"); break; case "ReplyAllToItemType": // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSCDATA_R1267"); // Verify MS-OXWSCORE requirement: MS-OXWSCDATA_R1267 // If the responseObject element is a ReplyAllToItemType, it must not be null and schema is validated, // this requirement can be validated. Site.CaptureRequirement( "MS-OXWSCDATA", 1267, @"[In t:ReplyAllToItemType Complex Type] The type [ReplyAllToItemType] is defined as follow: <xs:complexType name=""ReplyAllToItemType""> <xs:complexContent> <xs:extension base=""t:SmartResponseType"" /> </xs:complexContent> </xs:complexType>"); break; case "ReplyToItemType": // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSCDATA_R1276"); // Verify MS-OXWSCORE requirement: MS-OXWSCDATA_R1276 // If the responseObject element is a ReplyToItemType, it must not be null and schema is validated, // this requirement can be validated. Site.CaptureRequirement( "MS-OXWSCDATA", 1276, @"[In t:ReplyToItemType Complex Type] The type [ReplyToItemType] is defined as follow: <xs:complexType name=""ReplyToItemType""> <xs:complexContent> <xs:extension base=""t:SmartResponseType"" /> </xs:complexContent> </xs:complexType>"); break; case "SuppressReadReceiptType": // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSCDATA_R1295"); // Verify MS-OXWSCORE requirement: MS-OXWSCDATA_R1295 // If the responseObject element is a SuppressReadReceiptType, it must not be null and schema is validated, // this requirement can be validated. Site.CaptureRequirement( "MS-OXWSCDATA", 1295, @"[In t:SuppressReadReceiptType Complex Type] The type [SuppressReadReceiptType] is defined as follow: <xs:complexType name=""SuppressReadReceiptType""> <xs:complexContent> <xs:extension base=""t:ReferenceItemResponseType"" /> </xs:complexContent> </xs:complexType>"); break; } }