Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public DefaultPolicy(BankingSystemSchedule systemSchedule)
 {
     Argument.NotNull(systemSchedule, "systemSchedule");
     _systemSchedule = systemSchedule;
 }