Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public IReadOnlyList <SnackMachine> GetAllWithSnack(Snack snack)
 {
     throw new NotImplementedException();
 }