Пример #1
0
        public CashFlowController(ICashFlowRepository cashFlowRepository, ICashFlowRepository cashFlowRepository2)
        {
            var id  = cashFlowRepository.Id;
            var id2 = cashFlowRepository2.Id;

            CashFlowRepository = cashFlowRepository;
        }
Пример #2
0
 public CashFlowService(
     IMapper mapper,
     ICashFlowRepository cashFlowRepository,
     ILoanApplicationRepository loanApplicationRepository
     )
 {
     this.mapper                    = mapper;
     this.cashFlowRepository        = cashFlowRepository;
     this.loanApplicationRepository = loanApplicationRepository;
 }
Пример #3
0
 public NetPresentValueService(ITransactionRepository transactionRepository,
                               INetPresentValueRepository netPresentValueRepository,
                               ICashFlowRepository cashFlowRepository,
                               INpvCalculatorFactory npvCalculatorFactory,
                               IMapper mapper)
 {
     _transactionRepository     = transactionRepository ?? throw new ArgumentException(nameof(transactionRepository));
     _netPresentValueRepository = netPresentValueRepository;
     _cashFlowRepository        = cashFlowRepository;
     _npvCalculatorFactory      = npvCalculatorFactory ?? throw  new ArgumentException(nameof(npvCalculatorFactory));
     _mapper = mapper ?? throw new ArgumentException(nameof(mapper));
 }
Пример #4
0
 public NetworkService(
     INetworkRepository networkRepository,
     INodeRepository nodeRepository,
     ICashFlowRepository cashFlowRepository,
     INetworkMapper mapper,
     INodeMapper nodeMapper,
     IMemoryCache cache
     )
 {
     _networkRepository  = networkRepository;
     _nodeRepository     = nodeRepository;
     _cashFlowRepository = cashFlowRepository;
     _networkMapper      = mapper;
     _nodeMapper         = nodeMapper;
     _cache = cache;
 }
Пример #5
0
 public CashFlowController(ICashFlowRepository cashFlowRepository, IUnitOfWork unitOfWork, IMapper mapper)
 {
     CashFlowRepository = cashFlowRepository;
     UnitOfWork         = unitOfWork;
     Mapper             = mapper;
 }