public PaymentController(
     IProcessPaymentService processPaymentService,
     IRetrievePaymentService retrievePaymentService,
     ILogger <PaymentController> logger)
 {
     this.processPaymentService  = processPaymentService;
     this.retrievePaymentService = retrievePaymentService;
     this.logger = logger;
 }
Esempio n. 2
0
 public Worker(ILogger <Worker> logger, IConsumer <string, Payment> consumerPayment, IConfiguration configuration,
               IProcessPaymentService processPaymentService, IConsumer <string, RollbackPayment> consumerRollbackPayment)
 {
     _logger                  = logger;
     _consumerPayment         = consumerPayment;
     _configuration           = configuration;
     _processPaymentService   = processPaymentService;
     _consumerRollbackPayment = consumerRollbackPayment;
 }
Esempio n. 3
0
 public PaymentController(IProcessPaymentService processPaymentService, ILogger logger)
 {
     _processPaymentService = processPaymentService;
     _logger = logger;
 }
 public ProcessPaymentController(IProcessPaymentService paymentService)
 {
     _processPaymentService = paymentService;
 }
Esempio n. 5
0
 public CheapPaymentGateway(IProcessPaymentService processPaymentService)
 {
     _processPaymentService = processPaymentService;
 }
Esempio n. 6
0
 public ProcessPaymentUnitTest()
 {
     _service    = new ProcessPaymentServiceFake();
     _controller = new PaymentController(_service);
 }
Esempio n. 7
0
 public ExpensivePaymentGateway(IProcessPaymentService processPaymentService)
 {
     _processPaymentService = processPaymentService;
 }
Esempio n. 8
0
 public PaymentControllerTest()
 {
     _processPaymentService = new Mock <IProcessPaymentService>().Object;
     _logger = new Mock <ILogger>().Object;
 }
 public ProcessPaymentController(IProcessPaymentService paymentService,
                                 IPaymentHistoryService historyService)
 {
     _paymentService = paymentService;
     _historyService = historyService;
 }
Esempio n. 10
0
 //private readonly IEasyRetry _easyRetry;
 public PremiumPaymentGateway(IProcessPaymentService processPaymentService /*,IEasyRetry easyRetry*/)
 {
     _processPaymentService = processPaymentService;
     //_easyRetry = easyRetry;
 }
 public OrderProcessingService(IManageInventory inventory, IProcessPaymentService processPaymentService, IEmailService emailService)
 {
     _inventory             = inventory;
     _processPaymentService = processPaymentService;
     _emailService          = emailService;
 }