Microsoft.Protocols.TestSuites.MS_OXCROPS.MS_OXCROPSAdapter.VerifyRopRemoveAllRecipientsResponse C# (CSharp) Method

VerifyRopRemoveAllRecipientsResponse() private method

Verify RopRemoveAllRecipients Response
private VerifyRopRemoveAllRecipientsResponse ( RopRemoveAllRecipientsResponse ropRemoveAllRecipientsResponse, byte inputHandleIndex ) : void
ropRemoveAllRecipientsResponse RopRemoveAllRecipientsResponse The response of RopRemoveAllRecipients request
inputHandleIndex byte The field of InputHandleIndex in RopRemoveAllRecipients request
return void
        private void VerifyRopRemoveAllRecipientsResponse(RopRemoveAllRecipientsResponse ropRemoveAllRecipientsResponse, byte inputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R1842");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1842
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropRemoveAllRecipientsResponse.RopId.GetType(),
                1842,
                @"[In RopRemoveAllRecipients ROP Response Buffer]RopId (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1844
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopRemoveAllRecipients,
                ropRemoveAllRecipientsResponse.RopId,
                1844,
                @"[In RopRemoveAllRecipients ROP Response Buffer,RopId (1 byte)]For this operation[RopRemoveAllRecipients], this field is set to 0x0D.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1845
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropRemoveAllRecipientsResponse.InputHandleIndex.GetType(),
                1845,
                @"[In RopRemoveAllRecipients ROP Response Buffer]InputHandleIndex (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1846
            Site.CaptureRequirementIfAreEqual<byte>(
                inputHandleIndex,
                ropRemoveAllRecipientsResponse.InputHandleIndex,
                1846,
                @"[In RopRemoveAllRecipients ROP Response Buffer,InputHandleIndex (1 byte)]This index MUST be set to the value specified in the InputHandleIndex field in the request..");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1848
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(uint),
                ropRemoveAllRecipientsResponse.ReturnValue.GetType(),
                1848,
                @"[In RopRemoveAllRecipients ROP Response Buffer]ReturnValue (4 bytes): An unsigned integer.");
        }
        #endregion
MS_OXCROPSAdapter