Beispiel #1
0
 public SingleParameterIdentificationResultsPresenter(ISingleParameterIdentificationResultsView view, IParameterIdentificationRunPropertiesPresenter runPropertiesPresenter,
                                                      IParameterIdentificationRunResultToRunResultDTOMapper runResultDTOMapper, ITransferOptimizedParametersToSimulationsTask transferParametersToSimulationsTask) : base(view)
 {
     _runPropertiesPresenter = runPropertiesPresenter;
     _runResultDTOMapper     = runResultDTOMapper;
     _transferParametersToSimulationsTask = transferParametersToSimulationsTask;
     AddSubPresenters(_runPropertiesPresenter);
     _view.AddResultPropertiesView(_runPropertiesPresenter.View);
 }
Beispiel #2
0
        protected override void Context()
        {
            _runResultDTOMapper = A.Fake <IParameterIdentificationRunResultToRunResultDTOMapper>();
            _view = A.Fake <ISingleParameterIdentificationResultsView>();
            _runPropertiesPresenter             = A.Fake <IParameterIdentificationRunPropertiesPresenter>();
            _transferParametersToSimulationTask = A.Fake <ITransferOptimizedParametersToSimulationsTask>();
            sut = new SingleParameterIdentificationResultsPresenter(_view, _runPropertiesPresenter, _runResultDTOMapper, _transferParametersToSimulationTask);

            _parameterIdentification = new ParameterIdentification();
            _runResult = A.Fake <ParameterIdentificationRunResult>();
            _parameterIdentification.AddResult(_runResult);
        }
 public void AttachPresenter(IParameterIdentificationRunPropertiesPresenter presenter)
 {
     _presenter = presenter;
 }