Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to test backchannel events? #6

Open
cdagli opened this issue May 16, 2018 · 1 comment
Open

Is it possible to test backchannel events? #6

cdagli opened this issue May 16, 2018 · 1 comment

Comments

@cdagli
Copy link

cdagli commented May 16, 2018

Hello,

Is it possible to add some steps to test the backchannel events documented there: https://docs.microsoft.com/en-us/azure/bot-service/nodejs/bot-builder-nodejs-backchannel?view=azure-bot-service-3.0

Thanks

@enessoylu
Copy link

You can do this in TypeScript like:

import { Message } from 'botbuilder'; 

export class MockBackchannelEvent extends Message
{
    constructor(private event: EventActivity)
    {
        super();
    }

    public toMessage(): any
    {
        return {
            ...super.toMessage(),
            ...this.event
        };
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants