Exemple #1
0
 public RunnableStep(RunnableStepContext stepContext, StepInfo info, StepFunc invocation, MethodArgument[] arguments, IEnumerable <IStepDecorator> stepDecorators)
 {
     _stepContext         = stepContext;
     _invocation          = invocation;
     _arguments           = arguments;
     _decoratedStepMethod = DecoratingExecutor.DecorateStep(this, RunStepAsync, stepDecorators);
     _result = new StepResult(info);
     UpdateNameDetails();
 }
 public RunnableScenario(RunnableScenarioContext scenarioContext, ScenarioInfo scenarioInfo,
                         IEnumerable <StepDescriptor> stepDescriptors, ExecutionContextDescriptor contextDescriptor,
                         IEnumerable <IScenarioDecorator> scenarioDecorators)
 {
     _scenarioContext         = scenarioContext;
     _stepDescriptors         = stepDescriptors;
     _contextDescriptor       = contextDescriptor;
     _decoratedScenarioMethod = DecoratingExecutor.DecorateScenario(this, RunScenarioAsync, scenarioDecorators);
     _result = new ScenarioResult(scenarioInfo);
 }
Exemple #3
0
 public RunnableScenario(ScenarioInfo scenario, Func <DecoratingExecutor, object, RunnableStep[]> stepsProvider, IContextProvider contextProvider, IScenarioProgressNotifier progressNotifier, DecoratingExecutor decoratingExecutor, IEnumerable <IScenarioDecorator> scenarioDecorators, ExceptionProcessor exceptionProcessor)
 {
     _info               = scenario;
     _stepsProvider      = stepsProvider;
     _contextProvider    = contextProvider;
     _progressNotifier   = progressNotifier;
     _decoratingExecutor = decoratingExecutor;
     _scenarioDecorators = scenarioDecorators;
     _exceptionProcessor = exceptionProcessor;
     _result             = new ScenarioResult(_info);
 }
Exemple #4
0
 public RunnableStep(StepInfo stepInfo, Func <object, object[], Task <CompositeStepContext> > stepInvocation, MethodArgument[] arguments, ExceptionProcessor exceptionProcessor, IScenarioProgressNotifier progressNotifier, DecoratingExecutor decoratingExecutor, object scenarioContext, IEnumerable <IStepDecorator> stepDecorators)
 {
     _result             = new StepResult(stepInfo);
     _stepInvocation     = stepInvocation;
     _arguments          = arguments;
     _exceptionProcessor = exceptionProcessor;
     _progressNotifier   = progressNotifier;
     _decoratingExecutor = decoratingExecutor;
     _scenarioContext    = scenarioContext;
     _stepDecorators     = stepDecorators;
     UpdateNameDetails();
 }
Exemple #5
0
 public ScenarioExecutor(DecoratingExecutor decoratingExecutor)
 {
     _decoratingExecutor = decoratingExecutor;
 }