Example #1
0
        protected override void Context()
        {
            _msvCreator = A.Fake <IMoleculeStartValuesCreator>();

            A.CallTo(() => _msvCreator.CreateMoleculeStartValue(A <IObjectPath> .Ignored, A <string> .Ignored, A <IDimension> .Ignored, A <Unit> ._, A <ValueOrigin> ._))
            .ReturnsLazily((IObjectPath path, string moleculeName, IDimension dimension) => new MoleculeStartValue {
                ContainerPath = path, Name = moleculeName, Dimension = dimension
            });

            _concentrationDimension = new Dimension(new BaseDimensionRepresentation(), Constants.Dimension.MOLAR_CONCENTRATION, "mol/l");

            _amountDimension = new Dimension(new BaseDimensionRepresentation(), Constants.Dimension.AMOUNT, "mol");
            _amountDimension.AddUnit("mmol", 0.001, 0);

            _timeDimension = new Dimension(new BaseDimensionRepresentation(), Constants.Dimension.TIME, "s");
            _timeDimension.Unit("s").Factor = 1.0 / 60;

            _dimensionFactory         = A.Fake <IMoBiDimensionFactory>();
            _startValuesBuildingBlock = A.Fake <IMoleculeStartValuesBuildingBlock>();

            _reactionDimensionRetriever = A.Fake <IReactionDimensionRetriever>();

            A.CallTo(() => _dimensionFactory.DimensionForUnit("mol")).Returns(_amountDimension);
            A.CallTo(() => _dimensionFactory.DimensionForUnit("mmol")).Returns(_amountDimension);
            A.CallTo(() => _dimensionFactory.DimensionForUnit("mol/l")).Returns(_concentrationDimension);
            A.CallTo(() => _dimensionFactory.DimensionForUnit("s")).Returns(_timeDimension);
            A.CallTo(() => _dimensionFactory.DimensionForUnit("")).Throws <Exception>();

            A.CallTo(() => _dimensionFactory.Dimension(Constants.Dimension.AMOUNT)).Returns(_amountDimension);
            A.CallTo(() => _dimensionFactory.Dimension(Constants.Dimension.MOLAR_CONCENTRATION)).Returns(_concentrationDimension);

            A.CallTo(() => _reactionDimensionRetriever.SelectedDimensionMode).Returns(ReactionDimensionMode.AmountBased);

            sut = new DataTableToImportQuantityDTOMapperForMolecules(_dimensionFactory, _reactionDimensionRetriever);
        }
 protected override void Context()
 {
     _entitiesInSimulationRetriever = A.Fake <IEntitiesInSimulationRetriever>();
     _containerTask = new ContainerTask(A.Fake <IObjectBaseFactory>(), new EntityPathResolver(new ObjectPathFactory(new AliasCreator())));
     _reactionDimensionRetriever = A.Fake <IReactionDimensionRetriever>();
     sut = new SimulationPersistableUpdater(_entitiesInSimulationRetriever, _containerTask, _reactionDimensionRetriever);
 }
Example #3
0
 public ReactionBuildingBlockReporter(IDiagramModelToImageTask diagramModelToImageTask, IStoichiometricStringCreator stoichiometricStringCreator, IReactionDimensionRetriever reactionDimensionRetriever)
     : base(Constants.REACTION_BUILDING_BLOCK, Constants.REACTION_BUILDING_BLOCKS)
 {
     _diagramModelToImageTask     = diagramModelToImageTask;
     _stoichiometricStringCreator = stoichiometricStringCreator;
     _reactionDimensionRetriever  = reactionDimensionRetriever;
 }
Example #4
0
        protected override void Context()
        {
            _view                = A.Fake <ISelectEventAssignmentTargetView>();
            _context             = A.Fake <IMoBiContext>();
            _objectBaseDTOMapper = A.Fake <IObjectBaseToObjectBaseDTOMapper>();
            _containerDTOMapper  = A.Fake <IContainerToContainerDTOMapper>();
            _reactionMapper      = A.Fake <IReactionBuilderToDummyReactionDTOMapper>();
            _moleculeMapper      = A.Fake <IMoleculeBuilderToDummyMoleculeDTOMapper>();
            _objectPathFactory   = A.Fake <IObjectPathFactory>();
            _parameterMapper     = A.Fake <IParameterToDummyParameterDTOMapper>();
            _dimensionRetriever  = A.Fake <IReactionDimensionRetriever>();
            sut = new SelectEventAssingmentTargetPresenter(_view, _context, _objectBaseDTOMapper, _containerDTOMapper, _reactionMapper,
                                                           _moleculeMapper, _objectPathFactory, _parameterMapper, _dimensionRetriever);

            _mobiProject     = A.Fake <IMoBiProject>();
            _rootContainer   = new Container();
            _moleculeBuilder = new MoleculeBuilder().WithName("M");
            _reaction        = new ReactionBuilder().WithName("R");
            _localParameter  = new Parameter().WithMode(ParameterBuildMode.Local).WithName("LocalParam");
            _globalParameter = new Parameter().WithMode(ParameterBuildMode.Global).WithName("GlobalParam");
            _reaction.Add(_localParameter);
            _reaction.Add(_globalParameter);
            _reactionBB = new MoBiReactionBuildingBlock()
            {
                _reaction
            };
            _moleculeBB = new MoleculeBuildingBlock {
                _moleculeBuilder
            };
            A.CallTo(() => _mobiProject.ReactionBlockCollection).Returns(new [] { _reactionBB });
            A.CallTo(() => _mobiProject.MoleculeBlockCollection).Returns(new [] { _moleculeBB });
            sut.Init(_mobiProject, _rootContainer);
        }
Example #5
0
 public MoleculeBuilderFactory(IReactionDimensionRetriever reactionDimensionRetriever, IParameterFactory parameterFactory,
                               IObjectBaseFactory objectBaseFactory)
 {
     _reactionDimensionRetriever = reactionDimensionRetriever;
     _parameterFactory           = parameterFactory;
     _objectBaseFactory          = objectBaseFactory;
 }
        public EditMoleculeBuilderPresenter(
            IEditMoleculeBuilderView view,
            IMoleculeBuilderToMoleculeBuilderDTOMapper moleculeBuilderDTOMapper,
            IEditParametersInContainerPresenter editMoleculeParameters,
            IEditTaskFor <IMoleculeBuilder> editTasks,
            IEditFormulaPresenter editFormulaPresenter,
            IMoBiContext context,
            ISelectReferenceAtMoleculePresenter selectReferencePresenter,
            IReactionDimensionRetriever dimensionRetriever,
            ICoreCalculationMethodRepository calculationMethodsRepository)
            : base(view, editFormulaPresenter, selectReferencePresenter)
        {
            _context = context;
            _calculationMethodsRepository = calculationMethodsRepository;
            _moleculeBuilderDTOMapper     = moleculeBuilderDTOMapper;
            _editTasks = editTasks;
            _editMoleculeParameters = editMoleculeParameters;
            AddSubPresenters(_editMoleculeParameters);
            _view.SetParametersView(_editMoleculeParameters.BaseView);
            _view.UpdateStartAmountDisplay(dimensionRetriever.SelectedDimensionMode == ReactionDimensionMode.AmountBased
            ? AppConstants.Captions.Amount
            : AppConstants.Captions.Concentration);

            //We support container criteria for parameters in molecule builder
            _editMoleculeParameters.EnableContainerCriteriaSupport();
        }
 public EditTasksForTransporterMoleculeContainer(IInteractionTaskContext interactionTaskContext, ICoreCalculationMethodRepository calculationMethodRepository,
                                                 IReactionDimensionRetriever dimensionRetriever, IObjectBaseTask objectBaseTask, IDialogCreator dialogCreator)
     : base(interactionTaskContext)
 {
     _calculationMethodRepository = calculationMethodRepository;
     _dimensionRetriever          = dimensionRetriever;
     _objectBaseTask = objectBaseTask;
     _dialogCreator  = dialogCreator;
 }
Example #8
0
 public InteractionTasksForMoleculeBuilder(IInteractionTaskContext interactionTaskContext, IEditTaskFor <IMoleculeBuilder> editTask,
                                           IReactionDimensionRetriever dimensionRetriever, IParameterFactory parameterFactory, ICoreCalculationMethodRepository calculationMethodRepository, IMoBiFormulaTask formulaTask)
     : base(interactionTaskContext, editTask)
 {
     _dimensionRetriever          = dimensionRetriever;
     _parameterFactory            = parameterFactory;
     _calculationMethodRepository = calculationMethodRepository;
     _formulaTask = formulaTask;
 }
        protected override void Context()
        {
            _reactionDimensionRetriever = A.Fake <IReactionDimensionRetriever>();
            _editTaskFor            = A.Fake <IEditTaskFor <IReactionBuilder> >();
            _interactionTaskContext = A.Fake <IInteractionTaskContext>();
            sut = new InteractionTasksForReactionBuilder(_interactionTaskContext, _editTaskFor, _reactionDimensionRetriever);

            _moBiApplicationController        = A.Fake <IMoBiApplicationController>();
            _multipleStringSelectionPresenter = A.Fake <IMultipleStringSelectionPresenter>();
            A.CallTo(() => _interactionTaskContext.ApplicationController).Returns(_moBiApplicationController);
            A.CallTo(() => _moBiApplicationController.Start <IMultipleStringSelectionPresenter>()).Returns(_multipleStringSelectionPresenter);
        }
        protected override void Context()
        {
            _context  = A.Fake <IInteractionTaskContext>();
            _editTask = A.Fake <IEditTasksForBuildingBlock <IMoleculeStartValuesBuildingBlock> >();
            _moleculeStartValuesCreator      = A.Fake <IMoleculeStartValuesCreator>();
            _cloneManagerForBuildingBlock    = A.Fake <ICloneManagerForBuildingBlock>();
            _moleculeStartValueBuildingBlock = new MoleculeStartValuesBuildingBlock();
            _reactionDimensionRetriever      = A.Fake <IReactionDimensionRetriever>();
            _moleculeResolver = A.Fake <IMoleculeResolver>();

            sut = new MoleculeStartValuesTask(_context, _editTask, _moleculeStartValuesCreator,
                                              new ImportedQuantityToMoleculeStartValueMapper(_moleculeStartValuesCreator), A.Fake <IMoleculeStartValueBuildingBlockMergeManager>(), _cloneManagerForBuildingBlock, _reactionDimensionRetriever, A.Fake <IMoBiFormulaTask>(), A.Fake <IMoBiSpatialStructureFactory>(), new MoleculeStartValuePathTask(A.Fake <IFormulaTask>(), _context.Context), _moleculeResolver);
        }
        protected override void Context()
        {
            _view                       = A.Fake <IEditQuantityInSimulationView>();
            _mapper                     = A.Fake <IQuantityToQuantityDTOMapper>();
            _presenterCache             = A.Fake <IFormulaPresenterCache>();
            _parametrPresenters         = A.Fake <IEditParametersInContainerPresenter>();
            _quantityTask               = A.Fake <IQuantityTask>();
            _reactionDimensionRetriever = A.Fake <IReactionDimensionRetriever>();

            sut            = new EditQuantityInSimulationPresenter(_view, _mapper, _presenterCache, _parametrPresenters, _quantityTask, _reactionDimensionRetriever);
            sut.Simulation = A.Fake <IMoBiSimulation>();
            sut.InitializeWith(A.Fake <ICommandCollector>());
        }
 public EditExplicitFormulaPresenter(IEditExplicitFormulaView view, IExplicitFormulaToExplicitFormulaDTOMapper explicitFormulaMapper, IActiveSubjectRetriever activeSubjectRetriever,
                                     IMoBiContext context, ICircularReferenceChecker circularReferenceChecker,
                                     IMoBiFormulaTask moBiFormulaTask, IReactionDimensionRetriever reactionDimensionRetriever, IDisplayUnitRetriever displayUnitRetriever,
                                     IViewItemContextMenuFactory contextMenuFactory, IUserSettings userSettings, IDimensionFactory dimensionFactory) : base(view, displayUnitRetriever)
 {
     _explicitFormulaMapper      = explicitFormulaMapper;
     _circularReferenceChecker   = circularReferenceChecker;
     _moBiFormulaTask            = moBiFormulaTask;
     _reactionDimensionRetriever = reactionDimensionRetriever;
     _contextMenuFactory         = contextMenuFactory;
     _userSettings           = userSettings;
     _dimensionFactory       = dimensionFactory;
     _context                = context;
     _activeSubjectRetriever = activeSubjectRetriever;
 }
 public AmountToConcentrationConverter(IReactionDimensionRetriever reactionDimensionRetriever,
                                       IDimensionFactory dimensionFactory, IAmoutToConcentrationFormulaMapper amoutToConcentrationFormulaMapper,
                                       IObjectBaseFactory objectBaseFactory, IFormulaTask formulaTask, IDisplayUnitRetriever displayUnitRetriever,
                                       IObjectTypeResolver objectTypeResolver, IFormulaFactory formulaFactory)
 {
     _reactionDimensionRetriever        = reactionDimensionRetriever;
     _amoutToConcentrationFormulaMapper = amoutToConcentrationFormulaMapper;
     _objectBaseFactory             = objectBaseFactory;
     _formulaTask                   = formulaTask;
     _displayUnitRetriever          = displayUnitRetriever;
     _objectTypeResolver            = objectTypeResolver;
     _formulaFactory                = formulaFactory;
     _concentrationDimension        = dimensionFactory.Dimension(Constants.Dimension.MOLAR_CONCENTRATION);
     _concentrationPerTimeDimension = dimensionFactory.Dimension(Constants.Dimension.MOLAR_CONCENTRATION_PER_TIME);
 }
Example #14
0
        protected override void Context()
        {
            _interactionTaskContext = A.Fake <IInteractionTaskContext>();
            _editTasks          = A.Fake <IEditTaskFor <IMoleculeBuilder> >();
            _calculation        = A.Fake <ICoreCalculationMethodRepository>();
            _dimensionRetriever = A.Fake <IReactionDimensionRetriever>();
            _parameterFactory   = A.Fake <IParameterFactory>();
            _formulaTask        = A.Fake <IMoBiFormulaTask>();
            sut = new InteractionTasksForMoleculeBuilder(_interactionTaskContext, _editTasks, _dimensionRetriever, _parameterFactory, _calculation, _formulaTask);

            _interactionTask = A.Fake <IInteractionTask>();
            _context         = A.Fake <IMoBiContext>();
            A.CallTo(() => _interactionTaskContext.InteractionTask).Returns(_interactionTask);
            A.CallTo(() => _interactionTaskContext.Context).Returns(_context);
        }
Example #15
0
 public SelectEventAssingmentTargetPresenter(ISelectEventAssignmentTargetView view, IMoBiContext context,
                                             IObjectBaseToObjectBaseDTOMapper objectBaseDTOMapper, IContainerToContainerDTOMapper containerDTOMapper,
                                             IReactionBuilderToDummyReactionDTOMapper dummyReactionDTOMapper,
                                             IMoleculeBuilderToDummyMoleculeDTOMapper dummyMoleculeDTOMapper,
                                             IObjectPathFactory objectPathFactory, IParameterToDummyParameterDTOMapper dummyParameterDTOMapper, IReactionDimensionRetriever dimensionRetriever)
     : base(view)
 {
     _context                 = context;
     _dimensionRetriever      = dimensionRetriever;
     _objectPathFactory       = objectPathFactory;
     _dummyMoleculeDTOMapper  = dummyMoleculeDTOMapper;
     _dummyReactionDTOMapper  = dummyReactionDTOMapper;
     _containerDTOMapper      = containerDTOMapper;
     _dummyParameterDTOMapper = dummyParameterDTOMapper;
     _objectBaseDTOMapper     = objectBaseDTOMapper;
 }
Example #16
0
 public EditExplicitFormulaPresenter(
     IEditExplicitFormulaView view,
     IExplicitFormulaToExplicitFormulaDTOMapper explicitFormulaMapper,
     IMoBiFormulaTask moBiFormulaTask,
     IReactionDimensionRetriever reactionDimensionRetriever,
     IDisplayUnitRetriever displayUnitRetriever,
     IEditFormulaPathListPresenter editFormulaPathListPresenter) : base(view, displayUnitRetriever)
 {
     _explicitFormulaMapper        = explicitFormulaMapper;
     _moBiFormulaTask              = moBiFormulaTask;
     _reactionDimensionRetriever   = reactionDimensionRetriever;
     _editFormulaPathListPresenter = editFormulaPathListPresenter;
     AddSubPresenters(_editFormulaPathListPresenter);
     _view.AddFormulaPathListView(_editFormulaPathListPresenter.BaseView);
     _editFormulaPathListPresenter.DragDropAllowedFor = DragDropAllowedFor;
 }
Example #17
0
 public MoleculeStartValuesTask(
     IInteractionTaskContext interactionTaskContext,
     IEditTasksForBuildingBlock <IMoleculeStartValuesBuildingBlock> editTask,
     IMoleculeStartValuesCreator startValuesCreator,
     IImportedQuantityToMoleculeStartValueMapper dtoMapper,
     IMoleculeStartValueBuildingBlockMergeManager startValueBuildingBlockMergeManager,
     ICloneManagerForBuildingBlock cloneManagerForBuildingBlock,
     IReactionDimensionRetriever dimensionRetriever,
     IMoBiFormulaTask moBiFormulaTask,
     IMoBiSpatialStructureFactory spatialStructureFactory, IMoleculeStartValuePathTask moleculeStartValuePathTask, IMoleculeResolver moleculeResolver)
     : base(interactionTaskContext, editTask, startValueBuildingBlockMergeManager, cloneManagerForBuildingBlock, moBiFormulaTask, spatialStructureFactory, dtoMapper, moleculeStartValuePathTask)
 {
     _startValuesCreator = startValuesCreator;
     _dimensionRetriever = dimensionRetriever;
     _moleculeResolver   = moleculeResolver;
 }
 protected override void Context()
 {
     _view = A.Fake <IEditExplicitFormulaView>();
     _explicitFormulaMapper  = A.Fake <IExplicitFormulaToExplicitFormulaDTOMapper>();
     _activeSubjectRetriever = A.Fake <IActiveSubjectRetriever>();
     _context                    = A.Fake <IMoBiContext>();
     _formulaChecker             = A.Fake <ICircularReferenceChecker>();
     _dialogCreator              = A.Fake <IDialogCreator>();
     _interactionTask            = A.Fake <IInteractionTasksForChildren <IFormula, IFormulaUsablePath> >();
     _reactionDimensionRetriever = A.Fake <IReactionDimensionRetriever>();
     _displayUnitRetriever       = A.Fake <IDisplayUnitRetriever>();
     _dimensionFactory           = A.Fake <IDimensionFactory>();
     _userSettings               = A.Fake <IUserSettings>();
     _viewItemContextMenuFactory = A.Fake <IViewItemContextMenuFactory>();
     _moBiFormulaTask            = A.Fake <IMoBiFormulaTask>();
     sut = new EditExplicitFormulaPresenter(_view, _explicitFormulaMapper, _activeSubjectRetriever, _context, _formulaChecker,
                                            _moBiFormulaTask, _reactionDimensionRetriever, _displayUnitRetriever, _viewItemContextMenuFactory, _userSettings, _dimensionFactory);
 }
 public ConcentrationBaseModelHelperForSpecs(IObjectBaseFactory objectBaseFactory, IParameterStartValuesCreator parameterStartValuesCreator, IMoleculeStartValuesCreator moleculeStartValuesCreator,
                                             IObjectPathFactory objectPathFactory, IDimensionFactory dimensionFactory, ISpatialStructureFactory spatialStructureFactory,
                                             IOutputSchemaFactory outputSchemaFactory, IMoleculeBuilderFactory moleculeBuilderFactory,
                                             IReactionDimensionRetriever reactionDimensionRetriever, IModelConstructor modelConstructor, ISolverSettingsFactory solverSettingsFactory)
 {
     _objectBaseFactory             = objectBaseFactory;
     _outputSchemaFactory           = outputSchemaFactory;
     _moleculeBuilderFactory        = moleculeBuilderFactory;
     _modelConstructor              = modelConstructor;
     _solverSettingsFactory         = solverSettingsFactory;
     _reactionDimensionRetriever    = reactionDimensionRetriever.DowncastTo <ReactionDimensionRetrieverForSpecs>();
     _spatialStructureFactory       = spatialStructureFactory;
     _parameterStartValuesCreator   = parameterStartValuesCreator;
     _moleculeStartValuesCreator    = moleculeStartValuesCreator;
     _objectPathFactory             = objectPathFactory;
     _concentrationDimension        = dimensionFactory.Dimension(Constants.Dimension.MOLAR_CONCENTRATION);
     _concentrationPerTimeDimension = dimensionFactory.Dimension(Constants.Dimension.MOLAR_CONCENTRATION_PER_TIME);
     _volumeDimension = dimensionFactory.Dimension(Constants.Dimension.VOLUME);
 }
        protected override void Context()
        {
            _moleculeDimension = A.Fake <IDimension>();
            _kinetic           = new ExplicitFormula();
            _reaction          = new ReactionBuilder {
                Formula = _kinetic
            };
            _reactionBuildingBlock = A.Fake <IMoBiReactionBuildingBlock>();
            _reactionBuildingBlock.DiagramManager = A.Fake <IMoBiReactionDiagramManager>();
            _reactionPartner = new ReactionPartnerBuilder("A", 1);
            sut = new AddReactionPartnerToEductCollection(_reactionBuildingBlock, _reactionPartner, _reaction);

            _context            = A.Fake <IMoBiContext>();
            _dimensionRetriever = A.Fake <IReactionDimensionRetriever>();
            A.CallTo(() => _context.Resolve <IAliasCreator>()).Returns(new AliasCreator());
            A.CallTo(() => _context.Resolve <IReactionDimensionRetriever>()).Returns(_dimensionRetriever);
            A.CallTo(() => _context.Resolve <IObjectPathFactory>()).Returns(new ObjectPathFactory(new AliasCreator()));
            A.CallTo(() => _dimensionRetriever.MoleculeDimension).Returns(_moleculeDimension);
        }
 protected override void Context()
 {
     _reactionDimensionRetriever        = A.Fake <IReactionDimensionRetriever>();
     _dimensionFactory                  = A.Fake <IDimensionFactory>();
     _amoutToConcentrationFormulaMapper = A.Fake <IAmoutToConcentrationFormulaMapper>();
     _objectBaseFactory                 = A.Fake <IObjectBaseFactory>();
     _formulaTask          = A.Fake <IFormulaTask>();
     _displayUnitRetriever = A.Fake <IDisplayUnitRetriever>();
     _formulaFactory       = A.Fake <IFormulaFactory>();
     _constantZeroFormula  = new ConstantFormula(0);
     _formulaCache         = new FormulaCache();
     _objectTypeResolver   = new ObjectTypeResolver();
     A.CallTo(() => _formulaTask.AddParentVolumeReferenceToFormula(A <IFormula> ._)).Returns(Constants.VOLUME_ALIAS);
     A.CallTo(() => _dimensionFactory.Dimension(Constants.Dimension.AMOUNT)).Returns(DomainHelperForSpecs.AmountDimension);
     A.CallTo(() => _dimensionFactory.Dimension(Constants.Dimension.AMOUNT_PER_TIME)).Returns(DomainHelperForSpecs.AmountPerTimeDimension);
     A.CallTo(() => _dimensionFactory.Dimension(Constants.Dimension.MOLAR_CONCENTRATION)).Returns(DomainHelperForSpecs.ConcentrationDimension);
     A.CallTo(() => _dimensionFactory.Dimension(Constants.Dimension.MOLAR_CONCENTRATION_PER_TIME)).Returns(DomainHelperForSpecs.ConcentrationPerTimeDimension);
     A.CallTo(() => _objectBaseFactory.Create <ExplicitFormula>()).Returns(new ExplicitFormula());
     A.CallTo(() => _formulaFactory.ConstantFormula(0, DomainHelperForSpecs.ConcentrationDimension)).Returns(_constantZeroFormula);
     sut = new AmountToConcentrationConverter(_reactionDimensionRetriever, _dimensionFactory, _amoutToConcentrationFormulaMapper,
                                              _objectBaseFactory, _formulaTask, _displayUnitRetriever, _objectTypeResolver, _formulaFactory);
 }
Example #22
0
 public EditQuantityInSimulationPresenter(IEditQuantityInSimulationView view, IQuantityToQuantityDTOMapper quantityToQuantityDTOMapper,
                                          IFormulaPresenterCache formulaPresenterCache, IEditParametersInContainerPresenter parameterPresenter, IQuantityTask quantityTask, IReactionDimensionRetriever reactionDimensionRetriever)
     : base(view)
 {
     _quantityTask                = quantityTask;
     _parameterPresenter          = parameterPresenter;
     _parameterPresenter.EditMode = EditParameterMode.ValuesOnly;
     _quantityToQuantityDTOMapper = quantityToQuantityDTOMapper;
     _formulaPresenterCache       = formulaPresenterCache;
     _view.SetInitialValueLabel   = initialValueLabel(reactionDimensionRetriever.SelectedDimensionMode);
     AddSubPresenters(_parameterPresenter);
 }
 public ObjectPathCreatorAtEvent(IObjectPathFactory objectPathFactory, IAliasCreator aliasCreator, IMoBiContext context, IReactionDimensionRetriever dimensionRetriever)
     : base(objectPathFactory, aliasCreator, context)
 {
     _dimensionRetriever = dimensionRetriever;
 }
 public DataTableToImportQuantityDTOMapperForMolecules(IMoBiDimensionFactory dimensionFactory, IReactionDimensionRetriever reactionDimensionRetriever) : base(dimensionFactory)
 {
     _reactionDimensionRetriever = reactionDimensionRetriever;
 }
 public InteractionTasksForReactionBuilder(IInteractionTaskContext interactionTaskContext, IEditTaskFor <IReactionBuilder> editTask, IReactionDimensionRetriever dimensionRetriever)
     : base(interactionTaskContext, editTask)
 {
     _dimensionRetriever = dimensionRetriever;
 }
 public SimulationPersistableUpdater(IEntitiesInSimulationRetriever entitiesInSimulationRetriever, IContainerTask containerTask, IReactionDimensionRetriever reactionDimensionRetriever) :
     base(entitiesInSimulationRetriever)
 {
     _containerTask = containerTask;
     _reactionDimensionRetriever = reactionDimensionRetriever;
 }