public CardAccountAdminController(ICardAccountService cardAccountService) { if (cardAccountService == null) { throw new ArgumentNullException("cardAccountService"); } _cardAccountService = cardAccountService; }
public CustomerCardAccountController(ICardAccountService cardAccountService) { if (cardAccountService == null) { throw new ArgumentNullException("cardAccountService"); } _cardAccountService = cardAccountService; }
public CustomerCardController(ICardAccountService cardAccountService, IPaymentStatisticsService paymentStatisticsService) { Argument.NotNull(paymentStatisticsService, "paymentStatisticsService"); if (cardAccountService == null) { throw new ArgumentNullException("cardAccountService"); } _cardAccountService = cardAccountService; _paymentStatisticsService = paymentStatisticsService; }
public SubmitPaymentCommandValidator( ICardAccountService cardAccountService, IValidationService validationService, IRepository <PaymentOrderTemplate> paymentOrderTemplateRepository) { Argument.NotNull(cardAccountService, "cardAccountService"); Argument.NotNull(validationService, "validationService"); Argument.NotNull(paymentOrderTemplateRepository, "paymentOrderTemplateRepository"); _cardAccountService = cardAccountService; _validationService = validationService; _paymentOrderTemplateRepository = paymentOrderTemplateRepository; CascadeMode = CascadeMode.StopOnFirstFailure; RuleFor(x => x.TemplateCode) .NotEmpty() .Must(OrderTemplateExists); RuleFor(x => x.FromCardId) .NotEqual(Guid.Empty); RuleFor(x => x.Amount) .GreaterThan(0) .Must(LessThenCardBalance) .WithLocalizedMessage(() => Messages.InsufficientFunds); }
public CardAccountController(ICardAccountService cardAccountService) { _cardAccountService = cardAccountService; }
public CardAdminController(ICardAccountService cardAccountService) { Argument.NotNull(cardAccountService, "cardAccountService"); _cardAccountService = cardAccountService; }