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 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);
        }
Example #7
0
        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));
        }
Example #9
0
        public void LineComplete(ISpecContext context, ILineExecution line)
        {
            var progress = new SpecProgress(context.Specification.id, context.Counts.Clone(), ++_step, _total);

            _observer.SendProgress(progress);
        }
Example #10
0
 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;
 }
Example #13
0
 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();
 }
Example #15
0
 public NextStep(string spec, ILineExecution next) : base("next-step")
 {
     id = next.Id;
     position = next.Position;
     this.spec = spec;
 }
Example #16
0
        private Task execute(SpecContext context, ILineExecution line)
        {
            var running = Task.Factory.StartNew(() =>
            {
                line.Execute(context);
            }, Request.Cancellation);

            return Task.WhenAny(running, _timeout);
        }
 public NextStep(string spec, ILineExecution next) : this()
 {
     id        = next.Id;
     position  = next.Position?.ToString();
     this.spec = spec;
 }
        public virtual void Line(ILineExecution execution)
        {
            if (!_context.CanContinue()) return;

            execution.Execute(_context);
        }
Example #19
0
 public NextStep(string spec, ILineExecution next) : base("next-step")
 {
     id        = next.Id;
     position  = next.Position;
     this.spec = spec;
 }
Example #20
0
 void ILineStepGatherer.Line(ILineExecution execution)
 {
     _lines.Add(execution);
 }
 public void LineComplete(ISpecContext context, ILineExecution line)
 {
     var progress = new SpecProgress(context.Specification.id, context.Counts.Clone(), ++_step, _total);
     _observer.SendProgress(progress);
 }
 public void LineComplete(ISpecContext context, ILineExecution line)
 {
     // nothing
 }
Example #23
0
 public void LineComplete(ISpecContext context, ILineExecution line)
 {
     // nothing
 }
 void ILineStepGatherer.Line(ILineExecution execution)
 {
     _lines.Add(execution);
 }
 void IStepExecutor.Line(ILineExecution execution)
 {
     _lines.Add(execution);
 }