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 GetItems() { var items = accessor.GetItems(); Assert.AreEqual("Blink Dagger", items.ElementAt(1)); }