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

MSASEMAIL_S03_TC21_IncludedTwoStartDateElement() private method

private MSASEMAIL_S03_TC21_IncludedTwoStartDateElement ( ) : void
return void
        public void MSASEMAIL_S03_TC21_IncludedTwoStartDateElement()
        {
            #region Update email with the additional StartDate element
            DateTime secondStartDate = DateTime.Now;

            // Additional startDate elements
            string insertTag = "<StartDate xmlns=\"Tasks\">";
            string reminderTimeElement = "<StartDate xmlns=\"Tasks\">" + secondStartDate.ToString("yyyy-MM-ddThh:mm:ss.fffZ") + "</StartDate>";

            // Send mail and update email flag
            string statusCode = this.FlagEmailWithAddtionalFlagElement(reminderTimeElement, insertTag);
            #endregion

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

                // If the Status returned from server response is null, it indicates the server doesn't return a protocol error then MS-ASEMAIL_R746 can be captured.
                // Verify MS-ASEMAIL requirement:MS-ASEMAIL_R746
                Site.CaptureRequirementIfIsNull(
                    statusCode,
                    746,
                    @"[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:StartDate child element is allowed per Flag element. The result of including more than one tasks:StartDate child element per Flag element is undefined.]. (Exchange Server 2007 SP1 and above follow this behavior.)");
            }
            #endregion
        }
        #endregion
S03_EmailFlag