Microsoft.Protocols.TestSuites.MS_ASEMAIL.S03_EmailFlag.MSASEMAIL_S03_TC19_IncludedTwoReminderSetElement C# (CSharp) Method

MSASEMAIL_S03_TC19_IncludedTwoReminderSetElement() private method

private MSASEMAIL_S03_TC19_IncludedTwoReminderSetElement ( ) : void
return void
        public void MSASEMAIL_S03_TC19_IncludedTwoReminderSetElement()
        {
            #region Update email with additional ReminderSet element
            byte secondReminderSet = 1;
            string insertTag = "<ReminderSet xmlns=\"Tasks\">";
            string reminderSetElement = "<ReminderSet xmlns=\"Tasks\">" + secondReminderSet.ToString() + "</ReminderSet>";

            // Get status code from the update flag operation result
            string statusCode = this.FlagEmailWithAddtionalFlagElement(reminderSetElement, insertTag);
            #endregion

            #region Verify requirement
            if (Common.IsRequirementEnabled(697, this.Site))
            {
                // Add the debug information
                Site.Log.Add(LogEntryKind.Debug, "Verify MS-ASEMAIL_R697");

                // If the Status returned from server response is null, it indicates the server doesn't return a protocol error then MS-ASEMAIL_R697 can be captured
                // Verify MS-ASEMAIL requirement:MS-ASEMAIL_R697
                Site.CaptureRequirementIfIsNull(
                    statusCode,
                    697,
                    @"[In Appendix B: Product Behavior] Implementation does not return a protocol status error in response to such a command request [A maximum of one tasks:ReminderSet child element is allowed per Flag element. The result of including more than one tasks:ReminderSet child element per Flag element is undefined.]. (Exchange Server 2007 SP1 and above follow this behavior.)");
            }
            #endregion
        }
        #endregion
S03_EmailFlag