public TeamRaceFinishedHandler( ITeamRepository teamRepository, IActiveTeamRepository activeTeamRepository) { this._teamRepository = teamRepository; this._activeTeamRepository = activeTeamRepository; }
public EventDispatcher( IRaceRepository raceRepository, ITeamRepository teamRepository, IActiveTeamRepository activeTeamRepository, ILapStatisticRepository lapStatisticRepository) { this._raceStartedHandler = new RaceStartedHandler(raceRepository, this); this._raceEndedHandler = new RaceFinishedHandler(raceRepository, this); this._teamRaceStartedHandler = new TeamRaceStartedHandler(teamRepository, activeTeamRepository); this._teamRaceFinishedHandler = new TeamRaceFinishedHandler(teamRepository, activeTeamRepository); this._lapCompletedHandler = new LapCompletedHandler(raceRepository, lapStatisticRepository); this._teamCreatedHandler = new TeamCreatedHandler(raceRepository); }
public RaceManager( IRaceRepository raceRepository, ITeamRepository teamRepository, IActiveTeamRepository activeTeamRepository, ILapStatisticRepository lapStatisticRepository) { this._raceRepository = raceRepository; this._teamRepository = teamRepository; this._activeTeamRepository = activeTeamRepository; this._eventDispatcher = new EventDispatcher( raceRepository, teamRepository, activeTeamRepository, lapStatisticRepository); }