Пример #1
0
        public Task ExecuteAsync(ScenarioInfo scenario, Func <ExtendableExecutor, object, RunnableStep[]> stepsProvider, Func <object> contextProvider, IScenarioProgressNotifier progressNotifier)
        {
            var runnableScenario = new RunnableScenario(scenario, stepsProvider, contextProvider, progressNotifier, _extendableExecutor);

            try
            {
                return(runnableScenario.RunAsync());
            }
            finally
            {
                ScenarioExecuted?.Invoke(runnableScenario.Result);
            }
        }
Пример #2
0
        public Task ExecuteAsync(ScenarioInfo scenario, Func <DecoratingExecutor, object, RunnableStep[]> stepsProvider, IContextProvider contextProvider, IScenarioProgressNotifier progressNotifier, IEnumerable <IScenarioDecorator> scenarioDecorators, ExceptionProcessor exceptionProcessor)
        {
            var runnableScenario = new RunnableScenario(scenario, stepsProvider, contextProvider, progressNotifier, _decoratingExecutor, scenarioDecorators, exceptionProcessor);

            try
            {
                return(runnableScenario.RunAsync());
            }
            finally
            {
                ScenarioExecuted?.Invoke(runnableScenario.Result);
            }
        }