public LeagueCollection CreateLeagueCollection()
        {
            var leagues = new LeagueCollection();

            for (int i = 0; i < 3; i++)
            {
                leagues.Add(new League(i, "League_" + i, "LeagueKey_" + i, 1, 16));
            }

            return leagues;
        }
Ejemplo n.º 2
0
 private List<ViewLeague> GetViewLeaguesFromLeagues(LeagueCollection leagues)
 {
     List<ViewLeague> vls = new List<ViewLeague>();
     ViewLeague vl;
     foreach (League l in leagues)
     {
         vl = new ViewLeague();
         vl.LeagueDescription = l.Description;
         vl.LeagueName = l.LeagueName;
         vl.LeagueID = l.LeagueID;
         vl.RegionAbbrev = l.RegionAbbrev;
         vls.Add(vl);
     }
     return vls;
 }