Example #1
0
        public void ConvertTest3()
        {
            APIHandler         api      = new APIHandler();
            List <CurrencyDTO> list     = api.GetCurrenciesDTO();
            Double             response = api.Convert("CHF", "EUR", 1, list);

            Assert.IsTrue(response < 1);
        }
Example #2
0
        public void ConvertTest()
        {
            APIHandler         api              = new APIHandler();
            List <CurrencyDTO> list             = api.GetCurrenciesDTO();
            Double             selectedQuantity = 10;
            Double             response         = api.Convert("EUR", "USD", selectedQuantity, list);

            Assert.IsTrue(response > selectedQuantity);
        }