public MoleculePropertiesContainerTask(IContainerTask containerTask, IParameterBuilderCollectionToParameterCollectionMapper parameterCollectionMapper, IKeywordReplacerTask keywordReplacer) { _containerTask = containerTask; _parameterCollectionMapper = parameterCollectionMapper; _keywordReplacer = keywordReplacer; }
protected override void Context() { _reactionMapper = A.Fake <IReactionBuilderToReactionMapper>(); _keywordReplacerTask = A.Fake <IKeywordReplacerTask>(); _containerTask = A.Fake <IContainerTask>(); _parameterMapper = A.Fake <IParameterBuilderCollectionToParameterCollectionMapper>(); sut = new ReactionCreator(_reactionMapper, _keywordReplacerTask, _containerTask, _parameterMapper); _model = A.Fake <IModel>(); _reactionBuilder = A.Fake <IReactionBuilder>(); _reactionBuilder.ContainerCriteria = new DescriptorCriteria(); _reactionBuilder.Description = "A great description"; _reactionBuilder.Name = "Reaction"; _educt1 = A.Fake <IReactionPartnerBuilder>(); _educt1.MoleculeName = "sp1"; _educt2 = A.Fake <IReactionPartnerBuilder>(); _educt2.MoleculeName = "sp2"; _product1 = A.Fake <IReactionPartnerBuilder>(); _product1.MoleculeName = "sp3"; A.CallTo(() => _reactionBuilder.Educts).Returns(new[] { _educt1, _educt2 }); A.CallTo(() => _reactionBuilder.Products).Returns(new[] { _product1 }); A.CallTo(() => _reactionBuilder.ModifierNames).Returns(new[] { "modifier" }); _buildConfiguration = A.Fake <IBuildConfiguration>(); _rootContainer = new Container().WithMode(ContainerMode.Physical); _model.Root = _rootContainer; _globalContainer = new Container(); _reaction = A.Fake <IReaction>().WithName(_reactionBuilder.Name); A.CallTo(() => _reactionMapper.MapFromLocal(A <IReactionBuilder> ._, A <IContainer> ._, _buildConfiguration)).Returns(_reaction); A.CallTo(() => _containerTask.CreateOrRetrieveSubContainerByName(_rootContainer, _reactionBuilder.Name)).Returns(_globalContainer); }
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 TransportCreator(ITransportBuilderToTransportMapper transportMapper, IKeywordReplacerTask keywordReplacerTask, IMoleculePropertiesContainerTask moleculePropertiesContainerTask) { _transportMapper = transportMapper; _keywordReplacerTask = keywordReplacerTask; _moleculePropertiesContainerTask = moleculePropertiesContainerTask; }
public QuantityValuesUpdater(IKeywordReplacerTask keywordReplacerTask, ICloneManagerForModel cloneManagerForModel, IFormulaFactory formulaFactory, IConcentrationBasedFormulaUpdater concentrationBasedFormulaUpdater) { _keywordReplacerTask = keywordReplacerTask; _cloneManagerForModel = cloneManagerForModel; _formulaFactory = formulaFactory; _concentrationBasedFormulaUpdater = concentrationBasedFormulaUpdater; }
public BuildingBlockFinalizer(IReferencesResolver referencesResolver, IKeywordReplacerTask keywordReplacerTask, INeighborhoodFinalizer neighborhoodFinalizer, IBuildingBlockInSimulationManager buildingBlockInSimulationManager, IIndividualPathWithRootExpander individualPathWithRootExpander) { _referencesResolver = referencesResolver; _keywordReplacerTask = keywordReplacerTask; _neighborhoodFinalizer = neighborhoodFinalizer; _buildingBlockInSimulationManager = buildingBlockInSimulationManager; _individualPathWithRootExpander = individualPathWithRootExpander; }
public ObserverBuilderTask( IObserverBuilderToObserverMapper observerMapper, IContainerTask containerTask, IKeywordReplacerTask keywordReplacerTask) { _observerMapper = observerMapper; _containerTask = containerTask; _keywordReplacerTask = keywordReplacerTask; }
public CalculationMethodTask(IFormulaTask formulaTask, IKeywordReplacerTask keywordReplacerTask, IFormulaBuilderToFormulaMapper formulaMapper, IParameterBuilderToParameterMapper parameterMapper, IObjectPathFactory objectPathFactory) { _formulaTask = formulaTask; _keywordReplacerTask = keywordReplacerTask; _formulaMapper = formulaMapper; _parameterMapper = parameterMapper; _objectPathFactory = objectPathFactory; }
protected override void Context() { _containerTask = A.Fake <IContainerTask>(); _buildConfiguration = A.Fake <IBuildConfiguration>(); _rootContainer = new Container(); _parameterCollectionMapper = A.Fake <IParameterBuilderCollectionToParameterCollectionMapper>(); _keywordReplacer = A.Fake <IKeywordReplacerTask>(); sut = new MoleculePropertiesContainerTask(_containerTask, _parameterCollectionMapper, _keywordReplacer); }
public ReactionCreator(IReactionBuilderToReactionMapper reactionMapper, IKeywordReplacerTask keywordReplacerTask, IContainerTask containerTask, IParameterBuilderCollectionToParameterCollectionMapper parameterMapper) { _reactionMapper = reactionMapper; _keywordReplacerTask = keywordReplacerTask; _containerTask = containerTask; _parameterMapper = parameterMapper; }
protected override void Context() { _referenceResolver = A.Fake <IReferencesResolver>(); _keywordReplacerTask = A.Fake <IKeywordReplacerTask>(); _neighborhoodFinalizer = A.Fake <INeighborhoodFinalizer>(); _buildingBlockInSimulationManager = A.Fake <IBuildingBlockInSimulationManager>(); _individualPathWithRootExpander = A.Fake <IIndividualPathWithRootExpander>(); sut = new BuildingBlockFinalizer(_referenceResolver, _keywordReplacerTask, _neighborhoodFinalizer, _buildingBlockInSimulationManager, _individualPathWithRootExpander); }
protected override void Context() { _objectBaseFactory = A.Fake <IObjectBaseFactory>(); _containerMapper = A.Fake <IContainerBuilderToContainerMapper>(); _objectPathFactory = A.Fake <IObjectPathFactory>(); _cloneManagerForModel = A.Fake <ICloneManagerForModel>(); _keywordReplacerTask = A.Fake <IKeywordReplacerTask>(); _parameterMapper = A.Fake <IParameterBuilderToParameterMapper>(); sut = new NeighborhoodBuilderToNeighborhoodMapper(_objectBaseFactory, _containerMapper, _objectPathFactory, _keywordReplacerTask, _cloneManagerForModel, _parameterMapper); }
public EventBuilderTask( IKeywordReplacerTask keywordReplacerTask, ITransportBuilderToTransportMapper transportMapper, IEventGroupBuilderToEventGroupMapper eventGroupMapper, IContainerTask containerTask) { _keywordReplacerTask = keywordReplacerTask; _transportMapper = transportMapper; _eventGroupMapper = eventGroupMapper; }
protected override void Context() { _concentrationBasedFormulaUpdater = A.Fake <IConcentrationBasedFormulaUpdater>(); _keywordReplacerTask = A.Fake <IKeywordReplacerTask>(); _cloneManagerForModel = A.Fake <ICloneManagerForModel>(); _formulaFactory = A.Fake <IFormulaFactory>(); sut = new QuantityValuesUpdater(_keywordReplacerTask, _cloneManagerForModel, _formulaFactory, _concentrationBasedFormulaUpdater); _model = A.Fake <IModel>(); _buildConfiguration = A.Fake <IBuildConfiguration>(); }
protected override void Context() { _objectBaseFactory = A.Fake <IObjectBaseFactory>(); _formulaMapper = A.Fake <IFormulaBuilderToFormulaMapper>(); _parameterMapper = A.Fake <IParameterBuilderCollectionToParameterCollectionMapper>(); _keywordReplacerTask = A.Fake <IKeywordReplacerTask>(); _formulaFactory = A.Fake <IFormulaFactory>(); _dimensionFactory = A.Fake <IDimensionFactory>(); _parameterFactory = A.Fake <IParameterFactory>(); sut = new MoleculeBuilderToMoleculeAmountMapper(_objectBaseFactory, _formulaMapper, _parameterMapper, _dimensionFactory, _keywordReplacerTask, _formulaFactory, _parameterFactory); }
public NeighborhoodBuilderToNeighborhoodMapper(IObjectBaseFactory objectBaseFactory, IContainerBuilderToContainerMapper containerMapper, IObjectPathFactory objectPathFactory, IKeywordReplacerTask keywordReplacerTask, ICloneManagerForModel cloneManagerForModel, IParameterBuilderToParameterMapper parameterMapper) { _objectBaseFactory = objectBaseFactory; _containerMapper = containerMapper; _objectPathFactory = objectPathFactory; _keywordReplacerTask = keywordReplacerTask; _cloneManagerForModel = cloneManagerForModel; _parameterMapper = parameterMapper; }
public MoleculeBuilderToMoleculeAmountMapper(IObjectBaseFactory objectBaseFactory, IFormulaBuilderToFormulaMapper formulaMapper, IParameterBuilderToParameterMapper parameterMapper, IDimensionFactory dimensionFactory, IKeywordReplacerTask keywordReplacerTask, IFormulaFactory formulaFactory, IParameterFactory parameterFactory) { _objectBaseFactory = objectBaseFactory; _formulaMapper = formulaMapper; _parameterMapper = parameterMapper; _keywordReplacerTask = keywordReplacerTask; _formulaFactory = formulaFactory; _parameterFactory = parameterFactory; _amountDimension = dimensionFactory.Dimension(Constants.Dimension.MOLAR_AMOUNT); }
protected override void Context() { _observerMapper = A.Fake <IObserverBuilderToObserverMapper>(); _buildConfiguration = A.Fake <IBuildConfiguration>(); _observerBuildingBlock = new ObserverBuildingBlock(); _model = A.Fake <IModel>(); _buildConfiguration.Observers = _observerBuildingBlock; A.CallTo(() => _buildConfiguration.AllPresentMolecules()).Returns(new[] { A.Fake <IMoleculeBuilder>().WithName(_molecule1), A.Fake <IMoleculeBuilder>().WithName(_molecule2) }); _rootContainer = new Container(); _organism = new Container().WithName("Organism"); _organism.AddTag(new Tag("Organism")); _rootContainer.Add(_organism); _rootNeihgborhood = new Container(); _model.Root = _rootContainer; _model.Neighborhoods = _rootNeihgborhood; _keywordReplacerTask = A.Fake <IKeywordReplacerTask>(); _containerTask = A.Fake <IContainerTask>(); sut = new ObserverBuilderTask(_observerMapper, _containerTask, _keywordReplacerTask); }