예제 #1
0
        public void Handle(ProgressingEvent eventToHandle)
        {
            update(StatusBarElements.ProgressBar)
            .WithValue(eventToHandle.ProgressPercent);

            update(StatusBarElements.ProgressStatus)
            .WithCaption(eventToHandle.Message);
        }
        public void should_notify_a_progressing_event_with_the_iteration_number_the_overall_percentage_and_the_message()
        {
            ProgressingEvent raisedEvent = null;

            A.CallTo(() => _eventPublisher.PublishEvent(A <ProgressingEvent> .Ignored)).Invokes(x => raisedEvent = x.GetArgument <ProgressingEvent>(0));
            sut.ReportProgress(5, _message);
            raisedEvent.Message.ShouldBeEqualTo(_message);
            raisedEvent.Progress.ShouldBeEqualTo(5);
            raisedEvent.ProgressPercent.ShouldBeEqualTo(50);
        }
 public void Handle(ProgressingEvent eventToHandle)
 {
     _view.StartProgress(eventToHandle.ProgressPercent, eventToHandle.Message);
 }
예제 #4
0
 public void Handle(ProgressingEvent eventToHandle)
 {
     View.StatusInfo    = eventToHandle.Message;
     View.ProgressValue = eventToHandle.ProgressPercent;
 }