コード例 #1
0
 public LeagueTeamCollection CreateLeagueTeamCollection(string leagueName, string leagueKey)
 {
     var league = new League(1, leagueName, leagueKey, 1, 16);
     var teamCollection = new TeamCollection();
     teamCollection.Add(new Team(1, "team_key", "team_name"));
     return new LeagueTeamCollection(league, teamCollection);
 }
コード例 #2
0
        public LeagueTeamCollection(League league, TeamCollection teams)
        {
            if (league == null) { throw new ArgumentNullException("league"); }
            if (teams == null) { throw new ArgumentNullException("teams"); }

            this.League = league;
            this.Teams = teams;
        }
コード例 #3
0
 internal LeagueSettings(IDictionary<PositionAbbreviation, RosterPosition> rosterPositions, League league)
 {
     this.RosterPositions = rosterPositions;
     this.League = league;
 }
        public LeagueDraftResultCollection(League league, DraftResultCollection draftResults)
        {
            if (league == null) { throw new ArgumentNullException("league"); }
            if (draftResults == null) { throw new ArgumentNullException("draftResults"); }

            this.League = league;
            this.DraftResults = draftResults;
        }
コード例 #5
0
 public LeagueDraftResultCollection CreateLeagueDraftResultCollection(int leagueId, string leagueKey)
 {
     var league = new League(leagueId, "League " + leagueId, leagueKey, 1, 16);
     var draftResults = CreateDraftResultCollection();
     return new LeagueDraftResultCollection(league, draftResults);
 }