protected override void Context() { _eventPublisher = A.Fake <IEventPublisher>(); _view = A.Fake <IParameterIdentificationWeightedObservedDataCollectorView>(); _applicationController = A.Fake <IApplicationController>(); sut = new ParameterIdentificationWeightedObservedDataCollectorPresenter(_view, _applicationController, _eventPublisher); _parameterIdentification = new ParameterIdentification(); _weightedObservedData = new WeightedObservedData(DomainHelperForSpecs.ObservedData()); _outputMapping = new OutputMapping { WeightedObservedData = _weightedObservedData }; _parameterIdentification.AddOutputMapping(_outputMapping); _presenter = A.Fake <IParameterIdentificationWeightedObservedDataPresenter>(); A.CallTo(() => _applicationController.Start <IParameterIdentificationWeightedObservedDataPresenter>()).Returns(_presenter); }
private void removeObservedDataPresenter(IParameterIdentificationWeightedObservedDataPresenter presenter) { presenter.ReleaseFrom(_eventPublisher); _view.RemoveObservedDataView(presenter.View); }
public void AttachPresenter(IParameterIdentificationWeightedObservedDataPresenter presenter) { _presenter = presenter; }