Inheritance: ICompositeExecution
Ejemplo n.º 1
0
 public void SpecHandled(SpecificationPlan plan, SpecResults specResults)
 {
     var record = _records[plan.Specification.id];
     record.results = specResults;
     record.specification = plan.Specification;
     CompleteCheck();
 }
 public InstrumentedExecutor(SpecContext context, SpecificationPlan plan, IUserInterfaceObserver observer)
     : base(context)
 {
     _observer = observer;
     _total = plan.Count();
     _step = 0;
     _plan = plan;
 }
Ejemplo n.º 3
0
        public static void RunAll(SpecContext context, SpecificationPlan plan)
        {
            var gatherer = new LineStepGatherer(context);
            plan.AcceptVisitor(gatherer);

            foreach (var line in gatherer.Lines)
            {
                if (!context.CanContinue()) break;

                line.Execute(context);
            }
        }
Ejemplo n.º 4
0
 public StepthroughExecutor(SpecContext context, SpecificationPlan plan, IUserInterfaceObserver observer)
 {
     _observer = observer;
     _context = context;
     plan.AcceptVisitor(this);
 }
Ejemplo n.º 5
0
 public IStepExecutor BuildExecutor(SpecificationPlan plan, SpecContext context)
 {
     return new SynchronousExecutor(context);
 }
 public IStepExecutor BuildExecutor(SpecificationPlan plan, SpecContext context)
 {
     return new InstrumentedExecutor(context, plan, _observer);
 }