public void TestCurrencyDestinationCurrency()
        {
            //Arrange
            var mapper = new SimpleTradeMapper();

            string[] strData = { "XXXYYY", "5000", "1.5" };
            //Act
            TradeRecord tradeRec = mapper.Map(strData);

            //Assert
            Assert.AreEqual(tradeRec.DestinationCurrency, "YYY");
        }
        public void TestPrice()
        {
            //Arrange
            Decimal price       = 1.99M;
            string  priceString = "1.99";
            var     mapper      = new SimpleTradeMapper();

            string[] strData = { "XXXYYY", "5000", priceString };
            //Act
            TradeRecord tradeRec = mapper.Map(strData);

            //Assert
            Assert.AreEqual(tradeRec.Price, price);
        }
        public void TestLotSize()
        {
            //Arrange
            float  LotSize           = 100000f;
            float  tradeAmount       = 5000;
            string tradeAmountString = "5000";
            var    mapper            = new SimpleTradeMapper();

            string[] strData = { "XXXYYY", tradeAmountString, "1.5" };
            //Act
            TradeRecord tradeRec = mapper.Map(strData);

            //Assert

            Assert.AreEqual(tradeRec.Lots, tradeAmount / LotSize);
        }