sto cercando di testare il flusso iDialog con un falso messaggio così:Microsoft.Rest.HttpOperationException in Microsoft.Bot.Builder.dll ("Accesso negato") durante il test PromptDialog.Confirm
var toBot = new Message()
{
ConversationId = Guid.NewGuid().ToString(),
Text = "Test",
};
Func<IDialog<T>> MakeRoot =() => testDialog;
toBot.From = new ChannelAccount(Guid.NewGuid().ToString());
toBot.To = new ChannelAccount(Guid.NewGuid().ToString());
Quando colpisce il PromptDialog.Confirm, lancia l'eccezione "Microsoft.Rest.HttpOperationException nell'eccezione Microsoft.Bot.Builder.dll (" Accesso negato ")".
Se io non creo
toBot.From = new ChannelAccount(Guid.NewGuid().ToString());
getta System.NullReferenceException per channelId.
PromptDialog.Confirm assomiglia a questo:
PromptDialog.Confirm(context, AfterErrorConfirmationAsync, Strings.ConfirmError,
Strings.InvalidInput);
Come posso risolvere questo problema?