Exemplo n.º 1
0
        protected override void Context()
        {
            _applicationController            = A.Fake <IApplicationController>();
            _buildingBlockTask                = A.Fake <IBuildingBlockTask>();
            _buildingBlockInSimulationManager = A.Fake <IBuildingBlockInSimulationManager>();
            _lazyloadTask               = A.Fake <ILazyLoadTask>();
            _heavyWorkManager           = A.Fake <IHeavyWorkManager>();
            _containerTask              = A.Fake <IContainerTask>();
            _objectReferencingRetriever = A.Fake <IObjectReferencingRetriever>();
            _projectRetriever           = A.Fake <IProjectRetriever>();
            _renameAbsolutePathVisitor  = new RenameAbsolutePathVisitor();
            _objectPathFactory          = new ObjectPathFactoryForSpecs();
            _parameterIdentificationSimulationPathUpdater = A.Fake <IParameterIdentificationSimulationPathUpdater>();
            _dataRepositoryNamer = A.Fake <IDataRepositoryNamer>();
            _curveNamer          = A.Fake <ICurveNamer>();

            sut = new RenameBuildingBlockTask(_buildingBlockTask, _buildingBlockInSimulationManager, _applicationController, _lazyloadTask,
                                              _containerTask, _heavyWorkManager, _renameAbsolutePathVisitor, _objectReferencingRetriever, _projectRetriever, _parameterIdentificationSimulationPathUpdater, _dataRepositoryNamer, _curveNamer);

            _initialSimulationName      = "S";
            _individualSimulation       = new IndividualSimulation().WithName(_initialSimulationName);
            _individualSimulation.Model = new Model().WithName(_initialSimulationName);
            _simulation = _individualSimulation;
            _root       = new Container().WithName(_initialSimulationName);
            _individualSimulation.Model.Root = _root;
        }
 public RenameBuildingBlockTask(
     IBuildingBlockTask buildingBlockTask,
     IBuildingBlockInProjectManager buildingBlockInProjectManager,
     IApplicationController applicationController,
     ILazyLoadTask lazyLoadTask, IContainerTask containerTask,
     IHeavyWorkManager heavyWorkManager,
     IRenameAbsolutePathVisitor renameAbsolutePathVisitor,
     IObjectReferencingRetriever objectReferencingRetriever,
     IProjectRetriever projectRetriever,
     IParameterIdentificationSimulationPathUpdater simulationPathUpdater,
     IDataRepositoryNamer dataRepositoryNamer,
     ICurveNamer curveNamer,
     IExpressionProfileUpdater expressionProfileUpdater)
 {
     _buildingBlockTask             = buildingBlockTask;
     _buildingBlockInProjectManager = buildingBlockInProjectManager;
     _applicationController         = applicationController;
     _lazyLoadTask               = lazyLoadTask;
     _containerTask              = containerTask;
     _heavyWorkManager           = heavyWorkManager;
     _renameAbsolutePathVisitor  = renameAbsolutePathVisitor;
     _objectReferencingRetriever = objectReferencingRetriever;
     _projectRetriever           = projectRetriever;
     _simulationPathUpdater      = simulationPathUpdater;
     _dataRepositoryNamer        = dataRepositoryNamer;
     _curveNamer = curveNamer;
     _expressionProfileUpdater = expressionProfileUpdater;
 }
Exemplo n.º 3
0
        protected override void Context()
        {
            _context                 = A.Fake <IInteractionTaskContext>();
            _simulationPersistor     = A.Fake <ISimulationPersistor>();
            _dialogCreator           = A.Fake <IDialogCreator>();
            _dataRepositoryTask      = A.Fake <IDataRepositoryExportTask>();
            _simulationModelExporter = A.Fake <ISimModelExporter>();
            _reportCreator           = A.Fake <IModelReportCreator>();
            _dimensionFactory        = A.Fake <IDimensionFactory>();
            _parameterIdentificationSimulationPathUpdater = A.Fake <IParameterIdentificationSimulationPathUpdater>();

            sut = new EditTasksForSimulation(_context, _simulationPersistor, _dialogCreator, _dataRepositoryTask, _reportCreator, _simulationModelExporter, _dimensionFactory, _parameterIdentificationSimulationPathUpdater);
        }
Exemplo n.º 4
0
 public EditTasksForSimulation(
     IInteractionTaskContext interactionTaskContext,
     ISimulationPersistor simulationPersistor,
     IDialogCreator dialogCreator,
     IDataRepositoryTask dataRepositoryTask,
     IModelReportCreator reportCreator,
     ISimModelExporter simModelExporter,
     IDimensionFactory dimensionFactory,
     IParameterIdentificationSimulationPathUpdater parameterIdentificationSimulationPathUpdater) : base(interactionTaskContext)
 {
     _simulationPersistor = simulationPersistor;
     _dialogCreator       = dialogCreator;
     _dataRepositoryTask  = dataRepositoryTask;
     _reportCreator       = reportCreator;
     _simModelExporter    = simModelExporter;
     _dimensionFactory    = dimensionFactory;
     _parameterIdentificationSimulationPathUpdater = parameterIdentificationSimulationPathUpdater;
 }
Exemplo n.º 5
0
 public EditTaskForSimulation(IInteractionTaskContext interactionTaskContext, IParameterIdentificationSimulationPathUpdater parameterIdentificationSimulationPathUpdater) : base(interactionTaskContext)
 {
     _parameterIdentificationSimulationPathUpdater = parameterIdentificationSimulationPathUpdater;
 }
 protected override void Context()
 {
     _interactionTaskContext = A.Fake <IInteractionTaskContext>();
     _parameterIdentificationSimulationPathUpdater = A.Fake <IParameterIdentificationSimulationPathUpdater>();
     sut = new EditTaskForSimulation(_interactionTaskContext, _parameterIdentificationSimulationPathUpdater);
 }