protected override void Context()
        {
            _view                           = A.Fake <IIndividualSimulationComparisonView>();
            _chartPresenter                 = A.Fake <IChartEditorAndDisplayPresenter>();
            _pkAnalysisPresenter            = A.Fake <IIndividualPKAnalysisPresenter>();
            _curveNamer                     = A.Fake <ICurveNamer>();
            _chartTask                      = A.Fake <IChartTask>();
            _observedDataTask               = A.Fake <IObservedDataTask>();
            _lazyLoadTask                   = A.Fake <ILazyLoadTask>();
            _chartLayoutTask                = A.Fake <IChartEditorLayoutTask>();
            _chartTemplatingTask            = A.Fake <IChartTemplatingTask>();
            _dataColumnToPathElementsMapper = A.Fake <IDataColumnToPathElementsMapper>();
            _projectRetriever               = A.Fake <IProjectRetriever>();
            _chartPresenterContext          = A.Fake <ChartPresenterContext>();
            _chartUpdateTask                = A.Fake <IChartUpdater>();
            _userSettings                   = A.Fake <IUserSettings>();
            A.CallTo(() => _chartPresenterContext.EditorAndDisplayPresenter).Returns(_chartPresenter);
            A.CallTo(() => _chartPresenterContext.CurveNamer).Returns(_curveNamer);
            A.CallTo(() => _chartPresenterContext.EditorLayoutTask).Returns(_chartLayoutTask);
            A.CallTo(() => _chartPresenterContext.TemplatingTask).Returns(_chartTemplatingTask);
            A.CallTo(() => _chartPresenterContext.ProjectRetriever).Returns(_projectRetriever);

            sut = new IndividualSimulationComparisonPresenter(_view, _chartPresenterContext, _pkAnalysisPresenter,
                                                              _chartTask, _observedDataTask, _lazyLoadTask, _chartTemplatingTask, _chartUpdateTask, _userSettings);
        }
Example #2
0
        protected override void Context()
        {
            _treeNodeFactory  = A.Fake <ITreeNodeFactory>();
            _projectRetriever = A.Fake <IProjectRetriever>();
            _observedDataTask = A.Fake <IObservedDataTask>();
            sut = new ObservedDataInExplorerPresenter(_projectRetriever, _treeNodeFactory, _observedDataTask);

            _explorerPresenter       = A.Fake <IExplorerPresenter>();
            _classificationPresenter = A.Fake <IClassificationPresenter>();
            _explorerView            = A.Fake <IExplorerView>();

            A.CallTo(() => _explorerPresenter.BaseView).Returns(_explorerView);

            _rootNodeObservedDataFolder = new RootNodeType("ObservedData", ApplicationIcons.ObservedDataFolder, ClassificationType.ObservedData);
            _rootNodeIndividualFolder   = new RootNodeType("Individual", ApplicationIcons.IndividualFolder);
            _observationRootNode        = new RootNode(_rootNodeObservedDataFolder);
            _individualRootNode         = new RootNode(_rootNodeIndividualFolder);

            sut.InitializeWith(_explorerPresenter, _classificationPresenter, _rootNodeObservedDataFolder);
            _project = A.Fake <IProject>();

            A.CallTo(() => _explorerPresenter.NodeByType(_rootNodeObservedDataFolder)).Returns(_observationRootNode);
            A.CallTo(() => _explorerView.TreeView.NodeById(_rootNodeObservedDataFolder.Id)).Returns(_observationRootNode);
            A.CallTo(() => _explorerView.AddNode(A <ITreeNode> ._)).ReturnsLazily(s => s.Arguments[0].DowncastTo <ITreeNode>());
        }
        protected override void Context()
        {
            _view = A.Fake <ISimulationTimeProfileChartView>();
            _chartDisplayPresenter          = A.Fake <IChartDisplayPresenter>();
            _pkAnalysisPresenter            = A.Fake <IIndividualPKAnalysisPresenter>();
            _chartEditorPresenter           = A.Fake <IChartEditorPresenter>();
            _chartEditorAndDisplayPresenter = A.Fake <IChartEditorAndDisplayPresenter>();
            A.CallTo(() => _chartEditorAndDisplayPresenter.Control).Returns(new Control());
            _dataColumnToPathElementsMapper = A.Fake <IDataColumnToPathElementsMapper>();
            _quantityDisplayPathMapper      = A.Fake <IQuantityPathToQuantityDisplayPathMapper>();
            _chartTask        = A.Fake <IChartTask>();
            _observedDataTask = A.Fake <IObservedDataTask>();
            _chartLayoutTask  = A.Fake <IChartEditorLayoutTask>();
            _allTemplates     = new List <ChartEditorLayoutTemplate>();
            A.CallTo(() => _chartLayoutTask.AllTemplates()).Returns(_allTemplates);
            A.CallTo(() => _chartEditorAndDisplayPresenter.EditorPresenter).Returns(_chartEditorPresenter);
            A.CallTo(() => _chartEditorAndDisplayPresenter.DisplayPresenter).Returns(_chartDisplayPresenter);
            A.CallTo(() => _chartEditorPresenter.GetDataBrowserColumnSettings(A <BrowserColumns> .Ignored)).Returns(new GridColumnSettings(BrowserColumns.Origin.ToString()));
            A.CallTo(() => _chartEditorPresenter.GetAxisOptionsColumnSettings(A <AxisOptionsColumns> .Ignored)).Returns(new GridColumnSettings(AxisOptionsColumns.AxisType.ToString()));
            A.CallTo(() => _chartEditorPresenter.GetCurveOptionsColumnSettings(A <CurveOptionsColumns> .Ignored)).Returns(new GridColumnSettings(CurveOptionsColumns.xData.ToString()));
            _chartTemplatingTask   = A.Fake <IChartTemplatingTask>();
            _projectRetriever      = A.Fake <IProjectRetriever>();
            _userSettings          = A.Fake <IUserSettings>();
            _chartPresenterContext = A.Fake <ChartPresenterContext>();

            A.CallTo(() => _chartPresenterContext.ChartEditorAndDisplayPresenter).Returns(_chartEditorAndDisplayPresenter);
            A.CallTo(() => _chartPresenterContext.QuantityDisplayPathMapper).Returns(_quantityDisplayPathMapper);
            A.CallTo(() => _chartPresenterContext.EditorLayoutTask).Returns(_chartLayoutTask);
            A.CallTo(() => _chartPresenterContext.TemplatingTask).Returns(_chartTemplatingTask);
            A.CallTo(() => _chartPresenterContext.ProjectRetriever).Returns(_projectRetriever);

            sut = new SimulationTimeProfileChartPresenter(_view, _chartPresenterContext, _pkAnalysisPresenter, _chartTask, _observedDataTask, _chartTemplatingTask, _userSettings);
        }
 public RenameBuildingBlockTask(
     IBuildingBlockTask buildingBlockTask,
     IBuildingBlockInProjectManager buildingBlockInProjectManager,
     IApplicationController applicationController,
     ILazyLoadTask lazyLoadTask, IContainerTask containerTask,
     IHeavyWorkManager heavyWorkManager,
     IRenameAbsolutePathVisitor renameAbsolutePathVisitor,
     IObjectReferencingRetriever objectReferencingRetriever,
     IProjectRetriever projectRetriever,
     IParameterIdentificationSimulationPathUpdater simulationPathUpdater,
     IDataRepositoryNamer dataRepositoryNamer,
     ICurveNamer curveNamer,
     IExpressionProfileUpdater expressionProfileUpdater)
 {
     _buildingBlockTask             = buildingBlockTask;
     _buildingBlockInProjectManager = buildingBlockInProjectManager;
     _applicationController         = applicationController;
     _lazyLoadTask               = lazyLoadTask;
     _containerTask              = containerTask;
     _heavyWorkManager           = heavyWorkManager;
     _renameAbsolutePathVisitor  = renameAbsolutePathVisitor;
     _objectReferencingRetriever = objectReferencingRetriever;
     _projectRetriever           = projectRetriever;
     _simulationPathUpdater      = simulationPathUpdater;
     _dataRepositoryNamer        = dataRepositoryNamer;
     _curveNamer = curveNamer;
     _expressionProfileUpdater = expressionProfileUpdater;
 }
        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);
        }
 public JournalSessionConnector(IDialogCreator dialogCreator, IJournalLoader journalLoader, IJournalSession journalSession, IProjectRetriever projectRetriever)
 {
     _dialogCreator    = dialogCreator;
     _journalLoader    = journalLoader;
     _journalSession   = journalSession;
     _projectRetriever = projectRetriever;
 }
Example #7
0
        protected override void Context()
        {
            _project          = new PKSimProject();
            _projectRetriever = A.Fake <IProjectRetriever>();
            A.CallTo(() => _projectRetriever.CurrentProject).Returns(_project);

            _compound1          = A.Fake <Compound>();
            _compound1.IsLoaded = false;
            _compound2          = new Compound {
                IsLoaded = true
            };
            _compound2.AddProcess(new EnzymaticProcess {
                MoleculeName = "A", Name = "P1"
            });
            _compound2.AddProcess(new EnzymaticProcess {
                MoleculeName = "C", Name = "P2"
            });
            _compound2.AddProcess(new EnzymaticProcess {
                MoleculeName = "B", Name = "P3"
            });

            _individual1          = A.Fake <Individual>();
            _individual1.IsLoaded = false;
            _individual2          = new Individual {
                IsLoaded = true
            };
            _individual2.AddMolecule(new IndividualEnzyme().WithName("B"));
            _individual2.AddMolecule(new IndividualEnzyme().WithName("D"));

            _project.AddBuildingBlock(_compound1);
            _project.AddBuildingBlock(_compound2);
            _project.AddBuildingBlock(_individual1);
            _project.AddBuildingBlock(_individual2);
            sut = new UsedMoleculeRepository(_projectRetriever);
        }
Example #8
0
        protected override void Context()
        {
            _applicationController            = A.Fake <IApplicationController>();
            _buildingBlockTask                = A.Fake <IBuildingBlockTask>();
            _buildingBlockInSimulationManager = A.Fake <IBuildingBlockInSimulationManager>();
            _lazyloadTask               = A.Fake <ILazyLoadTask>();
            _heavyWorkManager           = A.Fake <IHeavyWorkManager>();
            _containerTask              = A.Fake <IContainerTask>();
            _objectReferencingRetriever = A.Fake <IObjectReferencingRetriever>();
            _projectRetriever           = A.Fake <IProjectRetriever>();
            _renameAbsolutePathVisitor  = new RenameAbsolutePathVisitor();
            _objectPathFactory          = new ObjectPathFactoryForSpecs();
            _parameterIdentificationSimulationPathUpdater = A.Fake <IParameterIdentificationSimulationPathUpdater>();
            _dataRepositoryNamer = A.Fake <IDataRepositoryNamer>();
            _curveNamer          = A.Fake <ICurveNamer>();

            sut = new RenameBuildingBlockTask(_buildingBlockTask, _buildingBlockInSimulationManager, _applicationController, _lazyloadTask,
                                              _containerTask, _heavyWorkManager, _renameAbsolutePathVisitor, _objectReferencingRetriever, _projectRetriever, _parameterIdentificationSimulationPathUpdater, _dataRepositoryNamer, _curveNamer);

            _initialSimulationName      = "S";
            _individualSimulation       = new IndividualSimulation().WithName(_initialSimulationName);
            _individualSimulation.Model = new Model().WithName(_initialSimulationName);
            _simulation = _individualSimulation;
            _root       = new Container().WithName(_initialSimulationName);
            _individualSimulation.Model.Root = _root;
        }
Example #9
0
        protected override void Context()
        {
            _view = A.Fake <ISimulationTimeProfileChartView>();
            _chartDisplayPresenter          = A.Fake <IChartDisplayPresenter>();
            _pkAnalysisPresenter            = A.Fake <IIndividualPKAnalysisPresenter>();
            _chartEditorPresenter           = A.Fake <IChartEditorPresenter>();
            _chartEditorAndDisplayPresenter = A.Fake <IChartEditorAndDisplayPresenter>();
            _dataColumnToPathElementsMapper = A.Fake <IDataColumnToPathElementsMapper>();
            _chartTask                = A.Fake <IChartTask>();
            _dimensionFactory         = A.Fake <IDimensionFactory>();
            _observedDataTask         = A.Fake <IObservedDataTask>();
            _chartLayoutTask          = A.Fake <IChartEditorLayoutTask>();
            _chartUpdateTask          = A.Fake <IChartUpdater>();
            _presentationSettingsTask = A.Fake <IPresentationSettingsTask>();
            _allTemplates             = new List <ChartEditorLayoutTemplate>();
            A.CallTo(() => _chartLayoutTask.AllTemplates()).Returns(_allTemplates);
            A.CallTo(() => _chartEditorAndDisplayPresenter.EditorPresenter).Returns(_chartEditorPresenter);
            A.CallTo(() => _chartEditorAndDisplayPresenter.DisplayPresenter).Returns(_chartDisplayPresenter);
            A.CallTo(() => _chartEditorPresenter.ColumnSettingsFor(A <BrowserColumns> ._)).Returns(new GridColumnSettings(BrowserColumns.Origin.ToString()));
            A.CallTo(() => _chartEditorPresenter.ColumnSettingsFor(A <AxisOptionsColumns> ._)).Returns(new GridColumnSettings(AxisOptionsColumns.AxisType.ToString()));
            A.CallTo(() => _chartEditorPresenter.ColumnSettingsFor(A <CurveOptionsColumns> ._)).Returns(new GridColumnSettings(CurveOptionsColumns.xData.ToString()));
            _chartTemplatingTask   = A.Fake <IChartTemplatingTask>();
            _projectRetriever      = A.Fake <IProjectRetriever>();
            _chartPresenterContext = new ChartPresenterContext(_chartEditorAndDisplayPresenter, _curveNamer, _dataColumnToPathElementsMapper, _chartTemplatingTask, _presentationSettingsTask, _chartLayoutTask, _projectRetriever, _dimensionFactory);
            _curveNamer            = A.Fake <ICurveNamer>();

            sut = new SimulationTimeProfileChartPresenter(_view, _chartPresenterContext, _pkAnalysisPresenter, _chartTask, _observedDataTask, _chartTemplatingTask, _chartUpdateTask);
        }
 public ClassificationPresenter(IClassificationTypeToRootNodeTypeMapper rootNodeTypeMapper,
                                IApplicationController applicationController, IProjectRetriever projectRetriever)
 {
     _rootNodeTypeMapper    = rootNodeTypeMapper;
     _applicationController = applicationController;
     _projectRetriever      = projectRetriever;
 }
Example #11
0
 public JournalExportTask(IContentLoader contentLoader, IDialogCreator dialogCreator, IProjectRetriever projectRetriever,
                          IRichEditDocumentServerFactory richEditDocumentServerFactory)
 {
     _contentLoader    = contentLoader;
     _dialogCreator    = dialogCreator;
     _projectRetriever = projectRetriever;
     _richEditDocumentServerFactory = richEditDocumentServerFactory;
 }
Example #12
0
 protected override void Context()
 {
     _projectRetriever        = A.Fake <IProjectRetriever>();
     _exportChartToPDFCommand = A.Fake <ExportChartToPDFCommand>();
     _container = A.Fake <IContainer>();
     A.CallTo(() => _container.Resolve <ExportChartToPDFCommand>()).Returns(_exportChartToPDFCommand);
     sut = new ChartTask(_projectRetriever, _container);
 }
 public ParameterIdentificationContentLoader(IParameterIdentificationMetaDataContentQuery parameterIdentificationMetaDataContentQuery, ICompressedSerializationManager compressedSerializationManager,
                                             IProjectRetriever projectRetriever, ISerializationContextFactory serializationContextFactory)
 {
     _parameterIdentificationMetaDataContentQuery = parameterIdentificationMetaDataContentQuery;
     _compressedSerializationManager = compressedSerializationManager;
     _projectRetriever            = projectRetriever;
     _serializationContextFactory = serializationContextFactory;
 }
Example #14
0
 protected override void Context()
 {
     _projectChangedNotifier  = A.Fake <IProjectChangedNotifier>();
     _chartTemplatingTask     = A.Fake <IChartTemplatingTask>();
     _projectRetriever        = A.Fake <IProjectRetriever>();
     _exportChartToPDFCommand = A.Fake <ExportChartToPDFCommand>();
     sut = new ChartTask(_projectChangedNotifier, _projectRetriever, _exportChartToPDFCommand);
 }
Example #15
0
 public SensitivityAnalysisContentLoader(ISensitivityAnalysisMetaDataContentQuery sensitivityAnalysisMetaDataContentQuery, ICompressedSerializationManager compressedSerializationManager,
                                         IProjectRetriever projectRetriever, ISerializationContextFactory serializationContextFactory)
 {
     _sensitivityAnalysisMetaDataContentQuery = sensitivityAnalysisMetaDataContentQuery;
     _compressedSerializationManager          = compressedSerializationManager;
     _projectRetriever            = projectRetriever;
     _serializationContextFactory = serializationContextFactory;
 }
        protected override void Context()
        {
            _journalSession   = A.Fake <IJournalSession>();
            _journalLoader    = A.Fake <IJournalLoader>();
            _dialogCreator    = A.Fake <IDialogCreator>();
            _projectRetriever = A.Fake <IProjectRetriever>();

            sut = new JournalSessionConnector(_dialogCreator, _journalLoader, _journalSession, _projectRetriever);
        }
Example #17
0
 public SimulationSettingsRetriever(IApplicationController applicationController, IProjectRetriever projectRetriever,
                                    IEntityPathResolver entityPathResolver, IKeyPathMapper keyPathMapper, ICoreUserSettings userSettings)
 {
     _applicationController = applicationController;
     _projectRetriever      = projectRetriever;
     _entityPathResolver    = entityPathResolver;
     _keyPathMapper         = keyPathMapper;
     _userSettings          = userSettings;
 }
 public SimulationRepository(IModelConstructor modelConstructor, ModelHelperForSpecs modelHelper, IEntityPathResolver entityPathResolver, IProjectRetriever projectRetriever, IDimensionFactory dimensionFactory)
 {
     _modelConstructor   = modelConstructor;
     _modelHelper        = modelHelper;
     _entityPathResolver = entityPathResolver;
     _projectRetriever   = projectRetriever;
     _dimensionFactory   = dimensionFactory;
     _simulation         = createSimulation();
 }
Example #19
0
 public SimulationTransferLoader(
     ISimulationPersistor simulationPersister,
     IProjectRetriever projectRetriever,
     IJournalTask journalTask
     )
 {
     _simulationPersister = simulationPersister;
     _projectRetriever    = projectRetriever;
     _journalTask         = journalTask;
 }
Example #20
0
 protected override void Context()
 {
     _projectRetriever = A.Fake <IProjectRetriever>();
     _project          = A.Fake <PKSimProject>();
     _individual1      = new Individual();
     _individual2      = new Individual();
     A.CallTo(() => _projectRetriever.CurrentProject).Returns(_project);
     A.CallTo(() => _project.All <Individual>()).Returns(new[] { _individual1, _individual2 });
     sut = new BuildingBlockRepository(_projectRetriever);
 }
 protected override void Context()
 {
     _configuration      = A.Fake <IPKSimConfiguration>();
     _projectRetriever   = A.Fake <IProjectRetriever>();
     _entityPathResolver = A.Fake <IEntityPathResolver>();
     _lazyLoadTask       = A.Fake <ILazyLoadTask>();
     _population         = A.Fake <Population>().WithName("MyPop");
     A.CallTo(() => _population.AllCovariateNames).Returns(new[] { CoreConstants.Covariates.GENDER, CoreConstants.Covariates.RACE });
     sut = new PopulationExportTask(_entityPathResolver, _lazyLoadTask, _projectRetriever, _configuration);
 }
Example #22
0
        protected override void Context()
        {
            _populationSimulationSettingsPresenter = A.Fake <IPopulationSimulationSettingsPresenter>();
            _applicationController = A.Fake <IApplicationController>();
            _projectRetriever      = A.Fake <IProjectRetriever>();
            _project    = A.Fake <IPKSimProject>();
            _compound1  = A.Fake <Compound>();
            _individual = A.Fake <Individual>();
            _human      = new Species().WithName(CoreConstants.Species.Human);
            _rat        = new Species().WithName(CoreConstants.Species.Rat);
            _mouse      = new Species().WithName(CoreConstants.Species.Mouse);
            A.CallTo(() => _individual.Species).Returns(_human);
            _populationSimulation = A.Fake <PopulationSimulation>();
            A.CallTo(() => _populationSimulation.Compounds).Returns(new[] { _compound1 });
            A.CallTo(() => _populationSimulation.Individual).Returns(_individual);
            _keyPathMapper      = A.Fake <IKeyPathMapper>();
            _entityPathResolver = A.Fake <IEntityPathResolver>();
            _userSettings       = A.Fake <ICoreUserSettings>();
            _originalSettings   = new OutputSelections();
            A.CallTo(() => _populationSimulation.OutputSelections).Returns(_originalSettings);

            _populationSimulation.Model      = new Model();
            _populationSimulation.Model.Root = new Container();
            _compound1.Name = "DRUG";
            var organism = new Organism();
            var peripheralVenousBlood         = new Container().WithName(CoreConstants.Organ.PeripheralVenousBlood);
            var venousBlood                   = new Container().WithName(CoreConstants.Organ.VenousBlood);
            var venousBloodPlasma             = new Container().WithName(CoreConstants.Compartment.Plasma).WithParentContainer(venousBlood);
            var drugPeripheralBlood           = new Container().WithName(_compound1.Name);
            var drugVenousBlood               = new Container().WithName(_compound1.Name);
            var periperhalVenousBloodObserver = new Observer {
                Name = CoreConstants.Observer.PLASMA_PERIPHERAL_VENOUS_BLOOD
            };

            drugPeripheralBlood.Add(periperhalVenousBloodObserver);
            var venousBloodObserver = new Observer {
                Name = CoreConstants.Observer.CONCENTRATION
            };

            drugVenousBlood.Add(venousBloodObserver);
            peripheralVenousBlood.Add(drugPeripheralBlood);
            venousBloodPlasma.Add(drugVenousBlood);
            organism.Add(peripheralVenousBlood);
            organism.Add(venousBlood);

            _populationSimulation.Model.Root.Add(organism);


            A.CallTo(() => _projectRetriever.CurrentProject).Returns(_project);
            A.CallTo(() => _applicationController.Start <ISimulationOutputSelectionPresenter <PopulationSimulation> >()).Returns(_populationSimulationSettingsPresenter);
            sut = new SimulationSettingsRetriever(_applicationController, _projectRetriever, _entityPathResolver, _keyPathMapper, _userSettings);

            A.CallTo(() => _entityPathResolver.PathFor(periperhalVenousBloodObserver)).Returns("PERIPHERAL_OBSERVER");
            A.CallTo(() => _entityPathResolver.PathFor(venousBloodObserver)).Returns("VENOUS_BLOOD_OBSERVER");
        }
Example #23
0
 protected override void Context()
 {
     _projectRetriever          = A.Fake <IProjectRetriever>();
     _historyManagerRetriever   = A.Fake <IHistoryManagerRetriever>();
     _dialogCreator             = A.Fake <IDialogCreator>();
     _commandExecuter           = A.Fake <SQLiteProjectCommandExecuter>();
     _eventPublisher            = A.Fake <IEventPublisher>();
     _historyManager            = A.Fake <IHistoryManager>();
     _commandMetaDataRepository = A.Fake <ICommandMetaDataRepository>();
     sut = new HistoryTask(_projectRetriever, _historyManagerRetriever, _dialogCreator, _commandExecuter, _eventPublisher, _commandMetaDataRepository);
 }
 public SimulationTransferLoader(IDimensionFactory dimensionFactory, IObjectBaseFactory objectBaseFactory,
                                 ISimulationPersistor simulationPersister, IProjectRetriever projectRetriever, IJournalTask journalTask,
                                 ICloneManagerForModel cloneManagerForModel)
 {
     _dimensionFactory     = dimensionFactory;
     _objectBaseFactory    = objectBaseFactory;
     _simulationPersister  = simulationPersister;
     _projectRetriever     = projectRetriever;
     _journalTask          = journalTask;
     _cloneManagerForModel = cloneManagerForModel;
 }
 public SimulationExplorerPresenter(ISimulationExplorerView view, ITreeNodeFactory treeNodeFactory, ITreeNodeContextMenuFactory treeNodeContextMenuFactory,
                                    IMultipleTreeNodeContextMenuFactory multipleTreeNodeContextMenuFactory, IBuildingBlockIconRetriever buildingBlockIconRetriever,
                                    IRegionResolver regionResolver, IBuildingBlockTask buildingBlockTask, IBuildingBlockInSimulationManager buildingBlockInSimulationManager,
                                    IToolTipPartCreator toolTipPartCreator, IProjectRetriever projectRetriever, IClassificationPresenter classificationPresenter, IParameterAnalysablesInExplorerPresenter parameterAnalysablesInExplorerPresenter, IObservedDataInSimulationManager observedDataInSimulationManager) :
     base(view, treeNodeFactory, treeNodeContextMenuFactory, multipleTreeNodeContextMenuFactory, buildingBlockIconRetriever, regionResolver, buildingBlockTask, RegionNames.SimulationExplorer, projectRetriever, classificationPresenter, toolTipPartCreator)
 {
     _buildingBlockInSimulationManager        = buildingBlockInSimulationManager;
     _parameterAnalysablesInExplorerPresenter = parameterAnalysablesInExplorerPresenter;
     _observedDataInSimulationManager         = observedDataInSimulationManager;
     _parameterAnalysablesInExplorerPresenter.InitializeWith(this, classificationPresenter);
 }
 protected AbstractExplorerPresenter(TView view, IRegionResolver regionResolver,
                                     IClassificationPresenter classificationPresenter, IToolTipPartCreator toolTipPartCreator, RegionName regionName, IProjectRetriever projectRetriever)
     : base(view)
 {
     _regionResolver          = regionResolver;
     _toolTipPartCreator      = toolTipPartCreator;
     _regionName              = regionName;
     _projectRetriever        = projectRetriever;
     _classificationPresenter = classificationPresenter;
     _classificationPresenter.InitializeWith(this);
 }
 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);
 }
Example #28
0
        protected override void Context()
        {
            _projectRetriever = A.Fake <IProjectRetriever>();
            _view             = A.Fake <IObjectBaseView>();
            _project          = A.Fake <IProject>();
            A.CallTo(() => _projectRetriever.CurrentProject).Returns(_project);
            sut = new NameClassificationPresenter(_view, _projectRetriever);

            A.CallTo(() => _view.BindTo(A <ObjectBaseDTO> ._))
            .Invokes(x => _dto = x.GetArgument <ObjectBaseDTO>(0));
        }
Example #29
0
 protected ExplorerPresenter(TView view, ITreeNodeFactory treeNodeFactory, ITreeNodeContextMenuFactory treeNodeContextMenuFactory,
                             IMultipleTreeNodeContextMenuFactory multipleTreeNodeContextMenuFactory,
                             IBuildingBlockIconRetriever buildingBlockIconRetriever, IRegionResolver regionResolver, IBuildingBlockTask buildingBlockTask, RegionName regionName,
                             IProjectRetriever projectRetriever, IClassificationPresenter classificationPresenter, IToolTipPartCreator toolTipPartCreator) :
     base(view, regionResolver, classificationPresenter, toolTipPartCreator, regionName, projectRetriever)
 {
     _treeNodeFactory                    = treeNodeFactory;
     _treeNodeContextMenuFactory         = treeNodeContextMenuFactory;
     _multipleTreeNodeContextMenuFactory = multipleTreeNodeContextMenuFactory;
     _buildingBlockIconRetriever         = buildingBlockIconRetriever;
     _buildingBlockTask                  = buildingBlockTask;
 }
Example #30
0
 public PopulationExportTask(
     IEntityPathResolver entityPathResolver,
     ILazyLoadTask lazyLoadTask,
     IProjectRetriever projectRetriever,
     IPKSimConfiguration configuration
     )
 {
     _entityPathResolver = entityPathResolver;
     _lazyLoadTask       = lazyLoadTask;
     _projectRetriever   = projectRetriever;
     _configuration      = configuration;
 }