Exemple #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);
        }
 public SplitsController(IStepProvider stepProvider, IStepInvoker stepInvoker)
 {
     _stepProvider = stepProvider;
       _stepInvoker = stepInvoker;
 }
Exemple #3
0
 public void AddStep(IStepInvoker step)
 {
     _scenarioMetadata.AddStep(step);
 }
 public ElementInstance(ILinkElement instance)
 {
     this.instance = instance;
     invoker       = CreateInvoker(instance);
 }
 public ElementInstance(ILinkElement instance)
 {
     this.instance = instance;
     invoker = CreateInvoker(instance);
 }