private ITreeNode addClassifiableSensitivityAnalysisToTree(ITreeNode <IClassification> classificationNode, ClassifiableSensitivityAnalysis classifiableSensitivityAnalysis) { var sensitivityAnalysisNode = _treeNodeFactory.CreateFor(classifiableSensitivityAnalysis) .WithIcon(ApplicationIcons.SensitivityAnalysis); _explorerPresenter.AddClassifiableNodeToView(sensitivityAnalysisNode, classificationNode); return(sensitivityAnalysisNode); }
protected override void Context() { _view = A.Fake <IParameterIdentificationSimulationSelectionView>(); _treeNodeFactory = A.Fake <ITreeNodeFactory>(); _applicationController = A.Fake <IApplicationController>(); _lazyLoadTask = A.Fake <ILazyLoadTask>(); _treeNodeContextMenuFactory = A.Fake <ITreeNodeContextMenuFactory>(); _multipleTreeNodeContextMenuFactory = A.Fake <IMultipleTreeNodeContextMenuFactory>(); _dialogCreator = A.Fake <IDialogCreator>(); _parameterIdentificationTask = A.Fake <IParameterIdentificationTask>(); sut = new ParameterIdentificationSimulationSelectionPresenter(_view, _treeNodeFactory, _applicationController, _lazyLoadTask, _treeNodeContextMenuFactory, _multipleTreeNodeContextMenuFactory, _dialogCreator, _parameterIdentificationTask); _parameterIdentification = new ParameterIdentification(); _simulation = A.Fake <ISimulation>().WithId("Id").WithName("S"); _parameterIdentification.AddSimulation(_simulation); _outputMapping = new OutputMapping { OutputSelection = new SimulationQuantitySelection(_simulation, new QuantitySelection("PATH", QuantityType.Drug)) }; _parameterIdentification.AddOutputMapping(_outputMapping); _simulationNode = A.Fake <ITreeNode>(); A.CallTo(() => _treeNodeFactory.CreateFor(_simulation)).Returns(_simulationNode); _simulationSelectionPresenter = A.Fake <ISelectionSimulationPresenter>(); A.CallTo(() => _applicationController.Start <ISelectionSimulationPresenter>()).Returns(_simulationSelectionPresenter); sut.EditParameterIdentification(_parameterIdentification); }
private void addSimulationToView(ISimulation simulation) { _lazyLoadTask.Load(simulation); var simulationNode = _treeNodeFactory.CreateFor(simulation); _view.AddNode(simulationNode); }
private ITreeNode addClassifiableObservedDataToTree(ITreeNode <IClassification> classificationNode, ClassifiableObservedData classifiableObservedData) { var leafNode = _treeNodeFactory .CreateFor(classifiableObservedData) .WithIcon(ApplicationIcons.ObservedData) .Under(classificationNode); view.AddNode(classificationNode); return(leafNode); }