Esempio n. 1
0
        public void AddStep(IStepInvoker step)
        {
            if (step.Type == StepType.When && _steps[StepType.When].Count == 1)
            {
                throw new NotSupportedException(
                          $"Only a single 'When' is supported, found: {_steps[StepType.When].First().StepInvoker.SourceDescription} and {step.SourceDescription}");
            }

            var stepInfo = new StepInfo
            {
                StepInvoker       = step,
                PrettyPrintedName = step.Name.PrettyName
            };

            if (step.Type == StepType.When && string.IsNullOrEmpty(stepInfo.PrettyPrintedName))
            {
                stepInfo.PrettyPrintedName = new StepName(StepType.When, _scenarioTestType.Name).PrettyName;
            }

            _steps[step.Type].Add(stepInfo);
        }
Esempio n. 2
0
 public SplitsController(IStepProvider stepProvider, IStepInvoker stepInvoker)
 {
     _stepProvider = stepProvider;
       _stepInvoker = stepInvoker;
 }
Esempio n. 3
0
 public void AddStep(IStepInvoker step)
 {
     _scenarioMetadata.AddStep(step);
 }
Esempio n. 4
0
 public ElementInstance(ILinkElement instance)
 {
     this.instance = instance;
     invoker       = CreateInvoker(instance);
 }
 public ElementInstance(ILinkElement instance)
 {
     this.instance = instance;
     invoker = CreateInvoker(instance);
 }