protected override void Context()
        {
            _view = A.Fake <IEditParameterIdentificationView>();
            _subPresenterItemManager = SubPresenterHelper.Create <IParameterIdentificationItemPresenter>();
            _parameterIdentificationDataSelectionPresenter      = _subPresenterItemManager.CreateFake(ParameterIdentificationItems.Data);
            _parameterIdentificationParameterSelectionPresenter = _subPresenterItemManager.CreateFake(ParameterIdentificationItems.Parameters);
            _parameterIdentificationConfigurationPresenter      = _subPresenterItemManager.CreateFake(ParameterIdentificationItems.Configuration);

            _simulationAnalysisPresenterFactory = A.Fake <ISimulationAnalysisPresenterFactory>();
            _contextMenuFactory        = A.Fake <ISimulationAnalysisPresenterContextMenuFactory>();
            _presentationSettingsTask  = A.Fake <IPresentationSettingsTask>();
            _simulationAnalysisCreator = A.Fake <IParameterIdentificationAnalysisCreator>();
            _executionContext          = A.Fake <IOSPSuiteExecutionContext>();
            _simulation = A.Fake <ISimulation>();

            sut = new EditParameterIdentificationPresenter(_view, _subPresenterItemManager, _executionContext, _simulationAnalysisPresenterFactory, _contextMenuFactory, _presentationSettingsTask, _simulationAnalysisCreator);

            sut.InitializeWith(A.Fake <ICommandCollector>());
            _parameterIdentification = new ParameterIdentification();
            _parameterIdentification.AddSimulation(_simulation);
        }
Example #2
0
 public void AttachPresenter(IParameterIdentificationParameterSelectionPresenter presenter)
 {
     _presenter = presenter;
 }