示例#1
0
        public async void Test_Last_500_Covid_Records()
        {
            IEnumerable <CovidTestingStatesDaily> result;

            using (ICovidTestingRepository repo = new CovidTestingRepository())
            {
                result = await repo.ProgressAsync();
            }

            Assert.NotNull(result);
            Assert.Equal(500, result.Count());
        }
示例#2
0
        public async void Test_Covid_Progress_by_State()
        {
            string result;
            var    filterState = "CA";

            using (ICovidTestingRepository repo = new CovidTestingRepository())
            {
                result = await repo.ProgressAsync(filterState);
            }

            Assert.NotNull(result);
        }
示例#3
0
        public async void Test_Yesterday_Covid_Progress_In_USA()
        {
            string result;
            var    filterDate = DateTime.Now.AddDays(-1);

            using (ICovidTestingRepository repo = new CovidTestingRepository())
            {
                result = await repo.ProgressAsync(filterDate);
            }

            Assert.NotNull(result);
        }