public async Task TestGetValueUSD() { string iso = "USD"; CurrencyRepository currency = CurrencyRepository.GetCurrencyRepositoryByISO(iso); CurrencyModel model = await currency.GetCurrency(); Assert.IsNotNull(model, "model should not be null"); Assert.AreEqual(typeof(CurrencyModel), model.GetType(), "model must to be type of CurrencyModel"); Assert.AreEqual(typeof(decimal), model.PurchasePrice.GetType(), "PurchasePrice must to be type of decimal"); Assert.AreEqual(typeof(decimal), model.SalePrice.GetType(), "SalePrice must to be type of decimal"); Assert.IsNotNull(model.PurchasePrice, "currency should not be null due implemented repositories"); }