public void OrderFood(FoodSystem context, int id) { var food = _foodDataAccess.GetFood(id); Console.WriteLine($"You ordered: {food.Name}"); context.SetNextState(new FoodOrderedState(food)); }
public void OrderFood(FoodSystem context, int id) { var food = _foodDataAccess.GetFood(id); Console.WriteLine($"You ordered: {food.Name}"); _orderedFood.Add(food); }