public void SimpleTrade()
        {
            var trade = new SimpleTrade();
            trade.AccountName = "Acct1";
            trade.IsBuyRequest = true;
            trade.OrderType = "Market";
            trade.Price = new decimal(103.30);
            trade.Quantity = 100;
            trade.RequestId = "R123";
            trade.Ticker = "VMW";
            trade.UserName = "******";
            var converter = new JsonMessageConverter();
            var message = converter.ToMessage(trade, new MessageProperties());

            var marshalledTrade = (SimpleTrade)converter.FromMessage(message);
            Assert.AreEqual(trade, marshalledTrade);
        }
        public void SimpleTrade()
        {
            var trade = new SimpleTrade();

            trade.AccountName  = "Acct1";
            trade.IsBuyRequest = true;
            trade.OrderType    = "Market";
            trade.Price        = new decimal(103.30);
            trade.Quantity     = 100;
            trade.RequestId    = "R123";
            trade.Ticker       = "VMW";
            trade.UserName     = "******";
            var converter = new JsonMessageConverter();
            var message   = converter.ToMessage(trade, new MessageProperties());

            var marshalledTrade = (SimpleTrade)converter.FromMessage(message);

            Assert.AreEqual(trade, marshalledTrade);
        }