protected override void Context() { _view = A.Fake <ISingleParameterIdentificationFeedbackView>(); _parametersFeedbackPresenter = A.Fake <IParameterIdentificationParametersFeedbackPresenter>(); _predictedVsObservedFeedbackPresenter = A.Fake <IParameterIdentificationPredictedVsObservedFeedbackPresenter>(); _timeProfileFeedbackPresenter = A.Fake <IParameterIdentificationTimeProfileFeedbackPresenter>(); _errroHistorFeedbackPresenter = A.Fake <IParameterIdentificationErrorHistoryFeedbackPresenter>(); sut = new SingleParameterIdentificationFeedbackPresenter(_view, _parametersFeedbackPresenter, _predictedVsObservedFeedbackPresenter, _timeProfileFeedbackPresenter, _errroHistorFeedbackPresenter); _runState = A.Fake <ParameterIdentificationRunState>(); _parameterIdentification = new ParameterIdentification(); }
public SingleParameterIdentificationFeedbackPresenter(ISingleParameterIdentificationFeedbackView view, IParameterIdentificationParametersFeedbackPresenter parametersFeedbackPresenter, IParameterIdentificationPredictedVsObservedFeedbackPresenter predictedVsObservedFeedbackPresenter, IParameterIdentificationTimeProfileFeedbackPresenter timeProfileFeedbackPresenter, IParameterIdentificationErrorHistoryFeedbackPresenter errorHistoryFeedbackPresenter) : base(view) { _view.AddParameterView(parametersFeedbackPresenter.BaseView); _view.AddPredictedVsObservedView(predictedVsObservedFeedbackPresenter.BaseView); _view.AddTimeProfileView(timeProfileFeedbackPresenter.BaseView); _view.AddErrorHistoryView(errorHistoryFeedbackPresenter.BaseView); AddSubPresenters(parametersFeedbackPresenter, timeProfileFeedbackPresenter, errorHistoryFeedbackPresenter, predictedVsObservedFeedbackPresenter); _timer = new Timer(Constants.FEEDBACK_REFRESH_TIME) { SynchronizingObject = view as ISynchronizeInvoke }; _timer.Elapsed += (o, e) => updateFeedbackIfRequired(); }