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 virtual void Line(ILineExecution execution)
        {
            if (!_context.CanContinue())
            {
                return;
            }

            execution.Execute(_context);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
0
        private Task execute(SpecContext context, ILineExecution line)
        {
            var running = Task.Factory.StartNew(() =>
            {
                line.Execute(context);
            }, Request.Cancellation);

            return Task.WhenAny(running, _timeout);
        }
Ejemplo n.º 7
0
        public virtual void Line(ILineExecution execution)
        {
            if (!_context.CanContinue()) return;

            execution.Execute(_context);
        }