Esempio n. 1
0
 public SaleUseCases(ISaleRepository saleRepository,
                     IDetailRepository detailRepository,
                     IProductRepository productRepository,
                     IPriceRepository priceRepository,
                     IClientRepository clientRepository,
                     ICashRepository cashRepository,
                     ICreditCardRepository creditCardRepository,
                     IDebitCardRepository debitCardRepository,
                     IChequesPaymentRepository chequesPaymentRepository,
                     IChequeRepository chequeRepository,
                     IOwnFeesRepository ownFeesRepository,
                     IFeeRepository feeRepository,
                     IFeeRuleRepository feeRuleRepository,
                     IMapper mapper
                     )
 {
     _saleRepository           = saleRepository;
     _detailRepository         = detailRepository;
     _productRepository        = productRepository;
     _priceRepository          = priceRepository;
     _clientRepository         = clientRepository;
     _cashRepository           = cashRepository;
     _creditCardRepository     = creditCardRepository;
     _debitCardRepository      = debitCardRepository;
     _chequesPaymentRepository = chequesPaymentRepository;
     _chequeRepository         = chequeRepository;
     _ownFeesRepository        = ownFeesRepository;
     _feeRepository            = feeRepository;
     _feeRuleRepository        = feeRuleRepository;
     _mapper = mapper;
 }
Esempio n. 2
0
 public ChequeCommandHandler(IChequeRepository chequeRepository, IBancoRepository bancoRepository, IClienteRepository clienteRepository, IMediatorHandler mediator, IUnitOfWork unitOfWork) :
     base(mediator, unitOfWork)
 {
     _chequeRepository  = chequeRepository;
     _bancoRepository   = bancoRepository;
     _clienteRepository = clienteRepository;
 }
Esempio n. 3
0
 /// <summary>
 /// Инициализирует новый экземпляр класса <see cref="Service" />
 /// </summary>
 public Service()
 {
     if (Properties.Settings.Default.IsFakeRepository == true)
     {
         this.chequeRepository = new FakeChequeRepository();
     }
     else
     {
         this.chequeRepository = new ChequeRepository(Properties.Settings.Default.ConnectionString);
     }
 }
 public ChequeController(
     IChequeRepository chequeRepository,
     IReportRenderer reportRenderer,
     IMailBox mailBox,
     IIoTHub hub, ICopterRepository copterRepository)
 {
     _chequeRepository = chequeRepository;
     _reportRenderer   = reportRenderer;
     _copterRepository = copterRepository;
     _mailBox          = mailBox;
     _hub = hub;
 }
Esempio n. 5
0
        public ChequeService()
        {
            var connectionString     = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
            var isFakeImplementation = !bool.TryParse(ConfigurationManager.AppSettings["IsFakeImplementation"], out var result) || result;
            var loggerFactory        = new LoggerFactory();

            loggerFactory.AddLog4Net();
            if (!isFakeImplementation)
            {
                _chequeRepository = new ChequeRepository(new SqlConnection(connectionString), loggerFactory.CreateLogger <IChequeRepository>());
            }
            else
            {
                _chequeRepository = new FakeChequeRepository(loggerFactory.CreateLogger <IChequeRepository>());
            }
        }
Esempio n. 6
0
 public ProcessController(IAccountRepository accountRepository, ICustomerRepository customerRepository,
                          ISequenceRepository sequenceRepository, ITellerRepository tellerRepository, ICotRepository cotRepository,
                          IChequeRepository chequeRepository, INominalRepository nominalRepository, ISmsRepository smsRepository,
                          IAccountTypeRepository accounttypeRepository, ILocationRepository locationRepository,
                          ITransactionRepository transactionRepository, IChargeRepository chargeRepository,
                          ISmsApiRepository smsapiRepository, ITransitRepository transitRepository)
 {
     _cotRepository         = cotRepository;
     _smsRepository         = smsRepository;
     _chequeRepository      = chequeRepository;
     _chargeRepository      = chargeRepository;
     _tellerRepository      = tellerRepository;
     _transitRepository     = transitRepository;
     _accountRepository     = accountRepository;
     _nominalRepository     = nominalRepository;
     _customerRepository    = customerRepository;
     _locationRepository    = locationRepository;
     _sequenceRepository    = sequenceRepository;
     _accounttypeRepository = accounttypeRepository;
     _transactionRepository = transactionRepository;
 }
Esempio n. 7
0
 public ChequesController(IChequeRepository chequesRepository, IUserHelper userHelper)
 {
     this.chequesRepository = chequesRepository;
     this.userHelper        = userHelper;
 }
Esempio n. 8
0
 public ChequeApplicationService(IChequeRepository chequeRepository, IMapper mapper, IMediatorHandler mediator) : base(chequeRepository, mapper, mediator)
 {
 }
 static ChequeService()
 {
     _reposytory = GetRepository();
 }
Esempio n. 10
0
 public ChequeService(IChequeRepository repository)
 {
     Repository = repository;
 }
Esempio n. 11
0
 public ChequesController(IChequeRepository chequesRepository, IUserHelper userHerlper, IClienteRepository clienteRepository)
 {
     this.chequesRepository = chequesRepository;
     this.userHerlper       = userHerlper;
     this.clienteRepository = clienteRepository;
 }
Esempio n. 12
0
 public ChequesController(IChequeRepository chequeRepository, IMapper mapper)
 {
     _chequeRepository = chequeRepository;
     _mapper           = mapper;
 }
Esempio n. 13
0
 public BizServiceNew(IChequeRepository chequeRepo)
 {
     this.chequeRepo = chequeRepo;
 }
Esempio n. 14
0
 public BizServiceNew(IChequeRepository chequeRepo)
 {
     this.chequeRepo = chequeRepo;
 }
Esempio n. 15
0
 public ChequeService(IChequeRepository chequeRepository) : base(chequeRepository)
 {
     _chequeRepository = chequeRepository;
 }
 public ChequeController(ILogger <IChequeRepository> logger, IChequeRepository chequeRepository)
 {
     _logger           = logger;
     _chequeRepository = chequeRepository;
 }
Esempio n. 17
0
        //-- END DBContext // ATTRIBUTS

        //-- CONSTRUCTOR
        public ChequeController(IChequeRepository _chequeRepository)
        {
            this._chequeRepository = _chequeRepository;
        }
Esempio n. 18
0
 /// <summary>
 /// Cheque constructor
 /// </summary>
 /// <param name="chequeRepository"></param>
 public ChequeController(IChequeRepository chequeRepository)
 {
     _chequeRepository = chequeRepository;
 }