public async Task GetRegionsComboTest() { DataCovidAPI api = DataCovidAPI.getInstance(); var result = await api.GetRegionsCombo(); Assert.AreNotEqual(0, result.Count); }
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 GetCasesRegionTestIn() { DataCovidAPI api = DataCovidAPI.getInstance(); var result = await api.GetCasesRegion("Guatemala"); Assert.AreEqual(0, result.Count); }