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);
 }
Esempio n. 2
0
 public Converter321To331(IMoBiContext context, IFormulaTask formulaTask)
 {
     _context     = context;
     _formulaTask = formulaTask;
 }
 public PassiveTransportConverter(IObjectBaseFactory objectBaseFactory, IMoBiProjectRetriever projectRetriever, IContainerTask containerTask,
                                  IEventPublisher eventPublisher, ICloneManagerForModel cloneManager, IFormulaTask formulaTask)
 {
     _objectBaseFactory = objectBaseFactory;
     _projectRetriever  = projectRetriever;
     _containerTask     = containerTask;
     _eventPublisher    = eventPublisher;
     _cloneManager      = cloneManager;
     _formulaTask       = formulaTask;
 }
 protected AbstractStartValuePathTask(IFormulaTask formulaTask, IMoBiContext context)
 {
     _formulaTask = formulaTask;
     _context     = context;
 }
 public ParameterStartValuePathTask(IFormulaTask formulaTask, IMoBiContext context) : base(formulaTask, context)
 {
 }
Esempio n. 6
0
 public ModelConstructor(IObjectBaseFactory objectBaseFactory, IObserverBuilderTask observerBuilderTask,
                         IReactionCreator reactionCreator, IMoleculePropertiesContainerTask moleculePropertiesContainerTask,
                         IContainerBuilderToContainerMapper containerMapper, INeighborhoodCollectionToContainerMapper neighborhoodsMapper,
                         IMoleculeBuilderToMoleculeAmountMapper moleculeMapper, IReferencesResolver referencesResolver,
                         IEventBuilderTask eventBuilderTask, IKeywordReplacerTask keywordReplacerTask,
                         ITransportCreator transportCreator, IProgressManager progressManager, IFormulaTask formulaTask, ICalculationMethodTask calculationMethodTask,
                         IBuildConfigurationValidator buildConfigurationValidator, IParameterBuilderToParameterMapper parameterMapper,
                         IQuantityValuesUpdater quantityValuesUpdater, IModelValidatorFactory modelValidatorFactory,
                         ICircularReferenceChecker circularReferenceChecker)
 {
     _objectBaseFactory               = objectBaseFactory;
     _buildConfigurationValidator     = buildConfigurationValidator;
     _parameterMapper                 = parameterMapper;
     _quantityValuesUpdater           = quantityValuesUpdater;
     _modelValidatorFactory           = modelValidatorFactory;
     _circularReferenceChecker        = circularReferenceChecker;
     _observerBuilderTask             = observerBuilderTask;
     _reactionCreator                 = reactionCreator;
     _moleculePropertiesContainerTask = moleculePropertiesContainerTask;
     _containerMapper                 = containerMapper;
     _neighborhoodsMapper             = neighborhoodsMapper;
     _moleculeMapper        = moleculeMapper;
     _referencesResolver    = referencesResolver;
     _eventBuilderTask      = eventBuilderTask;
     _keywordReplacerTask   = keywordReplacerTask;
     _transportCreator      = transportCreator;
     _progressManager       = progressManager;
     _formulaTask           = formulaTask;
     _calculationMethodTask = calculationMethodTask;
 }
 public ConcentrationBasedFormulaUpdater(ICloneManagerForModel cloneManagerForModel,
                                         IObjectBaseFactory objectBaseFactory, IDimensionFactory dimensionFactory, IFormulaTask formulaTask)
 {
     _cloneManagerForModel = cloneManagerForModel;
     _objectBaseFactory    = objectBaseFactory;
     _dimensionFactory     = dimensionFactory;
     _formulaTask          = formulaTask;
 }
Esempio n. 8
0
 protected InteractionTasksForMergableBuildingBlock(IInteractionTaskContext interactionTaskContext, IEditTasksForBuildingBlock <TBuildingBlock> editTask, IInteractionTasksForBuilder <TBuilder> builderTask, IMergeIgnoreReplaceMergeManager <TBuilder> mergeIgnoreReplaceMergeManager, IFormulaTask formulaTask, IMoleculeListTasks moleculeListTasks)
     : base(interactionTaskContext, editTask, builderTask)
 {
     _mergeIgnoreReplaceMergeManager = mergeIgnoreReplaceMergeManager;
     _formulaTask       = formulaTask;
     _moleculeListTasks = moleculeListTasks;
 }
Esempio n. 9
0
 public MoleculeStartValuePathTask(IFormulaTask formulaTask, IMoBiContext context) : base(formulaTask, context)
 {
 }