public static void RenderQuestion <TResult>(this IRenderQuestionTrait trait, string message, IConvertToStringTrait <TResult> convert, IDefaultTrait <TResult> @default, IConsole console) { trait.RenderQuestion = new RenderQuestion <TResult>(message, convert, @default, console); }
public static void RenderConfirmQuestion(this IRenderQuestionTrait trait, string message, IConvertToStringTrait <bool> convert, IDefaultTrait <bool> @default, IConsole console) { trait.RenderQuestion = new DisplayConfirmQuestion <bool>(message, convert, @default, console); }