/// <summary>The make example step 1.</summary>
        /// <param name="nextStep">The next step.</param>
        /// <returns>The <see cref="Step"/>.</returns>
        private static Step MakeExampleStep1(Step nextStep)
        {
            var step = new Step
                       {
                           Number = 1,
                           NextStep = nextStep,
                       };

            var problems = MakeExampleStep1Problems(
                nextStep.Problems[0],
                nextStep.Problems[1],
                nextStep.NextStep.Problems[1]);
            foreach (var problem in problems)
            {
                step.Problems.Add(problem);
            }
            return step;
        }
        /// <summary>The make example step 3.</summary>
        /// <returns>The <see cref="Step"/>.</returns>
        private static Step MakeExampleStep3()
        {
            var step = new Step { Number = 3 };
            var problems = MakeExampleStep3Problems();
            foreach (var problem in problems)
            {
                step.Problems.Add(problem);
            }

            return step;
        }
示例#3
0
 public void StepValidatorTest()
 {
     var stepValidator = new StepValidator();
     var step = new Step();
     ValidationResults result = stepValidator.Validate(step);
 }