示例#1
0
 public ChangeCompetitionDateStatusCommandHandler(ILogger <ChangeCompetitionDateStatusCommandHandler> logger, IUnitOfWork unitOfWork,
                                                  ICompetitionRepository competitionRepository, ICompetitionDateRepository competitionDateRepository)
 {
     this._unitOfWork                = unitOfWork;
     this._competitionRepository     = competitionRepository;
     this._competitionDateRepository = competitionDateRepository;
     this._validationResult          = new ValidationResult();
 }
 public CreateDoublesRegistrationCommandHandler(ILoggerFactory loggerFactory, IUnitOfWork unitOfWork, IRegistrationUnitOfWork registrationUnitOfWork, CreateDoublesRegistrationCommandValidator validator, ICompetitionRepository competitionRepository,
                                                ICompetitionRegistrationRepository competitionRegistrationRepository, IRecaptchaService recaptchaService, IRegistrationEmailManager registrationEmailManager, ICompetitionRegistrationAttemptRepository competitionRegistrationAttemptRepository,
                                                ICompetitionDateRepository competitionDateRepository)
 {
     this._logger                                   = loggerFactory.CreateLogger <CreateDoublesRegistrationCommandHandler>();
     this._validator                                = validator;
     this._unitOfWork                               = unitOfWork;
     this._registrationUnitOfWork                   = registrationUnitOfWork;
     this._competitionRepository                    = competitionRepository;
     this._competitionRegistrationRepository        = competitionRegistrationRepository;
     this._recaptchaService                         = recaptchaService;
     this._registrationEmailManager                 = registrationEmailManager;
     this._competitionRegistrationAttemptRepository = competitionRegistrationAttemptRepository;
     this._competitionDateRepository                = competitionDateRepository;
 }
 public RegistrationEmailManager(IEmailSender emailSender, ICompetitionDateRepository competitionDateRepository)
 {
     this._emailSender = emailSender;
     this._competitionDateRepository = competitionDateRepository;
 }