/// <summary>
 /// Initializes a new instance of the <see cref="TournamentCommandHandler" /> class.
 /// </summary>
 /// <param name="golfClubRepository">The golf club repository.</param>
 /// <param name="tournamentRepository">The tournament repository.</param>
 /// <param name="tournamentApplicationService">The tournament application service.</param>
 public TournamentCommandHandler(IAggregateRepository <GolfClubAggregate> golfClubRepository,
                                 IAggregateRepository <TournamentAggregate> tournamentRepository,
                                 ITournamentApplicationService tournamentApplicationService)
 {
     this.GolfClubRepository           = golfClubRepository;
     this.TournamentRepository         = tournamentRepository;
     this.TournamentApplicationService = tournamentApplicationService;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandRouter" /> class.
 /// </summary>
 /// <param name="clubRepository">The club repository.</param>
 /// <param name="tournamentRepository">The tournament repository.</param>
 /// <param name="handicapAdjustmentCalculatorService">The handicap adjustment calculator service.</param>
 /// <param name="playerRepository">The player repository.</param>
 /// <param name="oAuth2SecurityService">The o auth2 security service.</param>
 /// <param name="golfClubMembershipApplicationService">The golf club membership application service.</param>
 /// <param name="tournamentApplicationService">The tournament application service.</param>
 /// <param name="handicapCalculationProcessRepository">The handicap calculation process repository.</param>
 public CommandRouter(IAggregateRepository <GolfClubAggregate> clubRepository,
                      IAggregateRepository <TournamentAggregate> tournamentRepository,
                      IHandicapAdjustmentCalculatorService handicapAdjustmentCalculatorService,
                      IAggregateRepository <PlayerAggregate> playerRepository,
                      ISecurityService oAuth2SecurityService,
                      IGolfClubMembershipApplicationService golfClubMembershipApplicationService,
                      ITournamentApplicationService tournamentApplicationService,
                      IAggregateRepository <HandicapCalculationProcessAggregate> handicapCalculationProcessRepository)
 {
     this.HandicapCalculationProcessRepository = handicapCalculationProcessRepository;
     this.ClubRepository       = clubRepository;
     this.TournamentRepository = tournamentRepository;
     this.HandicapAdjustmentCalculatorService = handicapAdjustmentCalculatorService;
     this.PlayerRepository      = playerRepository;
     this.OAuth2SecurityService = oAuth2SecurityService;
     this.GolfClubMembershipApplicationService = golfClubMembershipApplicationService;
     this.TournamentApplicationService         = tournamentApplicationService;
 }