public PaymentController(IPaymentClientService paymentService, IPaymentStatisticsService paymentStatisticsService) { Argument.NotNull(paymentService, "paymentService"); Argument.NotNull(paymentStatisticsService, "paymentStatisticsService"); _paymentService = paymentService; _paymentStatisticsService = paymentStatisticsService; }
public CustomerCardController(ICardAccountService cardAccountService, IPaymentStatisticsService paymentStatisticsService) { Argument.NotNull(paymentStatisticsService, "paymentStatisticsService"); if (cardAccountService == null) { throw new ArgumentNullException("cardAccountService"); } _cardAccountService = cardAccountService; _paymentStatisticsService = paymentStatisticsService; }