protected override void Context() { _objectBaseFactory = A.Fake <IObjectBaseFactory>(); _simulationBuildingBlockUpdater = A.Fake <ISimulationBuildingBlockUpdater>(); _simulationModelCreator = A.Fake <ISimulationModelCreator>(); _simulationParametersUpdater = A.Fake <ISimulationParametersUpdater>(); _modelPropertiesTask = A.Fake <IModelPropertiesTask>(); _cloner = A.Fake <ICloner>(); _diagramModelFactory = A.Fake <IDiagramModelFactory>(); _interactionTask = A.Fake <IInteractionTask>(); _individual = A.Fake <Individual>(); _compounds = new List <Compound>(); A.CallTo(() => _individual.BuildingBlockType).Returns(PKSimBuildingBlockType.Individual); _population = A.Fake <Population>(); A.CallTo(() => _population.BuildingBlockType).Returns(PKSimBuildingBlockType.Population); _originData = new OriginData(); _modelProperties = A.Fake <ModelProperties>(); _individualSimulation = A.Fake <IndividualSimulation>(); _populationSimulation = A.Fake <PopulationSimulation>(); _objectIdResetter = A.Fake <IObjectIdResetter>(); _compoundPropertiesUpdater = A.Fake <ICompoundPropertiesUpdater>(); A.CallTo(() => _objectBaseFactory.Create <IndividualSimulation>()).Returns(_individualSimulation); A.CallTo(() => _objectBaseFactory.Create <PopulationSimulation>()).Returns(_populationSimulation); _individual.OriginData = _originData; A.CallTo(() => _individual.Organism).Returns(A.Fake <Organism>()); sut = new SimulationFactory(_objectBaseFactory, _simulationBuildingBlockUpdater, _simulationModelCreator, _objectIdResetter, _compoundPropertiesUpdater, _simulationParametersUpdater, _modelPropertiesTask, _cloner, _diagramModelFactory, _interactionTask); }
protected override void Context() { _cloner = A.Fake <ICloner>(); _buildingBlockInSimulationManager = A.Fake <IBuildingBlockInSimulationManager>(); _compoundPropertiesUpdater = A.Fake <ICompoundPropertiesUpdater>(); sut = new BuildingBlockInSimulationSynchronizer(_buildingBlockInSimulationManager, _cloner, _compoundPropertiesUpdater); }
public SimulationFactory(IObjectBaseFactory objectBaseFactory, ISimulationBuildingBlockUpdater simulationBuildingBlockUpdater, ISimulationModelCreator simulationModelCreator, IObjectIdResetter objectIdResetter, ICompoundPropertiesUpdater compoundPropertiesUpdater, ISimulationParametersUpdater simulationParametersUpdater, IModelPropertiesTask modelPropertiesTask, ICloner cloner, IDiagramModelFactory diagramModelFactory, IInteractionTask interactionTask) { _objectBaseFactory = objectBaseFactory; _simulationBuildingBlockUpdater = simulationBuildingBlockUpdater; _simulationModelCreator = simulationModelCreator; _objectIdResetter = objectIdResetter; _compoundPropertiesUpdater = compoundPropertiesUpdater; _simulationParametersUpdater = simulationParametersUpdater; _modelPropertiesTask = modelPropertiesTask; _cloner = cloner; _diagramModelFactory = diagramModelFactory; _interactionTask = interactionTask; }
public BuildingBlockInSimulationSynchronizer(IBuildingBlockInSimulationManager buildingBlockInSimulationManager, ICloner cloner, ICompoundPropertiesUpdater compoundPropertiesUpdater) { _buildingBlockInSimulationManager = buildingBlockInSimulationManager; _cloner = cloner; _compoundPropertiesUpdater = compoundPropertiesUpdater; }