public PaymentController(IPaymentRepo paymentRepo, IMapper mapper, IItemTypes items, IOrder orderHelper)
 {
     _paymentRepo = paymentRepo;
     _mapper      = mapper;
     _items       = items;
     _orderHelper = orderHelper;
 }
Exemplo n.º 2
0
 public SaleService(IRepo <Sale> repo, IInvoiceService inService, ICartService cService, IRepo <Payment> pRepo, IPaymentRepo payRepo, IRepo <Customer> custRepo, ISaleRepo sRepo)
 {
     _repo      = repo;
     _cService  = cService;
     _inService = inService;
     _pRepo     = pRepo;
     _payRepo   = payRepo;
     _custRepo  = custRepo;
     _sRepo     = sRepo;
 }
 public PaymentService(
     IPaymentRepo repository,
     ICheapPaymentGateway cheapPaymentGateway,
     IExpensivePaymentGateway expensivePaymentGateway,
     IPaymentGateway premiumPaymentService
     )
 {
     _repository              = repository;
     _cheapPaymentGateway     = cheapPaymentGateway;
     _expensivePaymentGateway = expensivePaymentGateway;
     _premiumPaymentService   = premiumPaymentService;
 }
Exemplo n.º 4
0
 public DataImportor(ICustomerRepo iCustomerRepo, IGSTRepo iGSTRepo,
     IInvoiceRepo iInvoiceRepo, IOrderDetailRepo iOrderDetailRepo, 
     ISalesmanRepo iSalesmanRepo,IPaymentRepo iPaymentRepo,IPaymentDetailRepo iPaymentDetailRepo)
 {
     custSvr = new CustomerSvc(iCustomerRepo);
     gstSvr = new GSTSvc(iGSTRepo);
     invSvr = new InvoiceSvc(iInvoiceRepo);
     orderDetailSvr = new OrderDetailSvc(iOrderDetailRepo);
     salesmanSvc = new SalesmanSvc(iSalesmanRepo);
     paymentSvc = new PaymentSvc(iPaymentRepo);
     paymentDetailSvc = new PaymentDetailSvc(iPaymentDetailRepo);
 }
Exemplo n.º 5
0
 public PaymentService(PaymentRequestValidator paymentRequestValidator,
                       ICardPaymentProvider cardPaymentProvider,
                       IPaymentRepo repo,
                       IMapper mapper,
                       ILogger <PaymentService> logger)
 {
     _paymentRequestValidator = paymentRequestValidator;
     _cardPaymentProvider     = cardPaymentProvider;
     _repo   = repo;
     _mapper = mapper;
     _logger = logger;
 }
Exemplo n.º 6
0
 public UnitOfWork(
     AuctionDbContext dbContext,
     IBidRepo bidRepo,
     ICategoryRepo categoryRepo,
     IItemRepo itemRepo,
     IOrderRepo orderRepo,
     IPaymentRepo paymentRepo
     )
 {
     _dbContext    = dbContext;
     _bidRepo      = bidRepo;
     _categoryRepo = categoryRepo;
     _itemRepo     = itemRepo;
     _orderRepo    = orderRepo;
     _paymentRepo  = paymentRepo;
 }
Exemplo n.º 7
0
 public PayController(IPaymentRepo repo, IStudentRepo studentrepo)
 {
     payRepo      = repo;
     student_repo = studentrepo;
 }
Exemplo n.º 8
0
 public NewItem(ICategoryService categoryService, IMapper mapper, IPaymentRepo paymentRepo)
 {
     _categoryService = categoryService;
     _mapper          = mapper;
     _paymentRepo     = paymentRepo;
 }
Exemplo n.º 9
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="log"></param>
 /// <param name="paymentRepo"></param>
 /// <param name="bankApi"></param>
 public PaymentService(ILogger <PaymentService> log, IPaymentRepo paymentRepo, IIndex <string, IBankEndpoint> bankApi)
 {
     Log         = log;
     PaymentRepo = paymentRepo;
     BankApi     = bankApi;
 }
Exemplo n.º 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentController"/> class.
 /// Construtor injection.
 /// </summary>
 /// <param name="bl">From interface Payment business layer.</param>
 public PaymentController(IPaymentRepo bl)
 {
     this.paymentsBl = bl;
 }
 public PaymentService(IPaymentRepo paymentRepo)
 {
     _paymentRepo = paymentRepo;
 }
Exemplo n.º 12
0
 public AgentService(IPayment payment, IPaymentRepo paymentRepo)
 {
     _payment     = payment;
     _paymentRepo = paymentRepo;
 }
Exemplo n.º 13
0
 public PaymentController(IPaymentRepo repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Exemplo n.º 14
0
 public PremiumPaymentService(IPaymentRepo repository)
 {
     _repository = repository;
 }
Exemplo n.º 15
0
 public PaymentService(IMapper mapper, IPaymentRepo @interface)
 {
     _mapper    = mapper;
     _interface = @interface;
 }
Exemplo n.º 16
0
 public PaymentService(AppUnitOfWork appUOW)
 {
     _appUow      = appUOW;
     _paymentRepo = appUOW.PaymentRepo;
 }
Exemplo n.º 17
0
 public CheapPaymentGateway(IPaymentRepo repository)
 {
     _repository = repository;
 }
Exemplo n.º 18
0
 public ExpensivePaymentGateway(IPaymentRepo repository)
 {
     _repository = repository;
 }