protected override void Context()
        {
            _projectRetriever = A.Fake <IProjectRetriever>();
            _view             = A.Fake <IBuildingBlockExplorerView>();
            A.CallTo(() => _view.TreeView).Returns(A.Fake <IUxTreeView>());
            _context                            = A.Fake <IMoBiContext>();
            _regionResolver                     = A.Fake <IRegionResolver>();
            _treeNodeFactory                    = A.Fake <ITreeNodeFactory>();
            _viewItemContextMenuFactory         = A.Fake <IViewItemContextMenuFactory>();
            _classificationPresenter            = A.Fake <IClassificationPresenter>();
            _toolTipPartCreator                 = A.Fake <IToolTipPartCreator>();
            _observedDataInExplorerPresenter    = A.Fake <IObservedDataInExplorerPresenter>();
            _multipleTreeNodeContextMenuFactory = A.Fake <IMultipleTreeNodeContextMenuFactory>();
            _editBuildingBlockStarter           = A.Fake <IEditBuildingBlockStarter>();

            sut = new BuildingBlockExplorerPresenter(_view, _regionResolver, _treeNodeFactory, _viewItemContextMenuFactory, _context,
                                                     _classificationPresenter, _toolTipPartCreator, _observedDataInExplorerPresenter, _multipleTreeNodeContextMenuFactory, _projectRetriever, _editBuildingBlockStarter);

            _nodeSpatialStructureFolder     = setupNode(MoBiRootNodeTypes.SpatialStructureFolder);
            _nodeMoleculeFolder             = setupNode(MoBiRootNodeTypes.MoleculeFolder);
            _nodeReactionFolder             = setupNode(MoBiRootNodeTypes.ReactionFolder);
            _nodePassiveTransportFolder     = setupNode(MoBiRootNodeTypes.PassiveTransportFolder);
            _nodeObserverFolder             = setupNode(MoBiRootNodeTypes.ObserverFolder);
            _nodeEventFolder                = setupNode(MoBiRootNodeTypes.EventFolder);
            _nodeSimulationSettingsFolder   = setupNode(MoBiRootNodeTypes.SimulationSettingsFolder);
            _nodeMoleculeStartValuesFolder  = setupNode(MoBiRootNodeTypes.MoleculeStartValuesFolder);
            _nodeParameterStartValuesFolder = setupNode(MoBiRootNodeTypes.ParameterStartValuesFolder);
            _nodeObservedDataFolder         = setupNode(RootNodeTypes.ObservedDataFolder);
        }
 protected override void Context()
 {
     _projectRetriever                        = A.Fake <IProjectRetriever>();
     _view                                    = A.Fake <ISimulationExplorerView>();
     _regionResolver                          = A.Fake <IRegionResolver>();
     _treeNodeFactory                         = A.Fake <ITreeNodeFactory>();
     _viewItemContextMenuFactory              = A.Fake <IViewItemContextMenuFactory>();
     _context                                 = A.Fake <IMoBiContext>();
     _classificationPresenter                 = A.Fake <IClassificationPresenter>();
     _toolTipPartCreator                      = A.Fake <IToolTipPartCreator>();
     _multipleTreeNodeContextMenuFactory      = A.Fake <IMultipleTreeNodeContextMenuFactory>();
     _interactionTaskForSimulation            = A.Fake <IInteractionTasksForSimulation>();
     _parameterAnalysablesInExplorerPresenter = A.Fake <IParameterAnalysablesInExplorerPresenter>();
     sut = new SimulationExplorerPresenter(_view, _regionResolver, _treeNodeFactory, _viewItemContextMenuFactory, _context,
                                           _classificationPresenter, _toolTipPartCreator, _multipleTreeNodeContextMenuFactory, _projectRetriever, _interactionTaskForSimulation, _parameterAnalysablesInExplorerPresenter);
 }
 public SimulationExplorerPresenter(ISimulationExplorerView view, IRegionResolver regionResolver, ITreeNodeFactory treeNodeFactory, IViewItemContextMenuFactory viewItemContextMenuFactory,
                                    IMoBiContext context, IClassificationPresenter classificationPresenter,
                                    IToolTipPartCreator toolTipPartCreator, IMultipleTreeNodeContextMenuFactory multipleTreeNodeContextMenuFactory,
                                    IProjectRetriever projectRetriever, IInteractionTasksForSimulation interactionTasksForSimulation, IParameterAnalysablesInExplorerPresenter parameterAnalysablesInExplorerPresenter) :
     base(view, regionResolver, treeNodeFactory, viewItemContextMenuFactory, context, RegionNames.SimulationExplorer,
          classificationPresenter, toolTipPartCreator, multipleTreeNodeContextMenuFactory, projectRetriever)
 {
     _interactionTasksForSimulation           = interactionTasksForSimulation;
     _parameterAnalysablesInExplorerPresenter = parameterAnalysablesInExplorerPresenter;
     _parameterAnalysablesInExplorerPresenter.InitializeWith(this, classificationPresenter);
 }
 public BuildingBlockExplorerPresenter(IBuildingBlockExplorerView view, IRegionResolver regionResolver, ITreeNodeFactory treeNodeFactory,
                                       IViewItemContextMenuFactory viewItemContextMenuFactory, IMoBiContext context, IClassificationPresenter classificationPresenter,
                                       IToolTipPartCreator toolTipPartCreator, IObservedDataInExplorerPresenter observedDataInExplorerPresenter,
                                       IMultipleTreeNodeContextMenuFactory multipleTreeNodeContextMenuFactory, IProjectRetriever projectRetriever, IEditBuildingBlockStarter editBuildingBlockStarter)
     : base(view, regionResolver, treeNodeFactory, viewItemContextMenuFactory, context, RegionNames.BuildingBlockExplorer,
            classificationPresenter, toolTipPartCreator, multipleTreeNodeContextMenuFactory, projectRetriever)
 {
     _observedDataInExplorerPresenter = observedDataInExplorerPresenter;
     _editBuildingBlockStarter        = editBuildingBlockStarter;
     _observedDataInExplorerPresenter.InitializeWith(this, classificationPresenter, RootNodeTypes.ObservedDataFolder);
 }