示例#1
0
        public void GetTeamsByIds()
        {
            ApiService.ApiKey = APIKEY;//you must add your project, if you dont use ninject
            NonStaticApi api  = new NonStaticApi(new Api.Cache.ApiCache());
            List <Team>  data = api.GetTeams(new List <long>()
            {
                summonerId1, summonerId2
            }, Region);

            Assert.IsTrue(data.Count > 0);
        }
示例#2
0
        public void GetTeamByNames()
        {
            ApiService.ApiKey = APIKEY;//you must add your project, if you dont use ninject
            NonStaticApi api  = new NonStaticApi(new Api.Cache.ApiCache());
            List <Team>  data = api.GetTeams(new List <string>()
            {
                teamName1, teamName2
            }, Region);

            Assert.IsTrue(data.Count > 0);
        }