public void Detector_ShowsAllFreeAgentWithStats() { var retroFreeAgentService = new RetroFreeAgentService( new GameLogService.GameLogService(), K_CurrentSeason, new int[] { 1, 4, 6, 9, 12, 13, 16 }); var result = retroFreeAgentService .ShowAllFreeAgents(9, true); Assert.IsTrue(result > 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 }; }