Beispiel #1
0
 public LineupManager(
     IPlayerPool playerPool,
     IGameStatsRepository gameStatsRepository)
 {
     PlayerPool          = playerPool;
     GameStatsRepository = gameStatsRepository;
     LineupValid         = true;
 }
 public BaseRosters(
     IEventStore eventStore,
     IGameStatsRepository statsRepo = null)
 {
     Roster      = new Dictionary <string, List <string> >();
     PlayerIndex = new Dictionary <string, Player>();
     rosterMoves = (List <RosterEvent>)
                   eventStore.Get <RosterEvent>("moves");
     CalculateRosters();
     StatsRepo = statsRepo;
 }
Beispiel #3
0
 public RetroRosters(
     IEventStore eventStore,
     IGameStatsRepository statsRepo = null,
     int season = 1988,
     RetroFreeAgentService freeAgentService = null)
     : base(eventStore, statsRepo)
 {
     if (freeAgentService == null)
     {
         _freeAgentService = new RetroFreeAgentService(
             new GameLogService.GameLogService(),
             season);
     }
     else
     {
         _freeAgentService = freeAgentService;
     }
     _freeAgentService.WeeksLeft
         = new int[] { 1, 4, 6, 9, 12, 13, 16 };
 }
Beispiel #4
0
 public GridstatsRosters(
     IEventStore eventStore,
     IGameStatsRepository statsRepo = null)
     : base(eventStore, statsRepo)
 {
 }