public PaymentController(IPaymentService paymentService, ICheapPaymentGatewayService cheapPaymentGatewayService, IExpensivePaymentGatewayService expensivePaymentGatewayService, IPremiumPaymentService premiumPaymentService) { this.paymentService = paymentService; this.cheapPaymentGatewayService = cheapPaymentGatewayService; this.expensivePaymentGatewayService = expensivePaymentGatewayService; this.premiumPaymentService = premiumPaymentService; }
public PaymentManager(IPremiumPaymentService premiumPaymentService, IExpensivePaymentService expensivePaymentService, ICheapPaymentService cheapPaymentService) { _premiumPaymentService = premiumPaymentService; _expensivePaymentService = expensivePaymentService; _cheapPaymentService = cheapPaymentService; }
public PaymentGatewayService(ICheapPaymentGateway cheapPaymentManager, IExpensivePaymentGateway expensivePaymentManager, IPremiumPaymentService premiumPaymentManager, ILogger <PaymentGatewayService> logger) { _cheapPaymentManager = cheapPaymentManager; _expensivePaymentManager = expensivePaymentManager; _premiumPaymentManager = premiumPaymentManager; _logger = logger; }
public PaymentController(IPaymentGateway paymentGateway, ICheapPaymentGateway cheapPaymentGateway, IExpensivePaymentGateway expensivePaymentGateway, IPremiumPaymentService premiumPaymentService) { _IPaymentGateway = paymentGateway; _ICheapPaymentGateway = cheapPaymentGateway; _IExpensivePaymentGateway = expensivePaymentGateway; _IPremiumPaymentService = premiumPaymentService; }
public PaymentProcessorLogic(ICheapPaymentGateway cheap, IExpensivePaymentGateway expensive, IPremiumPaymentService premium, IOptions <ExternalSettings> app) { _cheapPaymentGateway = cheap; _expensivePaymentGateway = expensive; _premiumPaymentService = premium; appSettings = app; }
public ProcessController(IExpensivePaymentGateway expensivePaymentGateway, IMapper mapper, ICheapPaymentGateway cheapPaymentGateway, IPremiumPaymentService premiumPaymentService) { _expensivePaymentGateway = expensivePaymentGateway; _mapper = mapper; _cheapPaymentGateway = cheapPaymentGateway; _premiumPaymentService = premiumPaymentService; }
public PaymentRepository(ApplicationContext context, ICheapPaymentGateway cheapPaymentGateway, IExpensivePaymentGateway expensivePayment , IPremiumPaymentService premiumPaymentService ) { _applicationContext = context; _cheapPayment = cheapPaymentGateway; _expensiveRepo = expensivePayment; _premiumRepo = premiumPaymentService; }
public PaymentController(ILogger <PaymentController> logger, ICheapPaymentGateway cheapPaymentGateway, IExpensivePaymentGateway expensivePaymentGateway, IPremiumPaymentService premiumPaymentService) { _logger = logger; _cheapPaymentGateway = cheapPaymentGateway; _expensivePaymentGateway = expensivePaymentGateway; _premiumPaymentService = premiumPaymentService; }
public PostUnitTestController() { var context = new PaymentAccessPortalContext(dbContextOptions); _IPaymentGateway = new PaymentServicesFake(context); _ICheapPaymentGateway = new PaymentServicesFake(context); _IExpensivePaymentGateway = new PaymentServicesFake(context); _IPremiumPaymentService = new PaymentServicesFake(context); _controller = new PaymentController(_IPaymentGateway, _ICheapPaymentGateway, _IExpensivePaymentGateway, _IPremiumPaymentService); }
public PaymentService(IPaymentRepository paymentRepository, IMapper mapper, ICheapPaymentGateway cheapPaymentGateway, IPremiumPaymentService premiumPaymentService, IExpensivePaymentGateway expensivePaymentGateway ) { _cheapPaymentGateway = cheapPaymentGateway; _paymentRepository = paymentRepository; _premiumPaymentService = premiumPaymentService; _expensivePaymentGateway = expensivePaymentGateway; _mapper = mapper; }
public PaymentController(ILogger <PaymentController> logger, IMapper mapper, ICheapPaymentGateway cheapPaymentGateway, IExpensivePaymentGateway expensivePaymentGateway, IPremiumPaymentService premiumPaymentService, IUnitOfWork unitOfWork) { _logger = logger; _cheapPaymentGateway = cheapPaymentGateway; _expensivePaymentGateway = expensivePaymentGateway; _premiumPaymentService = premiumPaymentService; _mapper = mapper; _unitOfWork = unitOfWork; }
public PaymentBusiness(ILogger <PaymentBusiness> logger, ICheapPaymentGateway cheapPaymentGateway, IExpensivePaymentGateway expensivePaymentGateway, IPremiumPaymentService premiumPaymentService, IPaymentServiceDA <Payment> paymentServiceDA) { _Iogger = logger; _CheapPaymentGateway = cheapPaymentGateway; _ExpensivePaymentGateway = expensivePaymentGateway; _PremiumPaymentService = premiumPaymentService; _PaymentServiceDA = paymentServiceDA; }
public PaymentProcessService(IRepositoryService <Payment> repositoryService , IMapper mapper , ICheapPaymentGateway cheapPaymentGateway , IExpensivePaymentGateway expensivePaymentGateway , IPremiumPaymentService premiumPaymentService ) { this.repositoryService = repositoryService; this.mapper = mapper; this.cheapPaymentGateway = cheapPaymentGateway; this.expensivePaymentGateway = expensivePaymentGateway; this.premiumPaymentService = premiumPaymentService; }
public ProcessPaymentController( ICheapPaymentGateway cheapPaymentGateway, IExpensivePaymentGateway expensivePaymentGateway, IPremiumPaymentService premiumPaymentService, IMapper mapper) { _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _expensivePaymentGateway = expensivePaymentGateway ?? throw new ArgumentNullException(nameof(expensivePaymentGateway)); _cheapPaymentGateway = cheapPaymentGateway ?? throw new ArgumentNullException(nameof(cheapPaymentGateway)); _premiumPaymentService = premiumPaymentService ?? throw new ArgumentNullException(nameof(premiumPaymentService)); }
public PaymentService(IPaymentStatusService paymentStatusService, IUnitOfWorkBase <PaymentContext> unitOfWork, ILogger <PaymentService> logger, IExpensivePaymentGateway expensivePaymentGateway, ICheapPaymentGateway cheapPaymentGateway, IPremiumPaymentService premiumPaymentService) { PaymentStatusService = paymentStatusService; UnitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); if (PaymentRepo == null) { PaymentRepo = UnitOfWork.GetRepository <Payment>(); } ExpensivePaymentGateway = expensivePaymentGateway; CheapPaymentGateway = cheapPaymentGateway; PremiumPaymentService = premiumPaymentService; Logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public PaymentGatewayFactory(ICheapPaymentGateway cheapGateway, IExpensivePaymentGateway expensiveGateway, IPremiumPaymentService premiumGateway) { _cheapGateway = cheapGateway; _expensiveGateway = expensiveGateway; _premiumGateway = premiumGateway; }