Microsoft.Protocols.TestSuites.MS_OXWSATT.S01_AttachmentProcessing.VerifyGetAttachmentSuccessfulResponse C# (CSharp) Method

VerifyGetAttachmentSuccessfulResponse() private method

Verify the GetAttachment operation response.
private VerifyGetAttachmentSuccessfulResponse ( GetAttachmentResponseType getAttachmentResponse ) : void
getAttachmentResponse GetAttachmentResponseType A GetAttachmentResponseType instance.
return void
        private void VerifyGetAttachmentSuccessfulResponse(GetAttachmentResponseType getAttachmentResponse)
        {
            foreach (AttachmentInfoResponseMessageType getAttachmentInfoResponse in getAttachmentResponse.ResponseMessages.Items)
            {
                // Add the debug information
                Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSATT_R259");

                // Verify MS-OXWSATT requirement: MS-OXWSATT_R259
                Site.CaptureRequirementIfAreEqual<ResponseClassType>(
                            ResponseClassType.Success,
                            getAttachmentInfoResponse.ResponseClass,
                            259,
                            @"[In GetAttachment Operation]  If the request is successful, the GetAttachment operation returns a GetAttachmentResponse element with the ResponseClass attribute of the GetAttachmentResponseMessage element set to ""Success"". ");

                // Add the debug information
                Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSATT_R260");

                // Verify MS-OXWSATT requirement: MS-OXWSATT_R260
                Site.CaptureRequirementIfAreEqual<ResponseCodeType>(
                            ResponseCodeType.NoError,
                            getAttachmentInfoResponse.ResponseCode,
                            260,
                            @"[In GetAttachment Operation] [A successful GetAttachment operation request returns a GetAttachmentResponse element ] The ResponseCode element of the GetAttachmentResponse element is set to ""NoError"".");
            }
        }
        #endregion