Ejemplo n.º 1
0
        public async Task<CovidMasterData> GetAllCovidData()
        {
            CovidMasterData data = await GetCaseData("Confirmed", null);
            await GetCaseData("Deaths", data);
            await GetCaseData("Recovered", data);
            data.GenerateCountryData();
            data.Trim();

            return data;
        }
Ejemplo n.º 2
0
        public async Task GetWebData()
        {
            CovidDataService service = new CovidDataService();
            CovidMasterData  data    = await service.GetCaseData("Confirmed", null);

            await service.GetCaseData("Deaths", data);

            await service.GetCaseData("Recovered", data);

            data.GenerateCountryData();
            Assert.IsTrue(data.LocaleData.Count > 100);
        }