Exemplo n.º 1
0
 /// <summary>
 /// Method allowing to decorate scenario invocation specified by <paramref name="scenarioInvocation"/>.
 /// </summary>
 /// <param name="scenario">Scenario that is being executed.</param>
 /// <param name="scenarioInvocation">Invocation that should be called in the method body.</param>
 /// <returns>Execution task.</returns>
 public async Task ExecuteAsync(IScenario scenario, Func <Task> scenarioInvocation)
 {
     scenario.ConfigureExecutionAbortOnSubStepException(ShouldAbortExecution);
     await scenarioInvocation();
 }