Example #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());
        }
Example #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);
        }
Example #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);
        }