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)); }
public PaymentLogic(IPaymentStorage paymentStorage) { _paymentStorage = paymentStorage; }
public PaymentRetrievalController(IPaymentStorage paymentStorage) { this.paymentStorage = paymentStorage; }
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; }