Beispiel #1
0
        public FamilyRentalPack(IRangeValidator <int> rangeValidator, IDiscount discount) : base()
        {
            if (rangeValidator == null)
            {
                throw new ArgumentNullException("rangeValidator cannot be null");
            }

            if (discount == null)
            {
                throw new ArgumentNullException("discount cannot be null");
            }

            this.rangeValidator = rangeValidator;
            this.discount       = discount;
        }
Beispiel #2
0
 public CreativityLevelValidator()
 {
     _rangeValidator = new UIntRangeValidator(3, 20);
 }
 public void Setup()
 {
     _validator = new UIntRangeValidator();
 }