public async Task ProcessItem(string item, Enums.VedingMachineActions action) { switch (action) { case VedingMachineActions.Boil: await Boil(item); break; case VedingMachineActions.Add: await Add(item); break; case VedingMachineActions.AddToCup: await AddToCup(item); break; case VedingMachineActions.Crush: await Crush(item); break; case VedingMachineActions.AddToBlender: await AddToBlender(item); break; case VedingMachineActions.BlendAll: await BlendAll(); break; default: throw new ArgumentOutOfRangeException(nameof(action), action, null); } }
public RecipeActions(string item, Enums.VedingMachineActions action) { this.Item = item; this.Action = action; }