public async Task <ActionResult> LoadLiveLink(string live, string tab) { var sopServ = new CrawlerServices(); bool isLiveStream = string.IsNullOrEmpty(live) == false; var links = await sopServ.GetLiveChampionAsync(tab, isLiveStream); return(Json(links, JsonRequestBehavior.AllowGet)); }
public async Task GetChampionAsyncTest() { var serv = new CrawlerServices(); var champs = await serv.GetLiveChampionAsync("today"); Assert.That(champs.Count > 0); }