コード例 #1
0
 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;
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 public SimulationResultsTask(IChartTemplatingTask chartTemplatingTask, IRenameBuildingBlockTask renameBuildingBlockTask,
                              ISimulationResultsSynchronizer simulationResultsSynchronizer, ICloner cloner, ISimulationResultsCreator simulationResultsCreator,
                              IDataRepositoryFromResultsCreator dataRepositoryCreator)
 {
     _chartTemplatingTask           = chartTemplatingTask;
     _simulationResultsSynchronizer = simulationResultsSynchronizer;
     _cloner = cloner;
     _simulationResultsCreator = simulationResultsCreator;
     _dataRepositoryCreator    = dataRepositoryCreator;
 }