示例#1
0
        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));
        }
示例#2
0
        public async Task GetChampionAsyncTest()
        {
            var serv = new CrawlerServices();

            var champs = await serv.GetLiveChampionAsync("today");

            Assert.That(champs.Count > 0);
        }