コード例 #1
0
 public AccountTransactionService(IUnitOfWork unitOfWork, IAccountTransactionRepository transactionRepository,
                                  PaymentSourceRepository paymentSourceRepository, ICustomerAccountRepository customerAccountRepository) : base(unitOfWork)
 {
     _transactionRepository     = transactionRepository;
     _paymentSourceRepository   = paymentSourceRepository;
     _customerAccountRepository = customerAccountRepository;
 }
コード例 #2
0
 public TransactionInfoService(ICustomerRepository customerRepository, ICustomerAccountRepository customerAccountRepository,
                               ITransactionRepository transactionRepository)
 {
     _customerRepo        = customerRepository;
     _customerAccountRepo = customerAccountRepository;
     _transactionRepo     = transactionRepository;
 }
コード例 #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;
 }
コード例 #4
0
ファイル: UnitOfWork.cs プロジェクト: hm-henriquematias/Bank
 public UnitOfWork(ICustomerRepository customerRepository,
                   ICustomerAccountRepository customerAccountRepository,
                   IFarePlanRepository farePlanRepository,
                   ITransferRepository transferRepository)
 {
     Customer        = customerRepository;
     CustomerAccount = customerAccountRepository;
     FarePlan        = farePlanRepository;
     Transfer        = transferRepository;
 }
コード例 #5
0
 public AccountController(
     ICustomerAccountRepository customerAccountRepository,
     ITransactionProxyService transactionProxyService,
     IMapper mapper,
     ILogger <AccountController> logger)
 {
     _customerAccountRepository = customerAccountRepository;
     _transactionProxyService   = transactionProxyService;
     _mapper = mapper;
     _logger = logger;
 }
コード例 #6
0
 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));
 }
コード例 #7
0
        public CustomerAccountQueryHandlerTest()
        {
            var config = new MapperConfiguration(opts =>
            {
                opts.AddProfile <BankMappingProfile>();
            });

            _mapper = config.CreateMapper();

            _customerAccountRepository = Substitute.For <ICustomerAccountRepository>();

            _sut = new CustomerAccountQueryHandler(_customerAccountRepository, _mapper);
        }
コード例 #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;
 }
コード例 #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;
 }
コード例 #10
0
 public CustomerService(ICustomerRepository customerRepository, ICustomerAccountRepository contractUnitRepository, IDocumentRepository documentRepository, IUnitOfWork unitOfWork) : base(unitOfWork)
 {
     _customerRepository     = customerRepository;
     _contractUnitRepository = contractUnitRepository;
     _documentRepository     = documentRepository;
 }
コード例 #11
0
 public CustomerRepository(IAccountRepository accountRepository, ICustomerAccountRepository customerAccountRepository, AppDbContext appDbContext)
 {
     _accountRepository         = accountRepository;
     _customerAccountRepository = customerAccountRepository;
     _appDbContext = appDbContext;
 }
コード例 #12
0
 public TransferQueryHandler(ITransferRepository transferRepository,
                             ICustomerAccountRepository customerAccountRepository,
                             IMapper mapper)
 => (_transferRepository, _customerAccountRepository, _mapper) = (transferRepository, customerAccountRepository, mapper);
コード例 #13
0
 public CardService(ICustomerAccountRepository customerAccountRepository)
 {
     _customerAccountRepository = customerAccountRepository;
 }
コード例 #14
0
 public FinnOneCustomerAccountController(ICustomerAccountRepository customerAccountRepository)
 {
     this.customerAccountRepository = customerAccountRepository;
 }
コード例 #15
0
 public CustomerAccountQueryHandler(ICustomerAccountRepository customerAccountRepository, IMapper mapper)
 => (_customerAccountRepository, _mapper) = (customerAccountRepository, mapper);
コード例 #16
0
 public CashierController(ICustomerAccountRepository customerAccountRepository)
 {
     _customerAccountRepo = customerAccountRepository;
 }
コード例 #17
0
 public TransferValidationScope(ICustomerAccountRepository accountRepository)
 {
     _accountRepository = accountRepository;
 }