public override void Validate() { base.Validate(); Prompt.Validate(this.Prompts); }
private static PlayPrompt GetPromptForText(string text) { var prompt = new Prompt { Value = text, Voice = VoiceGender.Male }; return new PlayPrompt { OperationId = Guid.NewGuid().ToString(), Prompts = new List<Prompt> { prompt } }; }
public override void Validate() { base.Validate(); Utils.AssertArgument(this.Action == ValidActions.PlayPromptAction, "Action was not PlayPrompt"); Prompt.Validate(this.Prompts); }