Example #1
0
        public void DecodeToString(string input, string expect)
        {
            byte[] inputData = HexTransfer.GetBytesData(input);
            var    inputStr  = decoder.DecodeToString(inputData);

            Assert.Equal(expect, inputStr);
        }
        public void RegisterResponse(ushort orderID, byte[] body)
        {
            var responseOrderID = decoder.DecodeToUshort(body);
            var result          = body[2];
            var authData        = new byte[body.Length - 3];

            Array.Copy(body, 3, authData, 0, authData.Length);
            var authentication = decoder.DecodeToString(authData);

            receiver.RegisterResponse(responseOrderID, result, authentication);
        }