/// <summary> /// Initializes a new instance of the <see cref="TestFlow"/> class from an existing flow. /// </summary> /// <param name="getTask">The exchange to add to the exchanges in the existing flow.</param> /// <param name="flow">The flow to build up from. This provides the test adapter to use, /// the bot turn processing locig to test, and a set of exchanges to model and test.</param> public TestFlow(Func <Task> getTask, TestFlow flow) { _testTask = getTask != null?getTask() : Task.CompletedTask; _callback = flow._callback; _adapter = flow._adapter; }
/// <summary> /// Initializes a new instance of the <see cref="TestFlow"/> class from an existing flow. /// </summary> /// <param name="task">The exchange to add to the exchanges in the existing flow.</param> /// <param name="flow">The flow to build up from. This provides the test adapter to use, /// the bot turn processing locig to test, and a set of exchanges to model and test.</param> public TestFlow(Task task, TestFlow flow) { _testTask = task ?? Task.CompletedTask; _callback = flow._callback; _adapter = flow._adapter; }
public TestFlow(Task testTask, TestFlow flow) { this.testTask = testTask ?? Task.CompletedTask; this.callback = flow.callback; this.adapter = flow.adapter; }