public void Arrange()
 {
     _fixture = new Fixture();
     _mockAccountDataRepository = new Mock <IAccountDataRepository>();
     _mockDomainEventDispatcher = new Mock <IDomainEventDispatcher>();
     _sut = new Commands.Persistence.AccountDomainRepository(_mockAccountDataRepository.Object, _mockDomainEventDispatcher.Object);
 }
        public CreditCardPurchaseService(IAccountDomainRepository accountDomainRepository, ICardDomainRepository cardDomainRepository)
        {
            _accountDomainRepository = accountDomainRepository;
            _cardDomainRepository    = cardDomainRepository;

            _panHashService = new PanHashService();
        }
Beispiel #3
0
        public AddCreditCardToAccountService(IAccountDomainRepository accountDomainRepository, ICardDomainRepository cardDomainRepository)
        {
            _accountDomainRepository = accountDomainRepository;
            _cardDomainRepository    = cardDomainRepository;

            _cardPanGeneratorService = new CardPanGeneratorService();
            _panEncryptService       = new PanEncryptService();
            _panHashService          = new PanHashService();
        }
 public ValidatePendingPaymentCommandHandler(
     IApprenticeshipIncentiveDomainRepository domainRepository,
     IAccountDomainRepository accountDomainRepository,
     ICollectionCalendarService collectionCalendarService,
     ILearnerDomainRepository learnerDomainRepository)
 {
     _domainRepository          = domainRepository;
     _accountDomainRepository   = accountDomainRepository;
     _collectionCalendarService = collectionCalendarService;
     _learnerDomainRepository   = learnerDomainRepository;
 }
Beispiel #5
0
 public SendBankDetailsRepeatReminderEmailCommandHandler(ICommandPublisher commandPublisher,
                                                         IOptions <EmailTemplateSettings> emailTemplates,
                                                         IAccountDomainRepository accountDomainRepository,
                                                         IHashingService hashingService,
                                                         IOptions <ApplicationSettings> applicationSettings)
 {
     _commandPublisher        = commandPublisher;
     _emailTemplates          = emailTemplates.Value;
     _accountDomainRepository = accountDomainRepository;
     _hashingService          = hashingService;
     _applicationSettings     = applicationSettings.Value;
 }
 public GetAccountController(IAccountDomainRepository accountDomainRepository)
 {
     _accountDomainRepository = accountDomainRepository;
 }
Beispiel #7
0
 public UpdateVendorRegistrationCaseStatusForAccountCommandHandler(IAccountDomainRepository domainRepository)
 {
     _domainRepository = domainRepository;
 }
 public RemoveLegalEntityCommandHandler(IAccountDomainRepository accountDomainRepository,
                                        CancellationToken cancellationToken = default)
 {
     _accountDomainRepository = accountDomainRepository;
 }
 public UpsertLegalEntityCommandHandler(IAccountDomainRepository domainRepository, IHashingService hashingService)
 {
     _domainRepository = domainRepository;
     _hashingService   = hashingService;
 }
Beispiel #10
0
 public SignLegalEntityAgreementCommandHandler(IAccountDomainRepository domainRepository, IOptions <ApplicationSettings> options)
 {
     _domainRepository        = domainRepository;
     _minimumAgreementVersion = options.Value.MinimumAgreementVersion;
 }
 public CreateCreditAccountService(IAccountDomainRepository accountDomainRepository)
 {
     _accountDomainRepository = accountDomainRepository;
 }
 public AddEmployerVendorIdForLegalEntityCommandHandler(IAccountDomainRepository domainRepository)
 {
     _domainRepository = domainRepository;
 }
Beispiel #13
0
 public UpdateVendorRegistrationCaseStatusCommandHandler(ICommandPublisher commandPublisher, IAccountDomainRepository domainRepository)
 {
     _commandPublisher = commandPublisher;
     _domainRepository = domainRepository;
 }