public PopulationAnalysisOutputSelectionPresenter( IPopulationAnalysisOutputSelectionView view, IQuantityListPresenter allOutputsPresenter, IPopulationAnalysisOutputFieldsPresenter selectedOutputsPresenter, IPopulationAnalysisStatisticsSelectionPresenter statisticsSelectionPresenter, IEntitiesInContainerRetriever outputsRetriever, IEventPublisher eventPublisher, IDimensionRepository dimensionRepository, IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper) : base(view) { _allOutputsPresenter = allOutputsPresenter; _selectedOutputsPresenter = selectedOutputsPresenter; _statisticsSelectionPresenter = statisticsSelectionPresenter; _outputsRetriever = outputsRetriever; _eventPublisher = eventPublisher; _quantityDisplayPathMapper = quantityDisplayPathMapper; _timeDimension = dimensionRepository.Time; AddSubPresenters(allOutputsPresenter, _selectedOutputsPresenter, _statisticsSelectionPresenter); _view.AddPopulationOutputsView(_allOutputsPresenter.View); _view.AddSelectedOutputsView(_selectedOutputsPresenter.View); _view.AddStatisticsSelectionView(_statisticsSelectionPresenter.View); _allOutputsPresenter.QuantityDoubleClicked += (o, e) => addOutput(e.Quantity); _allOutputsPresenter.Hide(QuantityColumn.Selection); _statisticsSelectionPresenter.SelectionChanged += (o, e) => selectionChanged(); _allOutputsPresenter.ExpandAllGroups = true; }
protected override void Context() { _individual = DomainHelperForSpecs.CreateIndividual(); _representationInfoRep = A.Fake <IRepresentationInfoRepository>(); _quantityPathMapper = A.Fake <IQuantityPathToQuantityDisplayPathMapper>(); sut = new Services.FullPathDisplayResolver(_quantityPathMapper, _representationInfoRep); }
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); }
protected override void Context() { _view = A.Fake <IIndividualSimulationComparisonView>(); _chartPresenter = A.Fake <IChartEditorAndDisplayPresenter>(); _pkAnalysisPresenter = A.Fake <IIndividualPKAnalysisPresenter>(); _quantityPathMapper = A.Fake <IQuantityPathToQuantityDisplayPathMapper>(); _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>(); _userSettings = A.Fake <IUserSettings>(); _chartPresenterContext = A.Fake <ChartPresenterContext>(); A.CallTo(() => _chartPresenterContext.ChartEditorAndDisplayPresenter).Returns(_chartPresenter); A.CallTo(() => _chartPresenterContext.QuantityDisplayPathMapper).Returns(_quantityPathMapper); 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, _userSettings); }
protected override void Context() { _observedDataCollection = new ObservedDataCollection(); _displayPathMapper = A.Fake <IQuantityPathToQuantityDisplayPathMapper>(); _dimensionRepository = A.Fake <IDimensionRepository>(); sut = new DataRepositoryToObservedCurveDataMapper(_displayPathMapper, _dimensionRepository); _observedData = new DataRepository(); _baseGrid = new BaseGrid("Time", DomainHelperForSpecs.TimeDimensionForSpecs()); _baseGrid.Values = new[] { 1.0f, 2.0f, 3.0f }; _data = new DataColumn("Col", DomainHelperForSpecs.ConcentrationDimensionForSpecs(), _baseGrid); _data.Values = new[] { 10f, 20f, 30f }; _data.DataInfo.Origin = ColumnOrigins.Observation; _observedData.Add(_data); _errorArithmetic = new DataColumn("ErrorArithmetic", _data.Dimension, _baseGrid); _errorArithmetic.Values = new[] { 1.0f, 2.2f, 3.3f }; _errorArithmetic.DataInfo.AuxiliaryType = AuxiliaryType.ArithmeticStdDev; _errorGeometric = new DataColumn("ErrorGeometric", DomainHelperForSpecs.NoDimension(), _baseGrid); _errorGeometric.Values = new[] { 1.0f, 1.2f, 1.3f }; _errorGeometric.DataInfo.AuxiliaryType = AuxiliaryType.GeometricStdDev; _observedDataCollection.AddObservedData(_observedData); _curveOptions = _observedDataCollection.ObservedDataCurveOptionsFor(_data).CurveOptions; _curveOptions.Color = Color.Aqua; _curveOptions.LineStyle = LineStyles.Dot; _curveOptions.Symbol = Symbols.Diamond; }
public QuantityToSimulationParameterSelectionDTOMapper(IQuantityToQuantitySelectionDTOMapper quantitySelectionDTOMapper, IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper, IFavoriteRepository favoriteRepository, IParameterToParameterDTOMapper parameterDTOMapper) { _quantitySelectionDTOMapper = quantitySelectionDTOMapper; _quantityDisplayPathMapper = quantityDisplayPathMapper; _favoriteRepository = favoriteRepository; _parameterDTOMapper = parameterDTOMapper; }
public PKAnalysisExportTask(IDialogCreator dialogCreator, IDataRepositoryTask dataRepositoryTask, IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper, IGlobalPKAnalysisToDataTableMapper globalPKAnalysisToDataTableMapper) { _dialogCreator = dialogCreator; _dataRepositoryTask = dataRepositoryTask; _globalPKAnalysisToDataTableMapper = globalPKAnalysisToDataTableMapper; _quantityDisplayPathMapper = quantityDisplayPathMapper; }
protected override void Context() { _dialogCreator = A.Fake <IDialogCreator>(); _dataRepositoryTask = A.Fake <IDataRepositoryTask>(); _quantityDisplayPathMapper = A.Fake <IQuantityPathToQuantityDisplayPathMapper>(); _pkAnalysisTask = A.Fake <IPKAnalysisTask>(); _globalPKAnalysisMapper = A.Fake <IGlobalPKAnalysisToDataTableMapper>(); sut = new PKAnalysisExportTask(_dialogCreator, _dataRepositoryTask, _quantityDisplayPathMapper, _globalPKAnalysisMapper); }
protected override void Context() { _dataRepositoryTask = A.Fake <IDataRepositoryTask>(); _quantityDisplayPathMapper = A.Fake <IQuantityPathToQuantityDisplayPathMapper>(); _batchSimulationExportMapper = A.Fake <ISimulationResultsToBatchSimulationExportMapper>(); sut = new SimulationResultsExporter(_dataRepositoryTask, _quantityDisplayPathMapper, _batchSimulationExportMapper); _simulation = A.Fake <ISimulation>(); _results = new DataRepository(); _fileName = FileHelper.GenerateTemporaryFileName(); }
public ChartTemplatingTask(IChartFromTemplateService chartFromTemplateService, IProjectRetriever projectRetriever, IChartTemplatePersistor chartTemplatePersistor, IChartUpdater chartUpdater, IDialogCreator dialogCreator, IPKSimChartFactory chartFactory, IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper, ICurveChartToCurveChartTemplateMapper chartTemplateMapper, IExecutionContext executionContext, IApplicationController applicationController, ICloneManager cloneManager, IChartTask chartTask) : base(applicationController, chartTemplatePersistor, cloneManager, chartTemplateMapper, chartFromTemplateService, chartUpdater, dialogCreator) { _chartFromTemplateService = chartFromTemplateService; _projectRetriever = projectRetriever; _chartFactory = chartFactory; _quantityDisplayPathMapper = quantityDisplayPathMapper; _chartTemplateMapper = chartTemplateMapper; _executionContext = executionContext; _chartTask = chartTask; }
protected override void Context() { _quantityDisplayPathMapper = A.Fake <IQuantityPathToQuantityDisplayPathMapper>(); _buildingBlockTask = A.Fake <IBuildingBlockTask>(); _dialogCreator = A.Fake <IDialogCreator>(); _dataRepositoryTask = A.Fake <IDataRepositoryTask>(); _stringSerializer = A.Fake <IStringSerializer>(); _modelReportCreator = A.Fake <IModelReportCreator>(); _simulationMapper = A.Fake <ISimulationToModelCoreSimulationMapper>(); _simModelExporter = A.Fake <ISimModelExporter>(); _simulationResultsToDataTableConverter = A.Fake <ISimulationResultsToDataTableConverter>(); sut = new SimulationExportTask(_buildingBlockTask, _dialogCreator, _dataRepositoryTask, _quantityDisplayPathMapper, _stringSerializer, _modelReportCreator, _simulationMapper, _simModelExporter, _simulationResultsToDataTableConverter); }
public PopulationAnalysisAvailablePKParametersPresenter( IPopulationAnalysisAvailablePKParametersView view, IQuantityToQuantitySelectionDTOMapper quantitySelectionDTOMapper, IEntitiesInContainerRetriever entitiesInContainerRetriever, IPKParameterRepository pkParameterRepository, IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper) : base(view) { _quantitySelectionDTOMapper = quantitySelectionDTOMapper; _entitiesInContainerRetriever = entitiesInContainerRetriever; _pkParameterRepository = pkParameterRepository; _quantityDisplayPathMapper = quantityDisplayPathMapper; _allPKParameters = new List <QuantityPKParameterDTO>(); }
public SimulationExportTask(IBuildingBlockTask buildingBlockTask, IDialogCreator dialogCreator, IDataRepositoryTask dataRepositoryTask, IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper, IStringSerializer stringSerializer, IModelReportCreator modelReportCreator, ISimulationToModelCoreSimulationMapper coreSimulationMapper, ISimModelExporter simModelExporter, ISimulationResultsToDataTableConverter simulationResultsToDataTableConverter) { _buildingBlockTask = buildingBlockTask; _dialogCreator = dialogCreator; _dataRepositoryTask = dataRepositoryTask; _quantityDisplayPathMapper = quantityDisplayPathMapper; _stringSerializer = stringSerializer; _modelReportCreator = modelReportCreator; _coreSimulationMapper = coreSimulationMapper; _simModelExporter = simModelExporter; _simulationResultsToDataTableConverter = simulationResultsToDataTableConverter; }
public SummaryChartPresenter( ISummaryChartView view, IChartEditorAndDisplayPresenter chartEditorAndDisplayPresenter, IIndividualPKAnalysisPresenter pkAnalysisPresenter, IDataColumnToPathElementsMapper dataColumnToPathElementsMapper, IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper, IChartTask chartTask, IObservedDataTask observedDataTask, ILazyLoadTask lazyLoadTask, ILicense license, IChartEditorLayoutTask chartEditorLayoutTask, IChartTemplatingTask chartTemplatingTask) : base(view, chartEditorAndDisplayPresenter, pkAnalysisPresenter, dataColumnToPathElementsMapper, quantityDisplayPathMapper, chartTask, observedDataTask, license, chartEditorLayoutTask, chartTemplatingTask) { _lazyLoadTask = lazyLoadTask; _chartTemplatingTask = chartTemplatingTask; }
protected override Task Context() { _quantityDisplayPathMapper = A.Fake <IQuantityPathToQuantityDisplayPathMapper>(); _lazyLoadTask = A.Fake <ILazyLoadTask>(); _dialogCreator = A.Fake <IDialogCreator>(); _dataRepositoryTask = A.Fake <IDataRepositoryExportTask>(); _stringSerializer = A.Fake <IStringSerializer>(); _modelReportCreator = A.Fake <IModelReportCreator>(); _simulationMapper = A.Fake <ISimulationToModelCoreSimulationMapper>(); _simModelExporter = A.Fake <ISimModelExporter>(); _simulationResultsToDataTableConverter = A.Fake <ISimulationResultsToDataTableConverter>(); _populationSimulationPKAnalysesToDataTableConverter = A.Fake <IPopulationSimulationPKAnalysesToDataTableConverter>(); sut = new SimulationExportTask(_lazyLoadTask, _dialogCreator, _dataRepositoryTask, _quantityDisplayPathMapper, _stringSerializer, _modelReportCreator, _simulationMapper, _simModelExporter, _simulationResultsToDataTableConverter, _populationSimulationPKAnalysesToDataTableConverter); return(_completed); }
protected override void Context() { _chartFromTemplateService = A.Fake <IChartFromTemplateService>(); _projectRetriever = A.Fake <IProjectRetriever>(); _chartTemplatePersistor = A.Fake <IChartTemplatePersistor>(); _stringCompression = A.Fake <IStringCompression>(); _dialogCreator = A.Fake <IDialogCreator>(); _chartFactory = A.Fake <IPKSimChartFactory>(); _quantityDisplayPathMapper = A.Fake <IQuantityPathToQuantityDisplayPathMapper>(); _chartTemplateMapper = A.Fake <ICurveChartToCurveChartTemplateMapper>(); _chartTask = A.Fake <IChartTask>(); _cloneManager = A.Fake <ICloneManager>(); _applicationController = A.Fake <IApplicationController>(); _executionContext = A.Fake <IExecutionContext>(); _chartUpdater = A.Fake <IChartUpdater>(); sut = new ChartTemplatingTask(_chartFromTemplateService, _projectRetriever, _chartTemplatePersistor, _chartUpdater, _dialogCreator, _chartFactory, _quantityDisplayPathMapper, _chartTemplateMapper, _executionContext, _applicationController, _cloneManager, _chartTask); }
protected override void Context() { _quantityPathToQuantityDisplayPathMapper = A.Fake <IQuantityPathToQuantityDisplayPathMapper>(); sut = new CurveNamer(_quantityPathToQuantityDisplayPathMapper); _simulation = A.Fake <ISimulation>().WithName("simulationName"); _dataRepository = DomainHelperForSpecs.SimulationDataRepositoryFor(_simulation.Name); _dataColumn = _dataRepository.AllButBaseGrid().First(); A.CallTo(() => _quantityPathToQuantityDisplayPathMapper.DisplayPathAsStringFor(_simulation, _dataColumn, true)).ReturnsLazily(() => $"{_simulation.Name}:{_dataColumn.Name}"); _curveChart = new CurveChart(); _dimensionFactory = A.Fake <IDimensionFactory>(); _curve = _curveChart.CreateCurve(_dataRepository.BaseGrid, _dataColumn, $"{_simulation.Name}:{_dataColumn.Name}", _dimensionFactory); _anotherCurve = _curveChart.CreateCurve(_dataRepository.BaseGrid, _dataColumn, "AnotherColumnName", _dimensionFactory); _curveChart.AddCurve(_curve); _curveChart.AddCurve(_anotherCurve); _charts = new List <CurveChart> { _curveChart }; }
protected override void Context() { _view = A.Fake <IPopulationAnalysisOutputSelectionView>(); _allOutputsPresenter = A.Fake <IQuantityListPresenter>(); _selectedOutputsPresenter = A.Fake <IPopulationAnalysisOutputFieldsPresenter>(); _statisticSelectionPresenter = A.Fake <IPopulationAnalysisStatisticsSelectionPresenter>(); _outputsRetriever = A.Fake <IEntitiesInContainerRetriever>(); _eventPublisher = A.Fake <IEventPublisher>(); _dimensionRepository = A.Fake <IDimensionRepository>(); _timeDimension = A.Fake <IDimension>(); _quantityDisplayPathMapper = A.Fake <IQuantityPathToQuantityDisplayPathMapper>(); A.CallTo(() => _dimensionRepository.Time).Returns(_timeDimension); sut = new PopulationAnalysisOutputSelectionPresenter( _view, _allOutputsPresenter, _selectedOutputsPresenter, _statisticSelectionPresenter, _outputsRetriever, _eventPublisher, _dimensionRepository, _quantityDisplayPathMapper); }
public SimulationExportTask( ILazyLoadTask lazyLoadTask, IDialogCreator dialogCreator, IDataRepositoryExportTask dataRepositoryTask, IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper, IStringSerializer stringSerializer, IModelReportCreator modelReportCreator, ISimulationToModelCoreSimulationMapper coreSimulationMapper, ISimModelExporter simModelExporter, ISimulationResultsToDataTableConverter simulationResultsToDataTableConverter, IPopulationSimulationPKAnalysesToDataTableConverter populationSimulationPKAnalysesToDataTableConverter) { _lazyLoadTask = lazyLoadTask; _dialogCreator = dialogCreator; _dataRepositoryTask = dataRepositoryTask; _quantityDisplayPathMapper = quantityDisplayPathMapper; _stringSerializer = stringSerializer; _modelReportCreator = modelReportCreator; _coreSimulationMapper = coreSimulationMapper; _simModelExporter = simModelExporter; _simulationResultsToDataTableConverter = simulationResultsToDataTableConverter; _populationSimulationPKAnalysesToDataTableConverter = populationSimulationPKAnalysesToDataTableConverter; }
protected override void Context() { _quantitySelectionDTOMapper = A.Fake <IQuantityToQuantitySelectionDTOMapper>(); _quantityDisplayPathMapper = A.Fake <IQuantityPathToQuantityDisplayPathMapper>(); sut = new QuantityToSimulationQuantitySelectionDTOMapper(_quantitySelectionDTOMapper, _quantityDisplayPathMapper); }
public FullPathDisplayResolver(IRepresentationInfoRepository representationInfoRepository, IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper) { _representationInfoRepository = representationInfoRepository; _quantityDisplayPathMapper = quantityDisplayPathMapper; }
public ComparisonChartPresenter(IChartView chartView, IMoBiContext context, IUserSettings userSettings, IChartTasks chartTasks, IChartTemplatingTask chartTemplatingTask, IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper, IChartUpdater chartUpdater, ChartPresenterContext chartPresenterContext) : base(chartView, chartPresenterContext, context, userSettings, chartTasks, chartTemplatingTask) { _quantityDisplayPathMapper = quantityDisplayPathMapper; }
public DataRepositoryToObservedCurveDataMapper(IQuantityPathToQuantityDisplayPathMapper displayPathMapper, IDimensionRepository dimensionRepository) { _displayPathMapper = displayPathMapper; _dimensionRepository = dimensionRepository; }
public SimulationResultsExporter(IDataRepositoryTask dataRepositoryTask, IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper, ISimulationResultsToBatchSimulationExportMapper simulationExportMapper) { _dataRepositoryTask = dataRepositoryTask; _quantityDisplayPathMapper = quantityDisplayPathMapper; _simulationExportMapper = simulationExportMapper; }
public SensitivityAnalysisRunResultToDataTableMapper(IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper, IPKParameterRepository pkParameterRepository, IEntityPathResolver entityPathResolver) { _quantityDisplayPathMapper = quantityDisplayPathMapper; _pkParameterRepository = pkParameterRepository; _entityPathResolver = entityPathResolver; }
public QuantityToSimulationQuantitySelectionDTOMapper(IQuantityToQuantitySelectionDTOMapper quantitySelectionDTOMapper, IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper) { _quantitySelectionDTOMapper = quantitySelectionDTOMapper; _quantityDisplayPathMapper = quantityDisplayPathMapper; }
public FullPathDisplayResolver(IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper) { _quantityDisplayPathMapper = quantityDisplayPathMapper; }
public FullPathDisplayResolver(IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper, IRepresentationInfoRepository representationInfoRepository) : base(quantityDisplayPathMapper) { _representationInfoRepository = representationInfoRepository; }
public CurveNamer(IQuantityPathToQuantityDisplayPathMapper quantityPathToQuantityDisplayPathMapper) { _quantityPathToQuantityDisplayPathMapper = quantityPathToQuantityDisplayPathMapper; }
public SensitivityParameterToSensitivityParameterDTOMapper(IParameterToParameterDTOInContainerMapper <SensitivityParameterDTO> parameterMapper, IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper) { _parameterMapper = parameterMapper; _quantityDisplayPathMapper = quantityDisplayPathMapper; }