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; }
public IReadOnlyList <SnackMachine> GetAllWithSnack(Snack snack) { throw new NotImplementedException(); }