Example #1
0
 public TournamentManager()
 {
     accessor = new DotaAPIAccessor();
     //Try to get all this info from cache first, then get it from API and save to cache if that fails
     heroes      = accessor.GetHeroes().ToArray();
     items       = accessor.GetItems().ToArray();
     tournaments = accessor.GetAllTournaments();
 }
        public void GetHeroes()
        {
            var heroes = accessor.GetHeroes();

            Assert.AreEqual("Anti-Mage", heroes.ElementAt(1));
        }