public virtual void Line(ILineExecution execution) { if (!_context.CanContinue()) return; // TODO -- shouldn't throw exceptions, but you know I'll slip up so try/catch here. execution.Execute(_context); }
public override void Line(ILineExecution execution) { base.Line(execution); var progress = new SpecProgress(_plan.Specification.id, CurrentContext.Counts.Clone(), ++_step, _total); _observer.SendProgress(progress); }
public void Line(ILineExecution execution) { if (!_context.CanContinue()) return; execution.Execute(_context); var progress = new SpecProgress(_plan.Specification.id, CurrentContext.Counts.Clone(), ++_step, _total); _observer.SendProgress(progress); }
public virtual void Line(ILineExecution execution) { if (!_context.CanContinue()) { return; } execution.Execute(_context); }
public virtual void Line(ILineExecution execution) { if (!_context.CanContinue()) { return; } // TODO -- shouldn't throw exceptions, but you know I'll slip up so try/catch here. execution.Execute(_context); }
public void Line(ILineExecution execution) { if (!_context.CanContinue()) { return; } execution.Execute(_context); var progress = new SpecProgress(_plan.Specification.id, CurrentContext.Counts.Clone(), ++_step, _total); _observer.SendProgress(progress); }
private Task execute(SpecContext context, ILineExecution line) { var running = line.ExecuteAsync(context, Request.Cancellation); return(Task.WhenAny(running, _timeout)); }
public void LineComplete(ISpecContext context, ILineExecution line) { var progress = new SpecProgress(context.Specification.id, context.Counts.Clone(), ++_step, _total); _observer.SendProgress(progress); }
public bool Matches(ILineExecution execution) { return(execution.Position == position && execution.Id == id); }
void IStepExecutor.Line(ILineExecution execution) { _lines.Add(execution); }
public bool Matches(ILineExecution execution) { return execution.Position == position && execution.Id == id; }
public NextStep(string spec, ILineExecution next) : this() { id = next.Id; position = next.Position?.ToString(); this.spec = spec; }
public bool Matches(ILineExecution line) { throw new NotImplementedException(); }
public NextStep(string spec, ILineExecution next) : base("next-step") { id = next.Id; position = next.Position; this.spec = spec; }
private Task execute(SpecContext context, ILineExecution line) { var running = Task.Factory.StartNew(() => { line.Execute(context); }, Request.Cancellation); return Task.WhenAny(running, _timeout); }
public virtual void Line(ILineExecution execution) { if (!_context.CanContinue()) return; execution.Execute(_context); }
void ILineStepGatherer.Line(ILineExecution execution) { _lines.Add(execution); }
public void LineComplete(ISpecContext context, ILineExecution line) { // nothing }