Skip to content

Commit

Permalink
Fix tests to adopt new override
Browse files Browse the repository at this point in the history
  • Loading branch information
daveta committed Dec 4, 2018
1 parent 8903fd1 commit c4e964f
Showing 1 changed file with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ public async Task Waterfall()
async (step, cancellationToken) => { await step.Context.SendActivityAsync("step1"); return Dialog.EndOfTurn; },
async (step, cancellationToken) => { await step.Context.SendActivityAsync("step2"); return Dialog.EndOfTurn; },
async (step, cancellationToken) => { await step.Context.SendActivityAsync("step3"); return Dialog.EndOfTurn; },
})
{ TelemetryClient = telemetryClient.Object });
}));

dialogs.TelemetryClient = telemetryClient.Object;


await new TestFlow(adapter, async (turnContext, cancellationToken) =>
{
Expand Down Expand Up @@ -71,10 +73,11 @@ public async Task WaterfallWithCallback()
async (step, cancellationToken) => { await step.Context.SendActivityAsync("step1"); return Dialog.EndOfTurn; },
async (step, cancellationToken) => { await step.Context.SendActivityAsync("step2"); return Dialog.EndOfTurn; },
async (step, cancellationToken) => { await step.Context.SendActivityAsync("step3"); return Dialog.EndOfTurn; },
})
{ TelemetryClient = telemetryClient.Object };
});


dialogs.Add(waterfallDialog);
dialogs.TelemetryClient = telemetryClient.Object;

await new TestFlow(adapter, async (turnContext, cancellationToken) =>
{
Expand Down Expand Up @@ -127,10 +130,10 @@ public async Task EnsureEndDialogCalled()
async (step, cancellationToken) => { await step.Context.SendActivityAsync("step1"); return Dialog.EndOfTurn; },
async (step, cancellationToken) => { await step.Context.SendActivityAsync("step2"); return Dialog.EndOfTurn; },
async (step, cancellationToken) => { await step.Context.SendActivityAsync("step3"); return Dialog.EndOfTurn; },
})
{ TelemetryClient = telemetryClient.Object };
});

dialogs.Add(waterfallDialog);
dialogs.TelemetryClient = telemetryClient.Object;

await new TestFlow(adapter, async (turnContext, cancellationToken) =>
{
Expand Down Expand Up @@ -190,10 +193,10 @@ public async Task EnsureCancelDialogCalled()
async (step, cancellationToken) => { await step.Context.SendActivityAsync("step1"); return Dialog.EndOfTurn; },
async (step, cancellationToken) => { await step.Context.SendActivityAsync("step2"); return Dialog.EndOfTurn; },
async (step, cancellationToken) => { await step.CancelAllDialogsAsync(); return Dialog.EndOfTurn; },
})
{ TelemetryClient = telemetryClient.Object };
});

dialogs.Add(waterfallDialog);
dialogs.TelemetryClient = telemetryClient.Object;

await new TestFlow(adapter, async (turnContext, cancellationToken) =>
{
Expand Down

0 comments on commit c4e964f

Please sign in to comment.