Microsoft.Protocols.TestSuites.MS_OXCRPC.S01_SynchronousCall.SendAuxiliaryPayloadBufferInEcDoConnectEx C# (CSharp) Method

SendAuxiliaryPayloadBufferInEcDoConnectEx() private method

It is used to test the reserved fields in the rgbAuxIn on method EcDoConnectEx.
private SendAuxiliaryPayloadBufferInEcDoConnectEx ( RgbAuxInEnum rgbAuxInEnum, byte payload ) : uint
rgbAuxInEnum RgbAuxInEnum Enum of the blocks sent in the rgbAuxIn on method EcDoConnectEx
payload byte A byte array contains an auxiliary payload buffer.
return uint
        private uint SendAuxiliaryPayloadBufferInEcDoConnectEx(RgbAuxInEnum rgbAuxInEnum, byte[] payload)
        {
            uint returnValueOfDisconnect = 0;
            this.rgbAuxIn = AdapterHelper.ComposeRgbAuxIn(rgbAuxInEnum, payload);
            this.pcbAuxOut = ConstValues.ValidpcbAuxOut;
            this.returnValue = this.oxcrpcAdapter.EcDoConnectEx(
                ref this.pcxh,
                TestSuiteBase.UlIcxrLinkForNoSessionLink,
                ref this.pulTimeStamp,
                this.rgbAuxIn,
                this.userDN,
                ref this.pcbAuxOut,
                this.rgwClientVersion,
                out this.rgwBestVersion,
                out this.picxr);
            Site.Assert.AreEqual<uint>(0, this.returnValue, "EcDoConnectEx should succeed for test of reserved fields and '0' is expected to be returned. The returned value is {0}.", this.returnValue);

            returnValueOfDisconnect = this.oxcrpcAdapter.EcDoDisconnect(ref this.pcxh);
            Site.Assert.AreEqual<uint>(0, returnValueOfDisconnect, "EcDoDisconnect should succeed and '0' is expected to be returned. The returned value is {0}.", returnValueOfDisconnect);
            return this.returnValue;
        }