Esempio n. 1
0
        public async Task GetStockInfoData_Test()
        {
            var trades = await _portfolioService.GetAllAsync();

            var result = await _stockQuoteService.GetStockInfoAsync(trades);

            Assert.Equal(2, result.Count());
        }
        public void PortfolioService_should_fetchData()
        {
            int    month  = 2;
            int    year   = 2019;
            string symbol = "IDC";
            var    result = _portfolioService.GetAllAsync();

            Assert.NotNull(result);
        }
        public async Task  GetAllAsync_CacheTest()
        {
            var result = await _service.GetAllAsync();

            Assert.Equal(1, result.Count);
        }