Exemplo n.º 1
0
        public void Invalid_ExchangeRateService()
        {
            ExchangeRateService.Api = "badconnection.dk";
            var res = ExchangeRateService.GetRates();

            Assert.IsTrue(res == null);
        }
Exemplo n.º 2
0
 public DetailsModel(IOrderService context)
 {
     rates      = ExchangeRateService.GetRates();
     Currencies = new List <SelectListItem>()
     {
         new SelectListItem("USD", "USD"),
         new SelectListItem("DKK", "DKK"),
         new SelectListItem("EUR", "EUR"),
         new SelectListItem("GBP", "GBP"),
         new SelectListItem("CAD", "CAD")
     };
     _context = context;
 }
Exemplo n.º 3
0
        public void Valid_ExchangeRateService()
        {
            var res = ExchangeRateService.GetRates();

            Assert.IsTrue(res.rates.EUR > 0);
        }