public PaymentsApplication(ILogger logger, IIdentifierFactory idFactory, IPaymentStorage storage)
        {
            logger.GuardAgainstNull(nameof(logger));
            idFactory.GuardAgainstNull(nameof(idFactory));
            storage.GuardAgainstNull(nameof(storage));

            this.logger    = logger;
            this.idFactory = idFactory;
            this.storage   = storage;
        }
        public PaymentGateway(ILoggerFactory loggerFactory, IBank bank, IPaymentStorage storage)
        {
            if (loggerFactory != null)
            {
                this.logger = loggerFactory.CreateLogger <PaymentGateway>();
            }

            this.bank    = bank ?? throw new ArgumentNullException(nameof(bank));
            this.storage = storage ?? throw new ArgumentNullException(nameof(storage));
        }
Beispiel #3
0
 public PaymentLogic(IPaymentStorage paymentStorage)
 {
     _paymentStorage = paymentStorage;
 }
Beispiel #4
0
 public PaymentRetrievalController(IPaymentStorage paymentStorage)
 {
     this.paymentStorage = paymentStorage;
 }
Beispiel #5
0
 public PaymentController(IAcquiringBank acquiringBank, IPaymentStorage paymentStorage, IPaymentRequestValidator paymentRequestValidator)
 {
     this.acquiringBank           = acquiringBank;
     this.paymentStorage          = paymentStorage;
     this.paymentRequestValidator = paymentRequestValidator;
 }
 public PaymentLogic(IPaymentStorage routeStorage)
 {
     _paymentStorage = routeStorage;
 }
 public PaymentBusinessLogic(IPaymentStorage paymentStorage)
 {
     this.paymentStorage = paymentStorage;
 }