Microsoft.Protocols.TestSuites.MS_OXCMAPIHTTP.MS_OXCMAPIHTTPAdapter.VerifyResponseMetaTags C# (CSharp) Method

VerifyResponseMetaTags() private method

Verify the Response Meta-Tags related requirements.
private VerifyResponseMetaTags ( List metaTags ) : void
metaTags List The meta-tag value to be verified.
return void
        private void VerifyResponseMetaTags(List<string> metaTags)
        {
            // Add the debug information
            this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMAPIHTTP_R1130");
        
            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R1130
            bool isVerifiedR1130 = false;

            for (int i = 0; i < metaTags.Count; i++)
            {
                if (this.metaTagsList.Contains(metaTags[i]))
                {
                    isVerifiedR1130 = true;
                }
                else
                {
                    isVerifiedR1130 = false;
                    break;
                }
            }

            this.Site.CaptureRequirementIfIsTrue(
                isVerifiedR1130,
                1130,
                @"[In Response Meta-Tags] The protocol defines three meta-tags [PROCESSING, PENDING, DONE] that are used to inform the client as to the state of processing a request on the server.");

            // The structure of response body is parsed according to the request of this Specification, if the code run to here and passed, 
            // that means R1131 is verified successfully.
            this.Site.CaptureRequirement(
                1131,
                @"[In Response Meta-Tags] A meta-tag is returned at the beginning of the response body.");
        }
MS_OXCMAPIHTTPAdapter