Beispiel #1
0
        public ExchangeResult SellCurrency(decimal customerAmount, string currenyType)
        {
            ExchangeBC bc     = new ExchangeBC();
            var        result = bc.SellCurrecy(customerAmount, currenyType);

            return(result);
        }
        public void SellCurrencyZeroAmount()
        {
            ExchangeBC bc     = new ExchangeBC();
            var        result = bc.SellCurrecy(0, "USD");

            Assert.AreEqual(0, result.ExchangeRate);
            Assert.AreEqual("Please enter correct amount", result.Message);
        }