public ObjectBaseTask(IObjectTypeResolver objectTypeResolver, IMoBiContext context, ICheckNameVisitor checkNamesVisitor, IMoBiApplicationController applicationController)
 {
     _objectTypeResolver    = objectTypeResolver;
     _context               = context;
     _checkNamesVisitor     = checkNamesVisitor;
     _applicationController = applicationController;
 }
Пример #2
0
        public EditEventBuilderPresenter(IEditEventBuilderView view, IEventBuilderToEventBuilderDTOMapper eventToEventBuilderMapper,
                                         IFormulaToFormulaBuilderDTOMapper formulaToDTOFormulaMapper,
                                         IEditTaskFor <IEventBuilder> editTasks, IEditParametersInContainerPresenter editParametersPresenter,
                                         IInteractionTasksForChildren <IEventBuilder, IEventAssignmentBuilder> interactionTasksForEventAssignmentBuilder,
                                         IEditExplicitFormulaPresenter editFormulaPresenter, IMoBiContext context,
                                         ISelectReferenceAtEventPresenter selectReferencePresenter,
                                         IMoBiApplicationController applicationController, IDialogCreator dialogCreator)
            : base(view)
        {
            _selectReferencePresenter = selectReferencePresenter;
            _applicationController    = applicationController;
            _dialogCreator            = dialogCreator;
            _context = context;
            _editFormulaPresenter = editFormulaPresenter;
            _interactionTasksForEventAssignmentBuilder = interactionTasksForEventAssignmentBuilder;
            _eventToEventBuilderMapper = eventToEventBuilderMapper;
            _formulaToDTOFormulaMapper = formulaToDTOFormulaMapper;
            _editTasks = editTasks;
            _editParametersPresenter = editParametersPresenter;

            _view.SetParametersView(editParametersPresenter.BaseView);
            _formulaPropertyName = _eventBuilder.PropertyName(x => x.Formula);

            AddSubPresenters(_editFormulaPresenter, _editParametersPresenter, _selectReferencePresenter);
        }
Пример #3
0
        public ExportCollectionToPDFCommand(IMoBiApplicationController applicationController, IMoBiContext context) : base(applicationController)
        {
            var             project = context.CurrentProject;
            IEnumerable <T> all;

            if (typeof(T).IsAnImplementationOf <IBuildingBlock>())
            {
                all = project.AllBuildingBlocks().Where(x => x.IsAnImplementationOf <T>()).Cast <T>();
            }

            else if (typeof(T).IsAnImplementationOf <IMoBiSimulation>())
            {
                all = project.Simulations.Cast <T>();
            }

            else if (typeof(T).IsAnImplementationOf <DataRepository>())
            {
                all = project.AllObservedData.Cast <T>();
            }

            else
            {
                all = Enumerable.Empty <T>();
            }

            Subject = new ReadOnlyCollection <T>(all.ToList());
        }
Пример #4
0
 protected EditTaskFor(IInteractionTaskContext interactionTaskContext)
 {
     _interactionTaskContext = interactionTaskContext;
     _applicationController  = interactionTaskContext.ApplicationController;
     _interactionTask        = interactionTaskContext.InteractionTask;
     _context   = interactionTaskContext.Context;
     ObjectName = _interactionTaskContext.GetTypeFor <T>();
 }
Пример #5
0
 public AddMoleculeStartValuesUICommand(
     IMoleculeStartValuesTask startValueTasks,
     IActiveSubjectRetriever activeSubjectRetriever,
     IMoBiApplicationController applicationController, IMoBiHistoryManager moBiHistoryManager)
     : base(startValueTasks, activeSubjectRetriever)
 {
     _applicationController = applicationController;
     _moBiHistoryManager    = moBiHistoryManager;
 }
Пример #6
0
 public ReactionDiagramPresenter(IReactionDiagramView view, IContainerBaseLayouter layouter, IMoBiContext context, IUserSettings userSettings, IDialogCreator dialogCreator, IMoBiApplicationController applicationController, IDiagramTask diagramTask, IDiagramLayoutTask diagramLayoutTask, IStartOptions runOptions, IDiagramModelFactory diagramModelFactory) :
     base(view, layouter, dialogCreator, diagramModelFactory, userSettings, context, diagramTask, runOptions)
 {
     _applicationController = applicationController;
     _diagramPopupMenu      = new PopupMenuReactionDiagram(this, runOptions);
     _moleculePopupMenu     = _diagramPopupMenu;
     _reactionPopupMenu     = new PopupMenuReactionBuilder(this, context, runOptions);
     _diagramLayoutTask     = diagramLayoutTask;
 }
Пример #7
0
 public ChartTasks(IMoBiContext context, IEventPublisher eventPublisher, IMoBiApplicationController applicationController,
                   IChartFactory chartFactory, IDialogCreator dialogCreator, IMoBiProjectRetriever projectRetriever)
 {
     _context               = context;
     _eventPublisher        = eventPublisher;
     _applicationController = applicationController;
     _chartFactory          = chartFactory;
     _dialogCreator         = dialogCreator;
     _projectRetriever      = projectRetriever;
 }
 public EditTableFormulaPresenter(IEditTableFormulaView view, ITableFormulaToDTOTableFormulaMapper tableFormulaToDTOTableFormulaMapper, IMoBiContext context, ITableFormulaTask tableFormulaTask,
    IMoBiApplicationController applicationController, IMoBiFormulaTask moBiFormulaTask, IDisplayUnitRetriever displayUnitRetriever)
    : base(view, displayUnitRetriever)
 {
    _tableFormulaToDTOTableFormulaMapper = tableFormulaToDTOTableFormulaMapper;
    _context = context;
    _tableFormulaTask = tableFormulaTask;
    _applicationController = applicationController;
    _moBiFormulaTask = moBiFormulaTask;
 }
 protected override void Context()
 {
     _context  = A.Fake <IInteractionTaskContext>();
     _editTask = A.Fake <IEditTasksForSimulation>();
     _applicationController = A.Fake <IMoBiApplicationController>();
     _dialogCreator         = A.Fake <IDialogCreator>();
     A.CallTo(() => _context.ApplicationController).Returns(_applicationController);
     A.CallTo(() => _context.DialogCreator).Returns(_dialogCreator);
     _simulationReferenceUpdater = A.Fake <ISimulationReferenceUpdater>();
     sut = new InteractionTasksForSimulation(_context, _editTask, _simulationReferenceUpdater);
 }
Пример #10
0
 public SimulationUpdateTask(IModelConstructor modelConstructor, IBuildConfigurationFactory buildConfigurationFactory,
                             IMoBiContext context, IMoBiApplicationController applicationController, IDimensionValidator dimensionValidator, IEntityPathResolver entityPathResolver, IAffectedBuildingBlockRetriever affectedBuildingBlockRetriever)
 {
     _modelConstructor          = modelConstructor;
     _buildConfigurationFactory = buildConfigurationFactory;
     _context = context;
     _applicationController          = applicationController;
     _dimensionValidator             = dimensionValidator;
     _entityPathResolver             = entityPathResolver;
     _affectedBuildingBlockRetriever = affectedBuildingBlockRetriever;
 }
 public SearchPresenter(ISearchView view, IRegionResolver regionResolver, IActiveSubjectRetriever activeSubjectRetriever,
                        ISearchResultToDTOSearchResultMapper searchResultsToDTOSearchResultsMapper, ISearchTask searchTask, IMoBiApplicationController applicationController, IMoBiContext context) : base(view)
 {
     _regionResolver        = regionResolver;
     _context               = context;
     _applicationController = applicationController;
     _searchTask            = searchTask;
     _searchResultsToDTOSearchResultsMapper = searchResultsToDTOSearchResultsMapper;
     _activeSubjectRetriever = activeSubjectRetriever;
     _view.Enabled           = false;
 }
 protected override void Context()
 {
     _view                   = A.Fake <ISearchView>();
     _regionResolver         = A.Fake <IRegionResolver>();
     _activeSubjectRetriever = A.Fake <IActiveSubjectRetriever>();
     _searchResultMapper     = A.Fake <ISearchResultToDTOSearchResultMapper>();
     _searchTask             = A.Fake <ISearchTask>();
     _applicationController  = A.Fake <IMoBiApplicationController>();
     _context                = A.Fake <IMoBiContext>();
     sut = new SearchPresenter(_view, _regionResolver, _activeSubjectRetriever, _searchResultMapper, _searchTask, _applicationController, _context);
 }
        protected override void Context()
        {
            _reactionDimensionRetriever = A.Fake <IReactionDimensionRetriever>();
            _editTaskFor            = A.Fake <IEditTaskFor <IReactionBuilder> >();
            _interactionTaskContext = A.Fake <IInteractionTaskContext>();
            sut = new InteractionTasksForReactionBuilder(_interactionTaskContext, _editTaskFor, _reactionDimensionRetriever);

            _moBiApplicationController        = A.Fake <IMoBiApplicationController>();
            _multipleStringSelectionPresenter = A.Fake <IMultipleStringSelectionPresenter>();
            A.CallTo(() => _interactionTaskContext.ApplicationController).Returns(_moBiApplicationController);
            A.CallTo(() => _moBiApplicationController.Start <IMultipleStringSelectionPresenter>()).Returns(_multipleStringSelectionPresenter);
        }
Пример #14
0
 public SimulationRunner(IMoBiContext context, IMoBiApplicationController applicationController,
                         IOutputSelectionsRetriever outputSelectionsRetriever, ISimulationPersistableUpdater simulationPersistableUpdater,
                         IDisplayUnitUpdater displayUnitUpdater, ISimModelManagerFactory simModelManagerFactory, IKeyPathMapper keyPathMapper)
 {
     _context = context;
     _applicationController        = applicationController;
     _outputSelectionsRetriever    = outputSelectionsRetriever;
     _simulationPersistableUpdater = simulationPersistableUpdater;
     _displayUnitUpdater           = displayUnitUpdater;
     _simModelManagerFactory       = simModelManagerFactory;
     _keyPathMapper = keyPathMapper;
 }
Пример #15
0
        protected override void Context()
        {
            _context = A.Fake <IMoBiContext>();
            _outputSelectionsRetriever    = A.Fake <IOutputSelectionsRetriever>();
            _simulationPersistableUpdater = A.Fake <ISimulationPersistableUpdater>();
            _displayUnitUpdater           = A.Fake <IDisplayUnitUpdater>();
            _applicationController        = A.Fake <IMoBiApplicationController>();
            _simModelManagerFactory       = A.Fake <ISimModelManagerFactory>();
            _keyPathMapper = A.Fake <IKeyPathMapper>();

            sut = new SimulationRunner(_context, _applicationController,
                                       _outputSelectionsRetriever, _simulationPersistableUpdater, _displayUnitUpdater, _simModelManagerFactory, _keyPathMapper);
        }
        protected override void Context()
        {
            _view = A.Fake <IEditTableFormulaView>();
            _tableFormulaToDTOTableFormulaMapper = A.Fake <ITableFormulaToDTOTableFormulaMapper>();
            _context               = A.Fake <IMoBiContext>();
            _tableFormulaTask      = A.Fake <ITableFormulaTask>();
            _applicationController = A.Fake <IMoBiApplicationController>();
            _moBiFormulaTask       = A.Fake <IMoBiFormulaTask>();
            _displayUnitRetriever  = A.Fake <IDisplayUnitRetriever>();

            sut = new EditTableFormulaPresenter(_view, _tableFormulaToDTOTableFormulaMapper, _context, _tableFormulaTask, _applicationController, _moBiFormulaTask, _displayUnitRetriever);
            _commandCollector = A.Fake <ICommandCollector>();
            sut.InitializeWith(_commandCollector);
        }
Пример #17
0
 public NotificationPresenter(INotificationView view, IRegionResolver regionResolver, IUserSettings userSettings,
                              INotificationMessageMapper notificationMessageMapper, IViewItemContextMenuFactory viewItemContextMenuFactory,
                              IMoBiApplicationController applicationController, IMoBiContext context, IDialogCreator dialogCreator)
     : base(view)
 {
     _regionResolver             = regionResolver;
     _userSettings               = userSettings;
     _notificationMessageMapper  = notificationMessageMapper;
     _viewItemContextMenuFactory = viewItemContextMenuFactory;
     _applicationController      = applicationController;
     _context            = context;
     _dialogCreator      = dialogCreator;
     VisibleNotification = _userSettings.VisibleNotification;
 }
Пример #18
0
        protected override void Context()
        {
            _modelConstructor          = A.Fake <IModelConstructor>();
            _buildConfigurationFactory = A.Fake <IBuildConfigurationFactory>();
            _objectPathFactory         = A.Fake <IObjectPathFactory>();
            _context = A.Fake <IMoBiContext>();
            _applicationController          = A.Fake <IMoBiApplicationController>();
            _configurePresenter             = A.Fake <IConfigureSimulationPresenter>();
            _validationVisitor              = A.Fake <IDimensionValidator>();
            _affectedBuildingBlockRetriever = A.Fake <IAffectedBuildingBlockRetriever>();
            _entityPathResolver             = new EntityPathResolverForSpecs();
            A.CallTo(() => _applicationController.Start <IConfigureSimulationPresenter>()).Returns(_configurePresenter);

            sut = new SimulationUpdateTask(_modelConstructor, _buildConfigurationFactory, _context, _applicationController, _validationVisitor, _entityPathResolver, _affectedBuildingBlockRetriever);
        }
 protected override void Context()
 {
     _view = A.Fake <IEditEventBuilderView>();
     _eventBuilderMapper     = A.Fake <IEventBuilderToEventBuilderDTOMapper>();
     _formulaMapper          = A.Fake <IFormulaToFormulaBuilderDTOMapper>();
     _eventBuilderTasks      = A.Fake <IEditTaskFor <IEventBuilder> >();
     _parameterPresenter     = A.Fake <IEditParametersInContainerPresenter>();
     _assingmentBuilderTasks = A.Fake <IInteractionTasksForChildren <IEventBuilder, IEventAssignmentBuilder> >();
     _formulaPresenter       = A.Fake <IEditExplicitFormulaPresenter>();
     _context = A.Fake <IMoBiContext>();
     _selectReferencePresenter = A.Fake <ISelectReferenceAtEventPresenter>();
     _applicationController    = A.Fake <IMoBiApplicationController>();
     _dialogCreator            = A.Fake <IDialogCreator>();
     sut = new EditEventBuilderPresenter(_view, _eventBuilderMapper, _formulaMapper, _eventBuilderTasks, _parameterPresenter, _assingmentBuilderTasks, _formulaPresenter, _context, _selectReferencePresenter, _applicationController, _dialogCreator);
 }
Пример #20
0
        protected override void Context()
        {
            _moBiContext               = A.Fake <IMoBiContext>();
            _eventPublisher            = A.Fake <IEventPublisher>();
            _moBiApplicationController = A.Fake <IMoBiApplicationController>();
            _chartFactory              = A.Fake <IChartFactory>();
            _dialogCreator             = A.Fake <IDialogCreator>();
            _currentProject            = A.Fake <IMoBiProject>();
            _projectRetriever          = A.Fake <IMoBiProjectRetriever>();

            sut = new ChartTasks(_moBiContext, _eventPublisher, _moBiApplicationController,
                                 _chartFactory, _dialogCreator, _projectRetriever);

            A.CallTo(() => _projectRetriever.CurrentProject).Returns(_currentProject);
            A.CallTo(() => _moBiContext.CurrentProject).Returns(_currentProject);
        }
        protected override void Context()
        {
            _chartTemplatePeristor   = A.Fake <IChartTemplatePersistor>();
            _chartFromTeplateService = A.Fake <IChartFromTemplateService>();
            _chartTemplateMapper     = A.Fake <ICurveChartToCurveChartTemplateMapper>();
            _applicationController   = A.Fake <IMoBiApplicationController>();
            _messagePresenter        = A.Fake <IDialogCreator>();
            _cloneManager            = A.Fake <ICloneManagerForModel>();
            _executionContext        = A.Fake <IMoBiContext>();

            _chartUpdater = A.Fake <IChartUpdater>();
            sut           = new ChartTemplatingTask(_chartTemplatePeristor, _chartFromTeplateService, _chartTemplateMapper, _applicationController,
                                                    _messagePresenter, _cloneManager, _executionContext, _chartUpdater);

            _existingTemplates = new List <CurveChartTemplate>();
        }
Пример #22
0
 public MoBiFormulaTask(
     IMoBiContext context,
     IMoBiApplicationController applicationController,
     IFormulaTask formulaTask,
     INameCorrector nameCorrector,
     IDialogCreator dialogCreator,
     IQuantityTask quantityTask,
     IEntitiesInBuildingBlockRetriever <IParameter> parameterInBuildingBlockRetriever)
 {
     _context = context;
     _applicationController             = applicationController;
     _formulaTask                       = formulaTask;
     _nameCorrector                     = nameCorrector;
     _dialogCreator                     = dialogCreator;
     _quantityTask                      = quantityTask;
     _parameterInBuildingBlockRetriever = parameterInBuildingBlockRetriever;
 }
Пример #23
0
        protected override void Context()
        {
            _withFormulaDecoder = new UsingFormulaDecoder();
            _buildingBlock      = A.Fake <IBuildingBlock>();
            A.CallTo(() => _buildingBlock.FormulaCache).Returns(new FormulaCache());
            _context               = A.Fake <IMoBiContext>();
            _dialogCreator         = A.Fake <IDialogCreator>();
            _applicationController = A.Fake <IMoBiApplicationController>();
            _formulaTask           = A.Fake <IFormulaTask>();
            _nameCorrector         = A.Fake <INameCorrector>();
            _quantityTask          = A.Fake <IQuantityTask>();
            _parametersInBuildingBlockRetriever = A.Fake <IEntitiesInBuildingBlockRetriever <IParameter> >();

            sut = new MoBiFormulaTask(_context, _applicationController, _formulaTask, _nameCorrector, _dialogCreator, _quantityTask, _parametersInBuildingBlockRetriever);

            _usingFormulaObject         = A.Fake <IUsingFormula>();
            _usingFormulaObject.Formula = MvExplicitFormula();
        }
 public EditAssignmentBuilderPresenter(IEditEventAssignmentBuilderView view, IEventAssignmentBuilderToEventAssignmentDTOMapper eventAssingnmentToDTOAssignmentMapper,
                                       IEditTaskFor <IEventAssignmentBuilder> editTasksForAssignment, IFormulaToFormulaBuilderDTOMapper formulaToDTOFormulaMapper,
                                       IEditFormulaPresenter editFormulaPresenter, IMoBiContext context,
                                       ISelectReferenceAtEventAssignmentPresenter selectReferencePresenter,
                                       IContextSpecificReferencesRetriever contextSpecificReferencesRetriever, IMoBiApplicationController applicationController) : base(view)
 {
     _contextSpecificReferencesRetriever = contextSpecificReferencesRetriever;
     _applicationController    = applicationController;
     _selectReferencePresenter = selectReferencePresenter;
     _context = context;
     _editFormulaPresenter = editFormulaPresenter;
     _editFormulaPresenter.ReferencePresenter = _selectReferencePresenter;
     _formulaToDTOFormulaMapper = formulaToDTOFormulaMapper;
     _editTasksForAssignment    = editTasksForAssignment;
     _view.SetFormulaView(_editFormulaPresenter.BaseView);
     _eventAssingnmentToDTOAssignmentMapper = eventAssingnmentToDTOAssignmentMapper;
     AddSubPresenters(_editFormulaPresenter, selectReferencePresenter);
 }
Пример #25
0
        protected override void Context()
        {
            _reactionDiagramView       = A.Fake <IReactionDiagramView>();
            _containerBaseLayouter     = A.Fake <IContainerBaseLayouter>();
            _moBiContext               = A.Fake <IMoBiContext>();
            _userSettings              = A.Fake <IUserSettings>();
            _dialogCreator             = A.Fake <IDialogCreator>();
            _moBiApplicationController = A.Fake <IMoBiApplicationController>();
            _diagramTask               = A.Fake <IDiagramTask>();
            _diagramLayoutTask         = A.Fake <IDiagramLayoutTask>();
            _commandCollector          = A.Fake <ICommandCollector>();
            _runOptions          = A.Fake <IStartOptions>();
            _diagramModelFactory = A.Fake <IDiagramModelFactory>();
            sut = new ReactionDiagramPresenter(_reactionDiagramView, _containerBaseLayouter, _moBiContext, _userSettings,
                                               _dialogCreator, _moBiApplicationController, _diagramTask, _diagramLayoutTask, _runOptions, _diagramModelFactory);

            sut.InitializeWith(_commandCollector);
        }
Пример #26
0
 protected override void Context()
 {
     _context                      = A.Fake <IMoBiContext>();
     _serializationTask            = A.Fake <ISerializationTask>();
     _dialogCreator                = A.Fake <IDialogCreator>();
     _buildConfigurationMapper     = A.Fake <IBuildConfigurationToMoBiBuildconfigurationMapper>();
     _nameCorrector                = A.Fake <INameCorrector>();
     _mruProvider                  = A.Fake <IMRUProvider>();
     _spatialStructureFactory      = A.Fake <IMoBiSpatialStructureFactory>();
     _simFactory                   = A.Fake <ISimulationFactory>();
     _cloneManager                 = A.Fake <ICloneManagerForSimulation>();
     _simSettingsFactory           = A.Fake <ISimulationSettingsFactory>();
     _appController                = A.Fake <IMoBiApplicationController>();
     _sbmlTask                     = A.Fake <ISbmlTask>();
     _reactionBuildingBlockFactory = A.Fake <IReactionBuildingBlockFactory>();
     sut = new ProjectTask(_context, _serializationTask, _dialogCreator, _mruProvider, _spatialStructureFactory, new HeavyWorkManagerForSpecs(),
                           _simSettingsFactory, new SimulationLoader(_cloneManager, _nameCorrector, _context), _sbmlTask, _reactionBuildingBlockFactory);
 }
 public InteractionTaskContext(IMoBiContext context, IMoBiApplicationController applicationController,
                               IInteractionTask interactionTask, IActiveSubjectRetriever activeSubjectRetriever, IUserSettings userSettings,
                               IDisplayUnitRetriever displayUnitRetriever, IDialogCreator dialogCreator,
                               ICommandTask commandTask, IObjectTypeResolver objectTypeResolver, IMoBiFormulaTask moBiFormulaTask,
                               IMoBiConfiguration configuration, DirectoryMapSettings directoryMapSettings)
 {
     DialogCreator          = dialogCreator;
     Context                = context;
     ApplicationController  = applicationController;
     InteractionTask        = interactionTask;
     ActiveSubjectRetriever = activeSubjectRetriever;
     UserSettings           = userSettings;
     DisplayUnitRetriever   = displayUnitRetriever;
     _commandTask           = commandTask;
     _objectTypeResolver    = objectTypeResolver;
     _configuration         = configuration;
     _directoryMapSettings  = directoryMapSettings;
     MoBiFormulaTask        = moBiFormulaTask;
 }
Пример #28
0
        protected override void Context()
        {
            _view          = A.Fake <INotificationView>();
            _buildingBlock = A.Fake <IBuildingBlock>();
            _region        = A.Fake <IRegion>();
            _userSettings  = A.Fake <IUserSettings>();
            _viewItemContextMenuFactory       = A.Fake <IViewItemContextMenuFactory>();
            _userSettings.VisibleNotification = _settingsToUse;
            _regionResolver         = A.Fake <IRegionResolver>();
            _buildingBlockRetriever = A.Fake <IBuildingBlockRetriever>();
            _applicationController  = A.Fake <IMoBiApplicationController>();
            _context                   = A.Fake <IMoBiContext>();
            _dialogCreator             = A.Fake <IDialogCreator>();
            _notificationMessageMapper = new NotificationMessageMapper(new ObjectTypeResolver(), _buildingBlockRetriever);
            A.CallTo(() => _regionResolver.RegionWithName(RegionNames.NotificationList)).Returns(_region);
            sut = new NotificationPresenter(_view, _regionResolver, _userSettings, _notificationMessageMapper, _viewItemContextMenuFactory, _applicationController, _context, _dialogCreator);
            A.CallTo(() => _view.BindTo(A <NotifyList <NotificationMessageDTO> > ._))
            .Invokes(x => _allNotifications = x.GetArgument <IEnumerable <NotificationMessageDTO> >(0));

            sut.Initialize();
        }
Пример #29
0
        public EditBuildConfigurationPresenter(IEditBuildConfigurationView view, IMoBiApplicationController applicationController) :
            base(view)
        {
            _applicationController         = applicationController;
            _allSelectionPresenter         = new List <IBuildingBlockSelectionPresenter>();
            _selectSpatialStructure        = createSelectionPresenterFor <IMoBiSpatialStructure>(AppConstants.Captions.SpatialStructure, ApplicationIcons.SpatialStructure);
            _selectMoleculePresenter       = createSelectionPresenterFor <IMoleculeBuildingBlock>(AppConstants.Captions.Molecules, ApplicationIcons.Drug);
            _selectReactionBlock           = createSelectionPresenterFor <IMoBiReactionBuildingBlock>(AppConstants.Captions.Reactions, ApplicationIcons.Reaction);
            _selectPassiveTransport        = createSelectionPresenterFor <IPassiveTransportBuildingBlock>(AppConstants.Captions.PassiveTransports, ApplicationIcons.PassiveTransport);
            _selectObserverBlock           = createSelectionPresenterFor <IObserverBuildingBlock>(AppConstants.Captions.Observers, ApplicationIcons.Observer);
            _selectEventBlock              = createSelectionPresenterFor <IEventGroupBuildingBlock>(AppConstants.Captions.Events, ApplicationIcons.Event);
            _selectSimulationSettingsBlock = createSelectionPresenterFor <ISimulationSettings>(AppConstants.Captions.SimulationSettings, ApplicationIcons.SimulationSettings);
            _selectMoleculeStartValues     = createSelectionPresenterFor <IMoleculeStartValuesBuildingBlock>(AppConstants.Captions.MoleculeStartValues, ApplicationIcons.MoleculeStartValuesFolder, true);
            _selectParameterStartValues    = createSelectionPresenterFor <IParameterStartValuesBuildingBlock>(AppConstants.Captions.ParameterStartValues, ApplicationIcons.ParameterStartValuesFolder, true);
            _view.AddEmptyPlaceHolder();

            _selectMoleculeStartValues.SelectionChanged  += () => MoleculeStartValuesChangedEvent(this, EventArgs.Empty);
            _selectParameterStartValues.SelectionChanged += () => ParameterStartValuesChangedEvent(this, EventArgs.Empty);
            _selectSpatialStructure.SelectionChanged     += () => SpatialStructureChangedEvent(this, EventArgs.Empty);
            _selectMoleculePresenter.SelectionChanged    += () => MoleculeBuildingBlockChangedEvent(this, EventArgs.Empty);
        }
 protected override void Context()
 {
     _applicationController = A.Fake <IMoBiApplicationController>();
     _entityPathResolver    = A.Fake <IEntityPathResolver>();
     sut = new OutputSelectionsRetriever(_applicationController, _entityPathResolver);
 }