/// <summary> /// Initializes a new instance of the <see cref="HandicapCalculationProcessorService" /> class. /// </summary> /// <param name="handicapCalculationProcessRepository">The handicap calculation process 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> public HandicapCalculationProcessorService(IAggregateRepository <HandicapCalculationProcessAggregate> handicapCalculationProcessRepository, IAggregateRepository <TournamentAggregate> tournamentRepository, IHandicapAdjustmentCalculatorService handicapAdjustmentCalculatorService, IAggregateRepository <PlayerAggregate> playerRepository) { this.HandicapCalculationProcessRepository = handicapCalculationProcessRepository; this.TournamentRepository = tournamentRepository; this.HandicapAdjustmentCalculatorService = handicapAdjustmentCalculatorService; this.PlayerRepository = playerRepository; }
/// <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; }