public void importSmashGGBracket(string tournament, List <Person> playerList) { portal = new SmashGGPortal(tournament); curTourney = portal.GetTournament(); //Load current players in leaderboard foreach (Person p in playerList) { currentPlayers.Add(p); playerNames.Add(p.Name); } playerNames.Sort(); IEnumerable <Group> groups = new List <Group>(); if (importCompleteBracket) { groups = portal.GetGroups(eventID); foreach (Group g in groups) { createPlayer(g.id); } } else { createPlayer(groupID); } }
public void GetEventsTest() { SmashGGPortal port = new SmashGGPortal("genesis-3"); IEnumerable <Event> events = port.GetEvents(); Assert.Fail(); }
internal void importTourney(string tournament) { gg = new SmashGGPortal(tournament); events = gg.GetEvents(); eventSelector.DataSource = getEventNames(events); }