public LipophilicityGroupPresenter(ILipophilicityGroupView view, ICompoundAlternativeTask compoundAlternativeTask, IRepresentationInfoRepository representationRepo, IParameterGroupAlternativeToLipophilicityAlternativeDTOMapper lipophilicityAlternativeDTOMapper, IDialogCreator dialogCreator) : base(view, representationRepo, compoundAlternativeTask, dialogCreator, CoreConstants.Groups.COMPOUND_LIPOPHILICITY) { _lipophilicityAlternativeDTOMapper = lipophilicityAlternativeDTOMapper; }
public CompoundTeXBuilder(ITeXBuilderRepository builderRepository, IReportGenerator reportGenerator, ILazyLoadTask lazyLoadTask, IRepresentationInfoRepository representationRepository, ICompoundAlternativeTask compoundAlternativeTask) : base(builderRepository, reportGenerator, lazyLoadTask) { _representationRepository = representationRepository; _compoundAlternativeTask = compoundAlternativeTask; }
protected override void Context() { _representationInfoRepository = A.Fake <IRepresentationInfoRepository>(); _reportGenerator = A.Fake <IReportGenerator>(); _treeNodeFactory = new TreeNodeFactoryForSpecs(); sut = new ParameterContainerToTreeNodeMapper(_treeNodeFactory, _representationInfoRepository); }
protected CompoundParameterGroupPresenter(TView view, IRepresentationInfoRepository representationInfoRepository, string groupName, bool needsCaption = true) : base(view) { if (needsCaption) { View.Caption = representationInfoRepository.DisplayNameFor(RepresentationObjectType.GROUP, groupName); } }
public DistributionDataCreator(IBinIntervalsCreator binIntervalsCreator, IRepresentationInfoRepository representationInfoRepository, IEntityPathResolver entityPathResolver, ICoreUserSettings userSettings) { _binIntervalsCreator = binIntervalsCreator; _representationInfoRepository = representationInfoRepository; _entityPathResolver = entityPathResolver; _userSettings = userSettings; }
public PKSimPathToPathElementsMapper(IRepresentationInfoRepository representationInfoRepository, IEntityPathResolver entityPathResolver) : base(entityPathResolver) { _representationInfoRepository = representationInfoRepository; //Format is (Fraction of dose-DRUG_NAME)-Liver-COMPARTMENT var fractionOfDoseLiverObserverPattern = $@"(?<{OBSERVER_NAME}>{CoreConstants.Observer.FRACTION_OF_DOSE}{CoreConstants.COMPOSITE_SEPARATOR}\w*){CoreConstants.COMPOSITE_SEPARATOR}{CoreConstants.Organ.Liver}{CoreConstants.COMPOSITE_SEPARATOR}\w*"; _fractionOfDoseLiverRegex = new Regex(fractionOfDoseLiverObserverPattern); }
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() { _dimensionRepository = A.Fake <IDimensionRepository>(); _representationInfoRepository = A.Fake <IRepresentationInfoRepository>(); _lazyLoadTask = A.Fake <ILazyLoadTask>(); _observedcurveDataMapper = A.Fake <IDataRepositoryToObservedCurveDataMapper>(); _statisticalAnalysis = new PopulationStatisticalAnalysis(); _genderField = ChartDataHelperForSpecs.CreateGenderField(); _statisticalAnalysis.Add(_genderField); _statisticalAnalysis.Add(_outputFieldVenousBloodPlasma); _statisticalAnalysis.Add(_outputFieldLiverCell); _predefinedStatisticalAggregation = new PredefinedStatisticalAggregation { Selected = true }; _percentileStatisticalAggregation = new PercentileStatisticalAggregation { Selected = false, Percentile = 50 }; _statisticalAnalysis.AddStatistic(_predefinedStatisticalAggregation); _statisticalAnalysis.AddStatistic(_percentileStatisticalAggregation); A.CallTo(() => _representationInfoRepository.DisplayNameFor(_predefinedStatisticalAggregation)).Returns(_singlecurveId); A.CallTo(() => _representationInfoRepository.DisplayNameFor(_percentileStatisticalAggregation)).Returns(_percentileId); _statisticalDataCalculator = new StatisticalDataCalculator(); _pivotResultCreator = A.Fake <IPivotResultCreator>(); sut = new TimeProfileChartDataCreator(_dimensionRepository, _pivotResultCreator, _representationInfoRepository, _statisticalDataCalculator, _lazyLoadTask, _observedcurveDataMapper); }
protected override void Context() { _compound = new Compound(); _view = A.Fake <ICompoundProcessesView>(); _commandRegister = A.Fake <ICommandCollector>(); A.CallTo(() => _view.TreeView).Returns(A.Fake <IUxTreeView>()); _compoundProcessTask = A.Fake <ICompoundProcessTask>(); _partialProcessNodeMapper = A.Fake <IPartialProcessToTreeNodeMapper>(); _compoundProcessPresenter = A.Fake <ICompoundProcessPresenter>(); _compoundEnzymaticProcessPresenter = A.Fake <IEnzymaticCompoundProcessPresenter>(); _treeNodeFactory = new TreeNodeFactoryForSpecs(); _contextMenuFactory = A.Fake <ITreeNodeContextMenuFactory>(); _entityTask = A.Fake <IEntityTask>(); _partialProcessesNode = new RootNode(PKSimRootNodeTypes.CompoundMetabolizingEnzymes); _representationInfoRepository = A.Fake <IRepresentationInfoRepository>(); _compoundParameterNodeTypeToCompoundParameterGroupPresenterMapper = A.Fake <ICompoundParameterNodeTypeToCompoundParameterGroupPresenterMapper>(); _dialogCreator = A.Fake <IDialogCreator>(); _noItemInSelectionPresenter = A.Fake <INoItemInSelectionPresenter>(); sut = new CompoundProcessesPresenter(_view, _compoundProcessTask, _partialProcessNodeMapper, _treeNodeFactory, _contextMenuFactory, _compoundProcessPresenter, _entityTask, _dialogCreator, _noItemInSelectionPresenter, _compoundParameterNodeTypeToCompoundParameterGroupPresenterMapper, _compoundEnzymaticProcessPresenter, new PartialProcessToRootNodeTypeMapper(), new SystemicProcessToRootNodeTypeMapper()); sut.InitializeWith(_commandRegister); A.CallTo(() => _view.TreeView.NodeById(PKSimRootNodeTypes.CompoundMetabolizingEnzymes.Id)).Returns(_partialProcessesNode); }
public FlatProcessToCompoundProcessMapper(IObjectBaseFactory entityBaseFactory, ISpeciesRepository speciesRepository, IRepresentationInfoRepository representationInfoRepository) { _entityBaseFactory = entityBaseFactory; _speciesRepository = speciesRepository; _representationInfoRepository = representationInfoRepository; }
public IntestinalPermeabilityGroupPresenter(IPermeabilityGroupView view, ICompoundAlternativeTask compoundAlternativeTask, IRepresentationInfoRepository representationRepo, IParameterGroupAlternativeToPermeabilityAlternativeDTOMapper permeabilityAlternativeDTOMapper, ICalculatedParameterValuePresenter calculatedParameterValuePresenter, IDialogCreator dialogCreator) : base(view, compoundAlternativeTask, representationRepo, permeabilityAlternativeDTOMapper, calculatedParameterValuePresenter, dialogCreator, CoreConstants.Groups.COMPOUND_INTESTINAL_PERMEABILITY) { }
protected override void Context() { _view = A.Fake <IAdvancedParameterDistributionView>(); _representationInfoRepository = A.Fake <IRepresentationInfoRepository>(); _entityPathResolver = A.Fake <IEntityPathResolver>(); _parametersPresenter = A.Fake <IPopulationParameterGroupsPresenter>(); _popParameterDistributionPresenter = A.Fake <IPopulationDistributionPresenter>(); _population = A.Fake <Population>(); _projectChangedNotifier = A.Fake <IProjectChangedNotifier>(); _gender1 = A.Fake <Gender>().WithName("Gender1"); _gender2 = A.Fake <Gender>().WithName("Gender2"); A.CallTo(() => _population.AllGenders()).Returns(new[] { _gender1, _gender2 }); A.CallTo(() => _representationInfoRepository.DisplayNameFor(_gender1)).Returns("Display1"); A.CallTo(() => _representationInfoRepository.DisplayNameFor(_gender2)).Returns("Display2"); _allParameters = new List <IParameter>(); _allParametersCache = new PathCacheForSpecs <IParameter>(); A.CallTo(() => _population.AllVectorialParameters(_entityPathResolver)).Returns(_allParameters); A.CallTo(() => _population.AllParameters(_entityPathResolver)).Returns(_allParametersCache); A.CallTo(() => _popParameterDistributionPresenter.Plot(_population, A <IParameter> ._, A <DistributionSettings> ._, A <IDimension> ._, A <Unit> ._)) .Invokes(x => _settings = x.GetArgument <DistributionSettings>(2)); sut = new PopulationAdvancedParameterDistributionPresenter(_view, _parametersPresenter, _representationInfoRepository, _entityPathResolver, _popParameterDistributionPresenter, _projectChangedNotifier); }
protected override void Context() { _view = A.Fake <ISimulationModelSelectionView>(); _categoryCalculationMethodDTOMapper = A.Fake <ICalculationMethodToCategoryCalculationMethodDTOMapper>(); _modelPropertiesTask = A.Fake <IModelPropertiesTask>(); _modelConfigurationRepository = A.Fake <IModelConfigurationRepository>(); _modelPropertiesMapper = A.Fake <IModelConfigurationDTOToModelPropertiesMapper>(); _representationInfoRepository = A.Fake <IRepresentationInfoRepository>(); _simulation = A.Fake <Simulation>(); _species = A.Fake <Species>(); _individual = A.Fake <Individual>(); _modelProperties = A.Fake <ModelProperties>(); _modelConfiguration = A.Fake <ModelConfiguration>(); _modelConfiguration.ModelName = "4Comp"; _originData = new OriginData(); _modelProperties.ModelConfiguration = _modelConfiguration; _simulation.ModelProperties = _modelProperties; _simulation.ModelConfiguration = _modelConfiguration; A.CallTo(() => _simulation.BuildingBlock <ISimulationSubject>()).Returns(_individual); _individual.OriginData = _originData; _originData.Species = _species; A.CallTo(() => _modelPropertiesTask.Update(A <ModelProperties> ._, A <ModelProperties> ._, _originData)).Returns(_modelProperties); sut = new SimulationModelSelectionPresenter(_view, _modelConfigurationRepository, _modelPropertiesTask, _modelPropertiesMapper, _representationInfoRepository, _categoryCalculationMethodDTOMapper); }
protected override void Context() { _view = A.Fake <IObjectBaseView>(); _representationInfoRepository = A.Fake <IRepresentationInfoRepository>(); sut = new ParameterAlternativeNamePresenter(_view, _representationInfoRepository); _parameterAlternativeGroup = new ParameterAlternativeGroup().WithName("Group"); }
public PopulationRepository(IFlatPopulationRepository flatPopultionRepository, IFlatPopulationToPopulationMapper flatPopMapper, IRepresentationInfoRepository representationInfoRepository, ICoreUserSettings userSettings) { _flatPopultionRepository = flatPopultionRepository; _flatPopMapper = flatPopMapper; _representationInfoRepository = representationInfoRepository; _userSettings = userSettings; }
public SpeciesRepository(IFlatSpeciesRepository flatSpeciesRepository, IFlatSpeciesToSpeciesMapper flatSpeciesMapper, ICoreUserSettings userSettings, IRepresentationInfoRepository representationInfoRepository) { _flatSpeciesRepository = flatSpeciesRepository; _flatSpeciesMapper = flatSpeciesMapper; _userSettings = userSettings; _representationInfoRepository = representationInfoRepository; }
protected override void Context() { _view = A.Fake <IEventSettingsView>(); _eventGroupRepository = A.Fake <IEventGroupRepository>(); _representationInfoRepository = A.Fake <IRepresentationInfoRepository>(); _eventParametersPresenter = A.Fake <IParametersByGroupPresenter>(); sut = new EventSettingsPresenter(_view, _eventGroupRepository, _representationInfoRepository, _eventParametersPresenter); }
public CompoundProcessPresenter(ICompoundProcessView view, IParametersByGroupPresenter parametersPresenter, IEntityTask entityTask, ISpeciesRepository speciesRepository, IRepresentationInfoRepository representationInfoRepository, ICompoundProcessToCompoundProcessDTOMapper compoundProcessDTOMapper, ICompoundProcessTask compoundProcessTask) : base(view, parametersPresenter, entityTask, speciesRepository, representationInfoRepository, compoundProcessDTOMapper, compoundProcessTask) { }
public TimeProfileChartDataCreator(IDimensionRepository dimensionRepository, IPivotResultCreator pivotResultCreator, IRepresentationInfoRepository representationInfoRepository, IStatisticalDataCalculator statisticalDataCalculator, ILazyLoadTask lazyLoadTask, IDataRepositoryToObservedCurveDataMapper observedCurveDataMapper) : base(dimensionRepository, pivotResultCreator) { _representationInfoRepository = representationInfoRepository; _statisticalDataCalculator = statisticalDataCalculator; _lazyLoadTask = lazyLoadTask; _observedCurveDataMapper = observedCurveDataMapper; }
public CompoundTypeGroupPresenter(ICompoundTypeGroupView view, IRepresentationInfoRepository representationInfoRepository, ICompoundToCompoundTypeDTOMapper dtoMapper, IParameterTask parameterTask, IEntityPathResolver entityPathResolver) : base(view, representationInfoRepository, CoreConstants.Groups.COMPOUND_PKA) { _dtoMapper = dtoMapper; _parameterTask = parameterTask; _entityPathResolver = entityPathResolver; ShowFavorites = false; }
public EventMarkdownBuilder( IMarkdownBuilderRepository markdownBuilderRepository, IEventGroupRepository eventGroupRepository, IRepresentationInfoRepository representationInfoRepository ) : base(markdownBuilderRepository) { _eventGroupRepository = eventGroupRepository; _representationInfoRepository = representationInfoRepository; }
public EventSettingsPresenter(IEventSettingsView view, IEventGroupRepository eventGroupRepository, IRepresentationInfoRepository representationInfoRepository, IParametersByGroupPresenter eventParametersPresenter) : base(view) { _eventGroupRepository = eventGroupRepository; _representationInfoRepository = representationInfoRepository; _eventParametersPresenter = eventParametersPresenter; _view.AddParameterView(_eventParametersPresenter.View); }
protected CompoundParameterGroupWithAlternativePresenter(TView view, IRepresentationInfoRepository representationRepository, ICompoundAlternativeTask compoundAlternativeTask, IDialogCreator dialogCreator, string groupName) : base(view) { _dialogCreator = dialogCreator; _compoundAlternativeTask = compoundAlternativeTask; _dialogCreator = dialogCreator; _parameterGroupName = groupName; View.Caption = representationRepository.DisplayNameFor(RepresentationObjectType.GROUP, _parameterGroupName); }
protected override void Context() { _view = A.Fake <IPopulationParameterDistributionView>(); _distributionDataCreator = A.Fake <IDistributionDataCreator>(); _representationInfoRepository = A.Fake <IRepresentationInfoRepository>(); _displayUnitRetriever = A.Fake <IDisplayUnitRetriever>(); _pkParameterRepository = A.Fake <IPKParameterRepository>(); sut = new PopulationDistributionPresenter(_view, _distributionDataCreator, _representationInfoRepository, _displayUnitRetriever, _pkParameterRepository); }
public MolWeightGroupPresenter(IMolWeightGroupView view, IRepresentationInfoRepository representationInfoRepository, ICompoundToMolWeightDTOMapper molWeightDTOMapper, IMolWeightHalogensPresenter molWeightHalogensPresenter, IParameterTask parameterTask) : base(view, representationInfoRepository, CoreConstants.Groups.COMPOUND_MW) { _molWeightDTOMapper = molWeightDTOMapper; _molWeightHalogensPresenter = molWeightHalogensPresenter; _parameterTask = parameterTask; _view.SetHalogensView(_molWeightHalogensPresenter.View); _molWeightHalogensPresenter.StatusChanged += OnStatusChanged; }
public OriginDataReportBuilder( IReportGenerator reportGenerator, IDimensionRepository dimensionRepository, IRepresentationInfoRepository representationInfoRepository) { _reportGenerator = reportGenerator; _dimensionRepository = dimensionRepository; _representationInfoRepository = representationInfoRepository; _formatter = new NumericFormatter <double>(NumericFormatterOptions.Instance); }
public FractionUnboundGroupPresenter(IFractionUnboundGroupView view, IRepresentationInfoRepository representationRepository, ICompoundAlternativeTask compoundAlternativeTask, IParameterGroupAlternativeToFractionUnboundAlternativeDTOMapper fractionUnboundAlternativeDTOMapper, ISpeciesRepository speciesRepository, IDialogCreator dialogCreator, IParameterTask parameterTask) : base(view, representationRepository, compoundAlternativeTask, dialogCreator, CoreConstants.Groups.COMPOUND_FRACTION_UNBOUND) { _fractionUnboundAlternativeDTOMapper = fractionUnboundAlternativeDTOMapper; _speciesRepository = speciesRepository; _parameterTask = parameterTask; }
protected override void Context() { _userSettings = A.Fake <ICoreUserSettings>(); _userSettings.NumberOfBins = 2; _userSettings.NumberOfIndividualsPerBin = 100; _representationInfoRep = A.Fake <IRepresentationInfoRepository>(); _entityPathResolver = A.Fake <IEntityPathResolver>(); _binIntervalCreator = new BinIntervalsCreator(_userSettings); sut = new DistributionDataCreator(_binIntervalCreator, _representationInfoRep, _entityPathResolver, _userSettings); }
public GlobalPKAnalysisPresenter(IGlobalPKAnalysisView view, IGlobalPKAnalysisTask globalPKAnalysisTask, IGlobalPKAnalysisToGlobalPKAnalysisDTOMapper globalPKAnalysisDTOMapper, IHeavyWorkManager heavyWorkManager, IRepresentationInfoRepository representationInfoRepository, IPresentationSettingsTask presentationSettingsTask) : base(view) { _globalPKAnalysisTask = globalPKAnalysisTask; _globalPKAnalysisDTOMapper = globalPKAnalysisDTOMapper; _heavyWorkManager = heavyWorkManager; _representationInfoRepository = representationInfoRepository; _presentationSettingsTask = presentationSettingsTask; _settings = new DefaultPresentationSettings(); }
public ParametersByGroupPresenter(IParametersByGroupView view, IEditParameterPresenterTask editParameterPresenterTask, IParameterTask parameterTask, IParameterToParameterDTOMapper mapper, IRepresentationInfoRepository representationInfoRepository, IParameterContextMenuFactory contextMenuFactory) : base(view, editParameterPresenterTask, parameterTask) { _mapper = mapper; _representationInfoRepository = representationInfoRepository; _contextMenuFactory = contextMenuFactory; ShowFavorites = false; }