public async Task GetPricesTest()
        {
            List <Price> prices = await _rateEndpoints.GetPrices("EUR_USD,CHF_JPY");

            Assert.IsNotNull(prices);
            Assert.IsTrue(prices.Count == 2);
        }
Exemplo n.º 2
0
        public async Task DefaultFactoryTest()
        {
            DefaultFactory factory       = new DefaultFactory("ec89b162d4a9922c8fa40769c2453d8b-cc1fb522857d46a08a90ef09730343a6", AccountType.practice, 4905675);
            RateEndpoints  rateEndpoints = factory.GetEndpoint <RateEndpoints>();

            Assert.IsNotNull(rateEndpoints);

            List <Price> prices = await rateEndpoints.GetPrices("EUR_USD");

            Assert.IsNotNull(prices);
            Assert.IsTrue(prices.Count > 0);
        }