public void DeserializeJson()
        {
            var typeMap = new BondJsonEnvelopeTypeMap();

            var typekey = typeMap.GetTypeKey(typeof(string));
            var envelope = new SimpleEnvelope(Protocol.Json, new Guid("daf0be6e-da1e-5a6a-0d49-69782745c885"), Encoding.UTF8.GetBytes(@"""A"""));

            var typekey2 = typeMap.GetInputKey(envelope);
            Assert.AreEqual(typekey, typekey2);

            var result = typeMap.GetTransform(typeof(string))(envelope);
            Assert.AreEqual("A", result);
        }
        public void DeserializeBondV1()
        {
            var typeMap = new BondJsonEnvelopeTypeMap();

            var typekey = typeMap.GetTypeKey(typeof(TestBondClass));

            var envelope = new SimpleEnvelope(Protocol.CompactBinaryV1, new Guid("daf0be6e-da1e-5a6a-0d49-69782745c886"), new byte[] { 41, 1, 65, 0 });

            var typekey2 = typeMap.GetInputKey(envelope);
            Assert.AreEqual(typekey, typekey2);

            var result = typeMap.GetTransform(typeof(TestBondClass))(envelope);
        }
        public void DeserializeBondV1()
        {
            var typeMap = new BondJsonEnvelopeTypeMap();

            var typekey = typeMap.GetTypeKey(typeof(TestBondClass));

            var envelope = new SimpleEnvelope(Protocol.CompactBinaryV1, new Guid("daf0be6e-da1e-5a6a-0d49-69782745c886"), new byte[] { 41, 1, 65, 0 });

            var typekey2 = typeMap.GetInputKey(envelope);

            Assert.AreEqual(typekey, typekey2);

            var result = typeMap.GetTransform(typeof(TestBondClass))(envelope);
        }
        public void DeserializeJson()
        {
            var typeMap = new BondJsonEnvelopeTypeMap();

            var typekey  = typeMap.GetTypeKey(typeof(string));
            var envelope = new SimpleEnvelope(Protocol.Json, new Guid("daf0be6e-da1e-5a6a-0d49-69782745c885"), Encoding.UTF8.GetBytes(@"""A"""));

            var typekey2 = typeMap.GetInputKey(envelope);

            Assert.AreEqual(typekey, typekey2);

            var result = typeMap.GetTransform(typeof(string))(envelope);

            Assert.AreEqual("A", result);
        }