Beispiel #1
0
 public RemovePayeFromAccountCommandHandler(
     IMediator mediator,
     IValidator <RemovePayeFromAccountCommand> validator,
     IAccountRepository accountRepository,
     IHashingService hashingService,
     IGenericEventFactory genericEventFactory,
     IPayeSchemeEventFactory payeSchemeEventFactory)
 {
     _mediator               = mediator;
     _validator              = validator;
     _accountRepository      = accountRepository;
     _hashingService         = hashingService;
     _genericEventFactory    = genericEventFactory;
     _payeSchemeEventFactory = payeSchemeEventFactory;
 }
 public RenameEmployerAccountCommandHandler(
     IEmployerAccountRepository accountRepository,
     IMembershipRepository membershipRepository,
     IValidator <RenameEmployerAccountCommand> validator,
     IHashingService hashingService,
     IMediator mediator,
     IGenericEventFactory genericEventFactory,
     IAccountEventFactory accountEventFactory)
 {
     _accountRepository    = accountRepository;
     _membershipRepository = membershipRepository;
     _validator            = validator;
     _hashingService       = hashingService;
     _mediator             = mediator;
     _genericEventFactory  = genericEventFactory;
     _accountEventFactory  = accountEventFactory;
 }
Beispiel #3
0
 public SignEmployerAgreementCommandHandler(
     IMembershipRepository membershipRepository,
     IEmployerAgreementRepository employerAgreementRepository,
     IHashingService hashingService,
     IValidator <SignEmployerAgreementCommand> validator,
     IEmployerAgreementEventFactory agreementEventFactory,
     IGenericEventFactory genericEventFactory,
     IMediator mediator)
 {
     _membershipRepository        = membershipRepository;
     _employerAgreementRepository = employerAgreementRepository;
     _hashingService        = hashingService;
     _validator             = validator;
     _agreementEventFactory = agreementEventFactory;
     _genericEventFactory   = genericEventFactory;
     _mediator = mediator;
 }
 public AddPayeToAccountCommandHandler(
     IValidator <AddPayeToAccountCommand> validator,
     IAccountRepository accountRepository,
     IMessagePublisher messagePublisher,
     IHashingService hashingService,
     IMediator mediator,
     IGenericEventFactory genericEventFactory,
     IPayeSchemeEventFactory payeSchemeEventFactory)
 {
     _validator              = validator;
     _accountRepository      = accountRepository;
     _messagePublisher       = messagePublisher;
     _hashingService         = hashingService;
     _mediator               = mediator;
     _genericEventFactory    = genericEventFactory;
     _payeSchemeEventFactory = payeSchemeEventFactory;
 }
Beispiel #5
0
 public CreateAccountCommandHandler(
     IAccountRepository accountRepository,
     IUserRepository userRepository,
     IMessagePublisher messagePublisher,
     IMediator mediator,
     IValidator <CreateAccountCommand> validator,
     IHashingService hashingService,
     IGenericEventFactory genericEventFactory,
     IAccountEventFactory accountEventFactory)
 {
     _accountRepository   = accountRepository;
     _userRepository      = userRepository;
     _messagePublisher    = messagePublisher;
     _mediator            = mediator;
     _validator           = validator;
     _hashingService      = hashingService;
     _genericEventFactory = genericEventFactory;
     _accountEventFactory = accountEventFactory;
 }