public CloneSimulationPresenter(ICloneSimulationView view, ISubPresenterItemManager <ISimulationItemPresenter> subPresenterItemManager, ISimulationModelCreator simulationModelCreator, IHeavyWorkManager heavyWorkManager, ICloner cloner, IDialogCreator dialogCreator, IObjectBaseDTOFactory buildingBlockDTOFactory, IRenameBuildingBlockTask renameBuildingBlockTask, ISimulationParametersUpdater simulationParametersUpdater, IFullPathDisplayResolver fullPathDisplayResolver, IBuildingBlockInSimulationSynchronizer buildingBlockInSimulationSynchronizer) : base(view, subPresenterItemManager, simulationModelCreator, heavyWorkManager, cloner, dialogCreator, simulationParametersUpdater, fullPathDisplayResolver, buildingBlockInSimulationSynchronizer, CreationMode.Clone) { _buildingBlockDTOFactory = buildingBlockDTOFactory; _renameBuildingBlockTask = renameBuildingBlockTask; }
protected override void Context() { _buildingBlockTask = A.Fake <IBuildingBlockTask>(); _buildingBlockInSimulationManager = A.Fake <IBuildingBlockInSimulationManager>(); _simulationSettingsRetriever = A.Fake <ISimulationSettingsRetriever>(); _simulationResultsTask = A.Fake <ISimulationResultsTask>(); _applicationController = A.Fake <IApplicationController>(); _renameBuildingBlockTask = A.Fake <IRenameBuildingBlockTask>(); sut = new CloneSimulationTask(_buildingBlockTask, _buildingBlockInSimulationManager, _simulationSettingsRetriever, _simulationResultsTask, _applicationController, _renameBuildingBlockTask); }
public CloneSimulationTask(IBuildingBlockTask buildingBlockTask, IBuildingBlockInProjectManager buildingBlockInProjectManager, ISimulationSettingsRetriever simulationSettingsRetriever, ISimulationResultsTask simulationResultsTask, IApplicationController applicationController, IRenameBuildingBlockTask renameBuildingBlockTask) { _buildingBlockTask = buildingBlockTask; _buildingBlockInProjectManager = buildingBlockInProjectManager; _simulationSettingsRetriever = simulationSettingsRetriever; _simulationResultsTask = simulationResultsTask; _applicationController = applicationController; _renameBuildingBlockTask = renameBuildingBlockTask; }
protected override void Context() { _chartTemplatingTask = A.Fake <IChartTemplatingTask>(); _renameBuildingBlockTask = A.Fake <IRenameBuildingBlockTask>(); _simulationResultsSynchronizer = A.Fake <ISimulationResultsSynchronizer>(); _simulationResultsCreator = A.Fake <ISimulationResultsCreator>(); _dataRepositoryCreator = A.Fake <IDataRepositoryFromResultsCreator>(); _cloner = A.Fake <ICloner>(); sut = new SimulationResultsTask(_chartTemplatingTask, _simulationResultsSynchronizer, _cloner, _simulationResultsCreator, _dataRepositoryCreator); }
public SimulationResultsTask(IChartTemplatingTask chartTemplatingTask, IRenameBuildingBlockTask renameBuildingBlockTask, ISimulationResultsSynchronizer simulationResultsSynchronizer, ICloner cloner, ISimulationResultsCreator simulationResultsCreator, IDataRepositoryFromResultsCreator dataRepositoryCreator) { _chartTemplatingTask = chartTemplatingTask; _simulationResultsSynchronizer = simulationResultsSynchronizer; _cloner = cloner; _simulationResultsCreator = simulationResultsCreator; _dataRepositoryCreator = dataRepositoryCreator; }