Exemplo n.º 1
0
 public GarageParking(IGarageTicketRepository repository, IPaymentProcessorFactory factory,
                      IReceiptProvider receiptProvider)
 {
     _repository      = repository ?? throw new ArgumentNullException(nameof(repository));
     _factory         = factory ?? throw new ArgumentNullException(nameof(factory));
     _receiptProvider = receiptProvider ?? throw new ArgumentNullException(nameof(receiptProvider));
 }
Exemplo n.º 2
0
 public PaymentController(IPaymentProcessorFactory paymentProcessorFactory, IMapper mapper, IRepository<Payment> repository)
 {
     _paymentProcessorFactory = paymentProcessorFactory;
     _mapper = mapper;
     _repository = repository;
 }
Exemplo n.º 3
0
 public CheckoutController(IPaymentProcessorFactory paymentProcessor)
 {
     _paymentProcessor = paymentProcessor;
 }
Exemplo n.º 4
0
 public DependencyInjectedPayrollProcessor(IPaymentProcessorFactory paymentProcessorFactory)
 {
     _paymentProcessorFactory = paymentProcessorFactory;
 }