Exemple #1
0
        public PaymentControllerTest()
        {
            _logger          = Substitute.For <ILoggerManager>();
            _paymentBusiness = Substitute.For <IPaymentBusiness>();

            _paymentController = new PaymentController(_logger, _paymentBusiness);
        }
Exemple #2
0
 public PaymentController(IPaymentBusiness iPaymentBusiness = null, ICommandBus commandBus, IQueryBus queryBus)
 {
     this.commandBus       = commandBus;
     this.queryBus         = queryBus;
     this.iPaymentBusiness = iPaymentBusiness ??
                             GsbIoC.Instance.GetInstance <IPaymentBusiness>();
 }
 public PaymentController(
     IPaymentBusiness paymentBusiness,
     IMapper mapper,
     IApiResponseWrapper apiResponseWrapper)
 {
     this.paymentBusiness    = paymentBusiness;
     this.mapper             = mapper;
     this.apiResponseWrapper = apiResponseWrapper;
 }
Exemple #4
0
 public PaymentService(IPaymentBusiness paymentBusiness,
                       IOrdersBusiness ordersBusiness,
                       IShopCartBusiness shopCartBusiness,
                       IBilletIntegration billetIntegration,
                       ICredCardIntegration credCardIntegration)
 {
     _paymentBusiness     = paymentBusiness;
     _ordersBusiness      = ordersBusiness;
     _shopCartBusiness    = shopCartBusiness;
     _billetIntegration   = billetIntegration;
     _credCardIntegration = credCardIntegration;
 }
Exemple #5
0
 public PaymentController(ILoggerManager logger, IPaymentBusiness paymentBusiness)
 {
     this._logger          = logger;
     this._paymentBusiness = paymentBusiness;
 }
Exemple #6
0
 public PaymentService()
 {
     this.iPaymentBusiness =
         SimpleIoC.Instance.GetInstance <IPaymentBusiness>();
 }
Exemple #7
0
 public PaymentServices(IPaymentBusiness paymentBusiness)
 {
     _paymentBusiness = paymentBusiness;
 }
Exemple #8
0
 public PaymentController(IPaymentBusiness iPaymentBusiness)
 {
     this.iPaymentBusiness = iPaymentBusiness;
 }
 public PaymentController(ILogger <PaymentController> logger,
                          IPaymentBusiness iPaymentBusiness)
 {
     this._logger          = logger;
     this.iPaymentBusiness = iPaymentBusiness;
 }
Exemple #10
0
 public PaymentController(IPaymentBusiness iPaymentBusiness = null)
 {
     this.iPaymentBusiness = iPaymentBusiness ??
                             GsbIoC.Instance.GetInstance <IPaymentBusiness>();
 }
 public PaymentController(
     IPaymentBusiness paymentBusiness
     )
 {
     _paymentBusiness = paymentBusiness;
 }
 public PaymentsController(IPaymentBusiness PaymentBusiness)
 {
     this.PaymentBusiness = PaymentBusiness;
 }
 public PaymentsController(IPaymentBusiness PaymentBusiness, IEgreetingUserBusiness EgreetingUserBusiness)
 {
     this.PaymentBusiness       = PaymentBusiness;
     this.EgreetingUserBusiness = EgreetingUserBusiness;
 }
Exemple #14
0
 public PaymentController(ILogger <PaymentController> logger, IPaymentBusiness paymentBusiness)
 {
     _Logger          = logger;
     _PaymentBusiness = paymentBusiness;
 }
Exemple #15
0
 public void Setup()
 {
     _Logger            = Substitute.For <ILogger <PaymentController> >();
     _PaymentBusiness   = Substitute.For <IPaymentBusiness>();
     _PaymentController = new PaymentController(_Logger, _PaymentBusiness);
 }