public async Task ContinueConversation_DirectMsgAsync() { bool callbackInvoked = false; var adapter = new TestAdapter(TestAdapter.CreateConversation("ContinueConversation_DirectMsgAsync")); ConversationReference cr = new ConversationReference { ActivityId = "activityId", Bot = new ChannelAccount { Id = "channelId", Name = "testChannelAccount", Role = "bot", }, ChannelId = "testChannel", ServiceUrl = "testUrl", Conversation = new ConversationAccount { ConversationType = string.Empty, Id = "testConversationId", IsGroup = false, Name = "testConversationName", Role = "user", }, User = new ChannelAccount { Id = "channelId", Name = "testChannelAccount", Role = "bot", }, }; Task ContinueCallback(ITurnContext turnContext, CancellationToken cancellationToken) { callbackInvoked = true; return(Task.CompletedTask); } await adapter.ContinueConversationAsync("MyBot", cr, ContinueCallback, default(CancellationToken)); Assert.True(callbackInvoked); }