public ChangeAccountEmailCommand(IMongoCollection <Account> accountRepo,
                                  IMongoCollection <EmailChangeRecord> emailChangeRecordRepo,
                                  IValidationStrategy <ChangeEmailModel> validationStrategy,
                                  IEmailConfirmationStrategy emailConfirmationStrategy,
                                  ILogger logger)
 {
     _accountRepo               = accountRepo;
     _emailChangeRecordRepo     = emailChangeRecordRepo;
     _validationStrategy        = validationStrategy;
     _emailConfirmationStrategy = emailConfirmationStrategy;
     _logger = logger;
 }
示例#2
0
 public CreateAccountCommand(IMongoCollection <Account> accountRepo,
                             IEmailConfirmationStrategy emailConfirmationStrategy,
                             IPasswordSetStrategy passwordSetStrategy,
                             IValidationStrategy <AccountModel> newAccountValidationStrategy,
                             ILogger logger)
 {
     _accountRepo = accountRepo;
     _emailConfirmationStrategy    = emailConfirmationStrategy;
     _passwordSetStrategy          = passwordSetStrategy;
     _newAccountValidationStrategy = newAccountValidationStrategy;
     _logger = logger;
 }