public async Task LoadExchangeRateByCodeAsyncTestAsync() { try { string code = "EUR"; int count = 33; List <ExchangeRateModel> exchangeRateModelList = await ExchangeRateService.LoadExchangeRateByCodeAsync(code); Assert.IsNotNull(exchangeRateModelList); Assert.AreEqual(exchangeRateModelList.Count, count); } catch { Assert.Fail(); } }
public async Task <IActionResult> Eur() { List <ExchangeRateModel> exchangeRateModelList = await ExchangeRateService.LoadExchangeRateByCodeAsync(euro); return(View("Index", exchangeRateModelList)); }