コード例 #1
0
 public TeamRaceFinishedHandler(
     ITeamRepository teamRepository,
     IActiveTeamRepository activeTeamRepository)
 {
     this._teamRepository       = teamRepository;
     this._activeTeamRepository = activeTeamRepository;
 }
コード例 #2
0
 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);
 }
コード例 #3
0
ファイル: RaceManager.cs プロジェクト: khloroform187/dddnosql
        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);
        }