public AccountTransactionService(IUnitOfWork unitOfWork, IAccountTransactionRepository transactionRepository,
                                  PaymentSourceRepository paymentSourceRepository, ICustomerAccountRepository customerAccountRepository) : base(unitOfWork)
 {
     _transactionRepository     = transactionRepository;
     _paymentSourceRepository   = paymentSourceRepository;
     _customerAccountRepository = customerAccountRepository;
 }
Esempio n. 2
0
 public TransactionInfoService(ICustomerRepository customerRepository, ICustomerAccountRepository customerAccountRepository,
                               ITransactionRepository transactionRepository)
 {
     _customerRepo        = customerRepository;
     _customerAccountRepo = customerAccountRepository;
     _transactionRepo     = transactionRepository;
 }
Esempio n. 3
0
 public CustomerAccountService(IUnitOfWork unitOfWork, IPaymentPeriodRepository paymentPeriodRepository, ICustomerAccountRepository customerAccountRepository, StockService stockService, AccountTransactionService accountTransactionService, IBasketRepository basketRepository) : base(unitOfWork)
 {
     _paymentPeriodRepository   = paymentPeriodRepository;
     _customerAccountRepository = customerAccountRepository;
     _stockService = stockService;
     _accountTransactionService = accountTransactionService;
     _basketRepository          = basketRepository;
 }
Esempio n. 4
0
 public UnitOfWork(ICustomerRepository customerRepository,
                   ICustomerAccountRepository customerAccountRepository,
                   IFarePlanRepository farePlanRepository,
                   ITransferRepository transferRepository)
 {
     Customer        = customerRepository;
     CustomerAccount = customerAccountRepository;
     FarePlan        = farePlanRepository;
     Transfer        = transferRepository;
 }
Esempio n. 5
0
 public AccountController(
     ICustomerAccountRepository customerAccountRepository,
     ITransactionProxyService transactionProxyService,
     IMapper mapper,
     ILogger <AccountController> logger)
 {
     _customerAccountRepository = customerAccountRepository;
     _transactionProxyService   = transactionProxyService;
     _mapper = mapper;
     _logger = logger;
 }
 public CustomerAccountController(ICustomerAccountRepository customerAccountRepository, IMapper mapper, IPropertyMappingService propertyMappingService,
                                  IPropertyCheckerService propertyCheckerService)
 {
     _customerAccountRepository = customerAccountRepository ??
                                  throw new ArgumentNullException(nameof(customerAccountRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
     _propertyMappingService = propertyMappingService ??
                               throw new ArgumentNullException(nameof(propertyMappingService));
     _propertyCheckerService = propertyCheckerService ??
                               throw new ArgumentNullException(nameof(propertyCheckerService));
 }
        public CustomerAccountQueryHandlerTest()
        {
            var config = new MapperConfiguration(opts =>
            {
                opts.AddProfile <BankMappingProfile>();
            });

            _mapper = config.CreateMapper();

            _customerAccountRepository = Substitute.For <ICustomerAccountRepository>();

            _sut = new CustomerAccountQueryHandler(_customerAccountRepository, _mapper);
        }
Esempio n. 8
0
 public BillCycleService(IUnitOfWork unitOfWork,
                         CustomerService customerService,
                         TransactionsService transactionsService,
                         IInvoiceRepository invoiceRepository,
                         ICustomerAccountRepository contractUnitRepository,
                         IPostedRepository postedRepository,
                         IBillCycleRunRepository billCycleRunRepository, MiscService miscService)
     : base(unitOfWork)
 {
     _customerService        = customerService;
     _transactionsService    = transactionsService;
     _invoiceRepository      = invoiceRepository;
     _contractUnitRepository = contractUnitRepository;
     _postedRepository       = postedRepository;
     _billCycleRunRepository = billCycleRunRepository;
     _miscService            = miscService;
 }
Esempio n. 9
0
 public ContractService(IUnitOfWork unitOfWork, StockService stockService,
                        ICustomerAccountRepository contractUnitRepository,
                        IContractTypeRepository contractTypeRepository,
                        IContractRepository contractRepository,
                        IPaymentPeriodRepository paymentPeriodRepository,
                        IRentedUnitRepository rentedUnitRepository,
                        IPostedRepository postedRepository, MiscService miscService)
     : base(unitOfWork)
 {
     _stockService            = stockService;
     _contractUnitRepsoitory  = contractUnitRepository;
     _contractTypeRepository  = contractTypeRepository;
     _contractRepository      = contractRepository;
     _paymentPeriodRepository = paymentPeriodRepository;
     _rentedUnitRepository    = rentedUnitRepository;
     _postedRepository        = postedRepository;
     _miscService             = miscService;
 }
Esempio n. 10
0
 public CustomerService(ICustomerRepository customerRepository, ICustomerAccountRepository contractUnitRepository, IDocumentRepository documentRepository, IUnitOfWork unitOfWork) : base(unitOfWork)
 {
     _customerRepository     = customerRepository;
     _contractUnitRepository = contractUnitRepository;
     _documentRepository     = documentRepository;
 }
Esempio n. 11
0
 public CustomerRepository(IAccountRepository accountRepository, ICustomerAccountRepository customerAccountRepository, AppDbContext appDbContext)
 {
     _accountRepository         = accountRepository;
     _customerAccountRepository = customerAccountRepository;
     _appDbContext = appDbContext;
 }
Esempio n. 12
0
 public TransferQueryHandler(ITransferRepository transferRepository,
                             ICustomerAccountRepository customerAccountRepository,
                             IMapper mapper)
 => (_transferRepository, _customerAccountRepository, _mapper) = (transferRepository, customerAccountRepository, mapper);
Esempio n. 13
0
 public CardService(ICustomerAccountRepository customerAccountRepository)
 {
     _customerAccountRepository = customerAccountRepository;
 }
Esempio n. 14
0
 public FinnOneCustomerAccountController(ICustomerAccountRepository customerAccountRepository)
 {
     this.customerAccountRepository = customerAccountRepository;
 }
 public CustomerAccountQueryHandler(ICustomerAccountRepository customerAccountRepository, IMapper mapper)
 => (_customerAccountRepository, _mapper) = (customerAccountRepository, mapper);
Esempio n. 16
0
 public CashierController(ICustomerAccountRepository customerAccountRepository)
 {
     _customerAccountRepo = customerAccountRepository;
 }
 public TransferValidationScope(ICustomerAccountRepository accountRepository)
 {
     _accountRepository = accountRepository;
 }