Skip to content

Access bot using Direct Line API #1253

@vivekkranjan

Description

@vivekkranjan

I am curious about how I can unit test the bot without using an emulator. Either it can be hosting the bot in unit test project with the in-memory server hosting or communicate the bot with Direct Line API. In both ways, the bot should run locally.

I can't host the bot with Microsoft.AspNetCore.Hosting in my test framework(if hosted, don't know what endpoint the bot communicates).

If I use the bot Startup class with WebHostBuilder in console app the bot is up and running at localhost:5000.

In Console App: IWebHostBuilder builder = new WebHostBuilder().UseStartup<EchoBot.Startup>()

Now how do I make call to bot?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested. Stack Overflow candidate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions