void ThrowIfActionMissing(string actionName) { if (!actions.ContainsKey(actionName)) { throw new WitException($"unknown action {actionName}"); } }
WitActions ValidateActions(WitActions actions) { if (!actions.ContainsKey("send")) { Console.WriteLine("The 'send' action is missing."); } return(actions); }