/// <summary> /// Verify the TaskSuggestionType structure /// </summary> /// <param name="taskSuggestion">An TaskSuggestionType instance.</param> private void VerifyTaskSuggestionType(TaskSuggestionType taskSuggestion) { if (Common.IsRequirementEnabled(1286, this.Site)) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSCORE_R1286"); // The taskSuggestion element is TaskSuggestionType type, if schema is validated and the element is not null // This requirement can be verified. Site.CaptureRequirementIfIsNotNull( taskSuggestion, 1286, @"[In Appendix C: Product Behavior] Implementation does support the TaskSuggestionType complex type which specifies a task suggestion. (Exchange 2013 and above follow this behavior.) <xs:complexType name=""TaskSuggestionType""> <xs:sequence> <xs:element name=""TaskString"" type=""xs:string"" minOccurs=""0"" /> <xs:element name=""Assignees"" type=""t:EmailUserType"" minOccurs=""0"" maxOccurs=""1"" /> </xs:sequence> </xs:complexType>"); } if (taskSuggestion.Assignees != null) { if (Common.IsRequirementEnabled(1283, this.Site)) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSCORE_R1283"); // Verify MS-OXWSCORE requirement: MS-OXWSCORE_R1283 // The Assignees element is ArrayOfEmailUsersType type, if schema is validated and the element is not null // This requirement can be verified. Site.CaptureRequirement( 1283, @"[In Appendix C: Product Behavior] Implementation does support the ArrayOfEmailUsersType complex type which specifies an array of email users. (Exchange 2013 and above follow this behavior.) <xs:complexType name=""ArrayOfEmailUsersType""> <xs:sequence> <xs:element name=""EmailUser"" type=""t:EmailUserType"" minOccurs=""0"" maxOccurs=""unbounded"" /> </xs:sequence> </xs:complexType>"); } foreach (EmailUserType assignee in taskSuggestion.Assignees) { if (Common.IsRequirementEnabled(1284, this.Site)) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSCORE_R1284"); // The assignee element is EmailUserType type, if schema is validated and the element is not null // This requirement can be verified. Site.CaptureRequirementIfIsNotNull( assignee, 1284, @"[In Appendix C: Product Behavior] Implementation does support the EmailUserType complex type which specifies an email user. (Exchange 2013 and above follow this behavior.) <xs:complexType name=""EmailUserType""> <xs:sequence> <xs:element name=""Name"" type=""xs:string"" minOccurs=""0"" /> <xs:element name=""UserId"" type=""xs:string"" minOccurs=""0"" /> </xs:sequence> </xs:complexType>"); } } } }