public void Handle(ParameterIdentificationStartedEvent parameterIdentificationEvent)
        {
            var parameterIdentification = parameterIdentificationEvent.ParameterIdentification;

            _runningParameterIdentifications.Add(parameterIdentification);
            updateParameterIdentificationItems(parameterIdentification);
        }
        public void Handle(ParameterIdentificationStartedEvent eventToHandle)
        {
            if (!Equals(_parameterIdentificationFeedback.ParameterIdentification, eventToHandle.ParameterIdentification))
            {
                return;
            }

            setParameterIdentificationToStarted(eventToHandle.ParameterIdentification);
        }
        protected override void Context()
        {
            base.Context();
            _parameterIdentificationRun   = A.Fake <IParameterIdentificationRun>();
            _parameterIdentificationsRuns = new List <IParameterIdentificationRun> {
                _parameterIdentificationRun
            };
            A.CallTo(() => _parameterIdentificationRunFactory.CreateFor(_parameterIdentification, A <CancellationToken> ._)).Returns(_parameterIdentificationsRuns);

            A.CallTo(() => _eventPublisher.PublishEvent(A <ParameterIdentificationStartedEvent> ._))
            .Invokes(x => _startedEvent = x.GetArgument <ParameterIdentificationStartedEvent>(0));

            A.CallTo(() => _eventPublisher.PublishEvent(A <ParameterIdentificationTerminatedEvent> ._))
            .Invokes(x => _terminatedEvent = x.GetArgument <ParameterIdentificationTerminatedEvent>(0));
        }
Beispiel #4
0
 public void Handle(ParameterIdentificationStartedEvent parameterIdentificationEvent)
 {
     _parameterIdentificationRunning = true;
     updateParameterIdentifcationItems(parameterIdentificationEvent.ParameterIdentification);
 }
Beispiel #5
0
 public void Handle(ParameterIdentificationStartedEvent eventToHandle)
 {
     _parameterIdentification = eventToHandle.ParameterIdentification;
     _view.Caption            = Captions.ParameterIdentification.FeedbackViewFor(_parameterIdentification.Name);
     showParameterIdentificationFeedback();
 }
 public void Handle(ParameterIdentificationStartedEvent eventToHandle)
 {
     GetFeedbackFor(eventToHandle.ParameterIdentification).RunStatus = RunStatusId.Running;
 }