public void Receive(SpecProgress message)
 {
     if (QueueState.running == message.id && QueueState.Stepthrough != null)
     {
         QueueState.Stepthrough.progress = message;
     }
 }
示例#2
0
        public void BeforeRunning(SpecExecutionRequest request)
        {
            var total    = request.Plan.Count();
            var starting = new SpecProgress(request.Id, new Counts(), 0, total);

            _observer.SendProgress(starting);
        }
        public override void Line(ILineExecution execution)
        {
            base.Line(execution);

            var progress = new SpecProgress(_plan.Specification.id, CurrentContext.Counts.Clone(), ++_step, _total);

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

            _observer.SendProgress(progress);
        }
 public void SendProgress(SpecProgress progress)
 {
     SendToClient(progress);
 }
 void IUserInterfaceObserver.SendProgress(SpecProgress progress)
 {
     LastProgress = progress;
 }
 public void SendProgress(SpecProgress progress)
 {
     LastProgress = progress;
     SendToClient(progress);
 }