public async Task GetCasesRegionTestIn()
        {
            DataCovidAPI api = DataCovidAPI.getInstance();

            var result = await api.GetCasesRegion("Guatemala");

            Assert.AreEqual(0, result.Count);
        }
Exemplo n.º 2
0
        public async Task <ActionResult> TableTopProvince(string iso)
        {
            var model = await CovidAPI.GetCasesRegion(iso);

            if (Session != null)
            {
                Session.Add("infoExport", model);
                Session.Add("region", false);
            }

            return(View("TableTopProvince", model));
        }