public UserProfileDialog( IDialogHelper helper, ICompanyRegistryManager companyRegistryManager) : base(nameof(UserProfileDialog)) { _helper = helper ?? throw new System.ArgumentNullException(nameof(helper)); AddDialog(new TextPrompt(NAME_VALIDATION, NamePromptValidatorAsync)); AddDialog(new TextPrompt(EMAIL_VALIDATION, EmailPromptValidatorAsync)); AddDialog(new NumberPrompt <int>(AGE_VALIDATION, AgePromptValidatorAsync)); AddDialog(new CustomConfirmPrompt(nameof(CustomConfirmPrompt))); AddDialog(new UserCompanyDialog(helper, companyRegistryManager ?? throw new System.ArgumentNullException(nameof(companyRegistryManager)))); AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[] { AskForAgreementStepAsync, AskForNameStepAsync, AskForEmailStepAsync, AskForAgeStepAsync, SkipOrAskForAgeStepAsync, StartCompanyDialogStepAsync, FinalStepAsync, })); InitialDialogId = nameof(WaterfallDialog); }
public MainDialog( IDialogHelper helper, ICompanyRegistryManager companyRegistryManager) : base(nameof(MainDialog)) { this._helper = helper ?? throw new System.ArgumentNullException(nameof(helper)); AddDialog(new UserProfileDialog(helper, companyRegistryManager ?? throw new System.ArgumentNullException(nameof(companyRegistryManager)))); AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[] { StartUserProfileDialogStepAsync, FinalStepAsync, })); InitialDialogId = nameof(WaterfallDialog); }
public UserCompanyDialog( IDialogHelper helper, ICompanyRegistryManager companyRegistryManager) : base(nameof(UserCompanyDialog)) { this._helper = helper ?? throw new System.ArgumentNullException(nameof(helper)); this._companyRegistryManager = companyRegistryManager ?? throw new System.ArgumentNullException(nameof(companyRegistryManager)); AddDialog(new TextPrompt(CNPJ_VALIDATION, CnpjPromptValidatorAsync)); AddDialog(new CustomAdaptiveCardPrompt(nameof(CustomAdaptiveCardPrompt), FormPromptValidatorAsync)); AddDialog(new UserSocioEconomicDialog(helper)); AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[] { AskForTaxIdentificationNumberStepAsync, AskForCheckingCompanyDetailsStepAsync, StartUserSocioEconomicDialogStepAsync, FinalStepAsync, })); InitialDialogId = nameof(WaterfallDialog); }