Пример #1
0
        public SnackPile(Snack snack, int quantity, decimal price) : this()
        {
            if (quantity < 0)
            {
                throw new InvalidOperationException();
            }

            if (price < 0)
            {
                throw new InvalidOperationException();
            }

            Snack    = snack;
            Quantity = quantity;
            Price    = price;
        }
Пример #2
0
 public IReadOnlyList <SnackMachine> GetAllWithSnack(Snack snack)
 {
     throw new NotImplementedException();
 }