public UserCardLimitsPolicy(IRepository<UserCard> userCardRepository, IQueryRepository<CardTransaction> cardTransactionRepository, BankingSystemSchedule schedule) { Argument.NotNull(userCardRepository, "userCardRepository"); Argument.NotNull(cardTransactionRepository, "cardTransactionRepository"); Argument.NotNull(schedule, "schedule"); _userCardRepository = userCardRepository; _cardTransactionRepository = cardTransactionRepository; _schedule = schedule; _settings = new BankSettings(); }
public DefaultPolicy(BankingSystemSchedule systemSchedule) { Argument.NotNull(systemSchedule, "systemSchedule"); _systemSchedule = systemSchedule; }