Jaa


XUnitDialogTestLogger Class

Definition

A middleware to output incoming and outgoing activities as json strings to the console during unit tests.

public class XUnitDialogTestLogger : Microsoft.Bot.Builder.IMiddleware
type XUnitDialogTestLogger = class
    interface IMiddleware
Public Class XUnitDialogTestLogger
Implements IMiddleware
Inheritance
XUnitDialogTestLogger
Implements

Constructors

XUnitDialogTestLogger(ITestOutputHelper)

Initializes a new instance of the XUnitDialogTestLogger class.

Properties

Output

Gets the Xunit.Abstractions.ITestOutputHelper instance for this middleware.

Methods

LogIncomingActivityAsync(ITurnContext, Activity, CancellationToken)

Logs messages sent from the user to the bot.

LogOutgoingActivityAsync(ITurnContext, Activity, CancellationToken)

Logs messages sent from the bot to the user.

OnTurnAsync(ITurnContext, NextDelegate, CancellationToken)

Processes the incoming activity and logs it using the Xunit.Abstractions.ITestOutputHelper.

Applies to