public async Task GetCasesWorldTest() { DataCovidAPI api = DataCovidAPI.getInstance(); var result = await api.GetCasesWorld(); Assert.IsInstanceOfType(result, typeof(List <TopRegionWorld>)); }
public async Task GetCasesWorldTestQty() { DataCovidAPI api = DataCovidAPI.getInstance(); var result = await api.GetCasesWorld(); Assert.AreEqual(10, result.Count); }
public async Task <ActionResult> TableTopRegion() { var model = await CovidAPI.GetCasesWorld(); if (Session != null) { Session.Add("infoExport", model); Session.Add("region", true); } return(View("TableTopRegion", model)); }