示例#1
0
        public async Task AddCurrency(List <Currencies> currencies)
        {
            var currenciesController = new CurrenciesController();

            for (int i = 0; i < currencies.Count; i++)
            {
                await currenciesController.AddCurrency(currencies[i]);

                var returnedCurrency = await currenciesController.GetCurrencies(currencies[i].Name);

                if (currencies[i] != returnedCurrency.Value)
                {
                    Assert.Fail();
                }
            }
        }