예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GolfClubMembershipDomainEventHandler" /> class.
 /// </summary>
 /// <param name="commandRouter">The command router.</param>
 /// <param name="manager">The manager.</param>
 /// <param name="eventTypesToSilentlyHandle">The event types to silently handle.</param>
 public GolfClubMembershipDomainEventHandler(ICommandRouter commandRouter,
                                             IManagmentAPIManager manager,
                                             IDomainEventTypesToSilentlyHandle eventTypesToSilentlyHandle)
 {
     this.CommandRouter = commandRouter;
     this.Manager       = manager;
     this.EventTypesToSilentlyHandle = eventTypesToSilentlyHandle;
 }
        // GetTournament

        /// <summary>
        /// Initializes a new instance of the <see cref="DeveloperController"/> class.
        /// </summary>
        /// <param name="manager">The manager.</param>
        /// <param name="golfClubRepository">The golf club repository.</param>
        /// <param name="golfClubMembershipRepository">The golf club membership repository.</param>
        /// <param name="playerRepository">The player repository.</param>
        /// <param name="tournamentRepository">The tournament repository.</param>
        public DeveloperController(IManagmentAPIManager manager,
                                   IAggregateRepository <GolfClubAggregate> golfClubRepository,
                                   IAggregateRepository <GolfClubMembershipAggregate> golfClubMembershipRepository,
                                   IAggregateRepository <PlayerAggregate> playerRepository,
                                   IAggregateRepository <TournamentAggregate> tournamentRepository)
        {
            this.Manager                      = manager;
            this.GolfClubRepository           = golfClubRepository;
            this.GolfClubMembershipRepository = golfClubMembershipRepository;
            this.PlayerRepository             = playerRepository;
            this.TournamentRepository         = tournamentRepository;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="GolfClubController" /> class.
 /// </summary>
 /// <param name="commandRouter">The command router.</param>
 /// <param name="manager">The manager.</param>
 public GolfClubController(ICommandRouter commandRouter,
                           IManagmentAPIManager manager)
 {
     this.CommandRouter = commandRouter;
     this.Manager       = manager;
 }
예제 #4
0
 public ReportingDomainEventHandler(IManagmentAPIManager manager,
                                    IDomainEventTypesToSilentlyHandle eventTypesToSilentlyHandle)
 {
     this.Manager = manager;
     this.EventTypesToSilentlyHandle = eventTypesToSilentlyHandle;
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GolfClubAdministratorController" /> class.
 /// </summary>
 /// <param name="manager">The manager.</param>
 public GolfClubAdministratorController(IManagmentAPIManager manager)
 {
     this.Manager = manager;
 }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TournamentController" /> class.
 /// </summary>
 /// <param name="commandRouter">The command router.</param>
 /// <param name="manager">The manager.</param>
 public TournamentController(ICommandRouter commandRouter, IManagmentAPIManager manager)
 {
     this.CommandRouter = commandRouter;
     this.Manager       = manager;
 }
예제 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Controllers.GolfClubController" /> class.
 /// </summary>
 /// <param name="commandRouter">The command router.</param>
 /// <param name="manager">The manager.</param>
 public PlayerController(ICommandRouter commandRouter,
                         IManagmentAPIManager manager)
 {
     this.CommandRouter = commandRouter;
     this.Manager       = manager;
 }