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

VerifyRopGetPerUserLongTermIdsSuccessResponse() private method

Verify RopGetPerUserLongTermIds Success Response
private VerifyRopGetPerUserLongTermIdsSuccessResponse ( RopGetPerUserLongTermIdsResponse ropGetPerUserLongTermIdsResponse, byte inputHandleIndex ) : void
ropGetPerUserLongTermIdsResponse RopGetPerUserLongTermIdsResponse The success response of RopGetPerUserLongTermIds request
inputHandleIndex byte The field of InputHandleIndex in RopGetPerUserLongTermIds request
return void
        private void VerifyRopGetPerUserLongTermIdsSuccessResponse(RopGetPerUserLongTermIdsResponse ropGetPerUserLongTermIdsResponse, byte inputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R400");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R400
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropGetPerUserLongTermIdsResponse.RopId.GetType(),
                400,
                @"[In RopGetPerUserLongTermIds ROP Success Response Buffer] RopId (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R402
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopGetPerUserLongTermIds,
                ropGetPerUserLongTermIdsResponse.RopId,
                402,
                @"[In RopGetPerUserLongTermIds ROP Success Response Buffer] RopId (1 byte): For this operation[RopGetPerUserLongTermIds], this field[RopId (1 byte)] is set to 0x60.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R403
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropGetPerUserLongTermIdsResponse.InputHandleIndex.GetType(),
                403,
                @"[In RopGetPerUserLongTermIds ROP Success Response Buffer] InputHandleIndex (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R404
            Site.CaptureRequirementIfAreEqual<byte>(
                inputHandleIndex,
                ropGetPerUserLongTermIdsResponse.InputHandleIndex,
                404,
                @"[In RopGetPerUserLongTermIds ROP Success 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_R405");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R405
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(uint),
                ropGetPerUserLongTermIdsResponse.ReturnValue.GetType(),
                405,
                @"[In RopGetPerUserLongTermIds ROP Success Response Buffer] ReturnValue (4 bytes): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R407
            Site.CaptureRequirementIfAreEqual<uint>(
                SuccessReturnValue,
                ropGetPerUserLongTermIdsResponse.ReturnValue,
                407,
                @"[In RopGetPerUserLongTermIds ROP Success Response Buffer] ReturnValue (4 bytes): For this response[Success Response], this field[ReturnValue (4 bytes)] is set to 0x00000000.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R408
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(ushort),
                ropGetPerUserLongTermIdsResponse.LongTermIdCount.GetType(),
                408,
                @"[In RopGetPerUserLongTermIds ROP Success Response Buffer] LongTermIdCount (2 bytes): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R410
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(LongTermId[]),
                ropGetPerUserLongTermIdsResponse.LongTermIds.GetType(),
                410,
                @"[In RopGetPerUserLongTermIds ROP Success Response Buffer] LongTermIds (variable): An array of LongTermID structures, of which the format is specified in [MS-OXCDATA] section 2.2.1.3.1. ");
        }
MS_OXCROPSAdapter