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

            var result = await api.GetRegionsCombo();

            Assert.AreNotEqual(0, result.Count);
        }
Beispiel #2
0
        public async Task <ActionResult> TopCasesCovid()
        {
            ViewBag.regionsList = await CovidAPI.GetRegionsCombo();

            return(View("TopCasesCovid"));
        }