public static string ToFriendlyString(DrinkType drinkType) { return(drinkType switch { DrinkType.Tea => "Tea", DrinkType.Coffee => "Coffee", DrinkType.HotChocolate => "Hot Chocolate", DrinkType.OrangeJuice => "Orange Juice", _ => throw new InvalidEnumArgumentException() });
public void SelectDrink(DrinkType selectedDrink) { _selectableDrink = selectedDrink; }
public OrderDetails(DrinkType drinkType, decimal amountPaid) { TimeStamp = DateTime.Now; DrinkType = drinkType; AmountPaid = amountPaid; }