Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Step"/> class.
 /// </summary>
 /// <param name="scenario">The scenario container.</param>
 /// <param name="step">The step.</param>
 /// <param name="prefix"></param>
 public Step(Scenario scenario, Action step, StepPrefix prefix)
 {
     this.Scenario = scenario;
     this.Method = step;
     this.SetStepPrefix(prefix);
     this.State = StepState.NotRun;
 }
Example #2
0
 public Step(Scenario scenario, StepPrefix stepPrefix, Action methodToRun)
 {
     Prefix = stepPrefix;
     MethodToRun = methodToRun;
     Scenario = scenario;
     Scenario.AddStep(this);
 }
 public GivenStep(Scenario scenario, StepPrefix stepPrefix, Action methodToRun)
     : base(scenario, stepPrefix, methodToRun)
 {
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ThenStep"/> class.
 /// </summary>
 /// <param name="scenario">The scenario container.</param>
 /// <param name="step">The step.</param>
 /// <param name="prefix"></param>
 internal ThenStep(Scenario scenario, Action step, StepPrefix prefix)
     : base(scenario, step, prefix)
 {
     this.Scenario.AddStep(this);
 }
Example #5
0
 /// <summary>
 /// Sets the step prefix.
 /// </summary>
 /// <param name="prefix">The prefix.</param>
 private void SetStepPrefix(StepPrefix prefix)
 {
     this.Prefix = Enum.GetName(typeof (StepPrefix), prefix);
 }