protected InteractionTasksForMergableBuildingBlock(IInteractionTaskContext interactionTaskContext, IEditTasksForBuildingBlock <TBuildingBlock> editTask, IInteractionTasksForBuilder <TBuilder> builderTask, IMergeIgnoreReplaceMergeManager <TBuilder> mergeIgnoreReplaceMergeManager, IFormulaTask formulaTask, IMoleculeListTasks moleculeListTasks) : base(interactionTaskContext, editTask, builderTask) { _mergeIgnoreReplaceMergeManager = mergeIgnoreReplaceMergeManager; _formulaTask = formulaTask; _moleculeListTasks = moleculeListTasks; }
protected override void Context() { _idGenerator = A.Fake <IIdGenerator>(); _interactionTaskContext = A.Fake <IInteractionTaskContext>(); _editTask = A.Fake <IEditTaskFor <IApplicationMoleculeBuilder> >(); sut = new InteractionTasksForApplicationMoleculeBuilder(_interactionTaskContext, _editTask, _idGenerator); }
public EditParametersInContainerPresenter(IEditParametersInContainerView view, IFormulaToFormulaBuilderDTOMapper formulaMapper, IParameterToParameterDTOMapper parameterToDTOParameterMapper, IInteractionTasksForParameter parameterTask, IEditDistributedParameterPresenter editDistributedParameterPresenter, IEditParameterPresenter editParameterPresenter, IQuantityTask quantityTask, IInteractionTaskContext interactionTaskContext, IClipboardManager clipboardManager, IEditTaskFor <IParameter> editTask, ISelectReferencePresenterFactory selectReferencePresenterFactory, IFavoriteTask favoriteTask) : base(view, quantityTask, interactionTaskContext, formulaMapper, parameterTask, favoriteTask) { _clipboardManager = clipboardManager; _editTask = editTask; _selectReferencePresenterFactory = selectReferencePresenterFactory; _editDistributedParameterPresenter = editDistributedParameterPresenter; _editParameterPresenter = editParameterPresenter; EditMode = EditParameterMode.All; _parameterToDTOParameterMapper = parameterToDTOParameterMapper; _editParameterPresenter = editParameterPresenter; _editDistributedParameterPresenter = editDistributedParameterPresenter; AddSubPresenters(_editDistributedParameterPresenter, _editParameterPresenter); _getParametersFunc = x => x.GetChildrenSortedByName <IParameter>(); ChangeLocalisationAllowed = true; }
protected EditTaskFor(IInteractionTaskContext interactionTaskContext) { _interactionTaskContext = interactionTaskContext; _applicationController = interactionTaskContext.ApplicationController; _interactionTask = interactionTaskContext.InteractionTask; _context = interactionTaskContext.Context; ObjectName = _interactionTaskContext.GetTypeFor <T>(); }
protected InteractionTasksForEnumerableBuildingBlock( IInteractionTaskContext interactionTaskContext, IEditTasksForBuildingBlock <TBuildingBlock> editTask, IInteractionTasksForBuilder <TBuilder> builderTask) : base(interactionTaskContext, editTask) { _builderTask = builderTask; }
public InteractionTasksForDistributedParameter(IInteractionTaskContext interactionTaskContext, IEditTaskFor <IDistributedParameter> editTasks, IMoBiDimensionFactory dimensionFactory, IParameterFactory parameterFactory, IDistributionFormulaFactory distributionFormulaFactory) : base(interactionTaskContext, editTasks) { _dimensionFactory = dimensionFactory; _parameterFactory = parameterFactory; _distributionFormulaFactory = distributionFormulaFactory; }
public InteractionTasksForEventBuildingBlock( IInteractionTaskContext interactionTaskContext, IEditTasksForBuildingBlock <IEventGroupBuildingBlock> editTask, IInteractionTasksForBuilder <IEventGroupBuilder> builderTask, IEventBuildingBlockMergeManager ignoreReplaceCloneMergeManager) : base(interactionTaskContext, editTask, builderTask, ignoreReplaceCloneMergeManager) { }
protected override void Context() { _spatialStructureFactory = A.Fake <IMoBiSpatialStructureFactory>(); _interactionTaskContext = A.Fake <IInteractionTaskContext>(); _interactionTask = A.Fake <IInteractionTask>(); A.CallTo(() => _interactionTaskContext.InteractionTask).Returns(_interactionTask); sut = new EditTaskForContainer(_interactionTaskContext, _spatialStructureFactory); }
public InteractionTasksForMoleculeBuildingBlock( IInteractionTaskContext interactionTaskContext, IEditTasksForBuildingBlock <IMoleculeBuildingBlock> editTask, IInteractionTasksForBuilder <IMoleculeBuilder> builderTask, IMoleculeBuildingBlockCloneManager moleculeBuildingBlockCloneManager) : base(interactionTaskContext, editTask, builderTask, moleculeBuildingBlockCloneManager) { _editTaskForBuildingBlock = editTask; }
protected override void Context() { _context = A.Fake <IInteractionTaskContext>(); _editTasks = A.Fake <IEditTaskFor <IParameter> >(); _dimensionFactory = A.Fake <IMoBiDimensionFactory>(); _formulaTask = A.Fake <IMoBiFormulaTask>(); _quantityTask = A.Fake <IQuantityTask>(); sut = new InteractionTasksForParameter(_context, _editTasks, _dimensionFactory, _formulaTask, _quantityTask); }
public EditTasksForTransporterMoleculeContainer(IInteractionTaskContext interactionTaskContext, ICoreCalculationMethodRepository calculationMethodRepository, IReactionDimensionRetriever dimensionRetriever, IObjectBaseTask objectBaseTask, IDialogCreator dialogCreator) : base(interactionTaskContext) { _calculationMethodRepository = calculationMethodRepository; _dimensionRetriever = dimensionRetriever; _objectBaseTask = objectBaseTask; _dialogCreator = dialogCreator; }
public InteractionTasksForMoleculeBuilder(IInteractionTaskContext interactionTaskContext, IEditTaskFor <IMoleculeBuilder> editTask, IReactionDimensionRetriever dimensionRetriever, IParameterFactory parameterFactory, ICoreCalculationMethodRepository calculationMethodRepository, IMoBiFormulaTask formulaTask) : base(interactionTaskContext, editTask) { _dimensionRetriever = dimensionRetriever; _parameterFactory = parameterFactory; _calculationMethodRepository = calculationMethodRepository; _formulaTask = formulaTask; }
protected override void Context() { _context = A.Fake <IInteractionTaskContext>(); _editTask = A.Fake <IEditTaskFor <IDistributedParameter> >(); _dimensionFactory = A.Fake <IMoBiDimensionFactory>(); _parameterFactory = A.Fake <IParameterFactory>(); _distributionFactory = A.Fake <IDistributionFormulaFactory>(); sut = new InteractionTasksForDistributedParameter(_context, _editTask, _dimensionFactory, _parameterFactory, _distributionFactory); }
protected InteractionTaskForCloneMergeBuildingBlock( IInteractionTaskContext interactionTaskContext, IEditTasksForBuildingBlock <TBuildingBlock> editTask, IInteractionTasksForBuilder <TBuilder> builderTask, IIgnoreReplaceCloneMergeManager <TBuilder> cloneMergeManager) : base(interactionTaskContext, editTask, builderTask) { _ignoreReplaceCloneMergeManager = cloneMergeManager; }
protected override void Context() { _interactionTaskContext = A.Fake <IInteractionTaskContext>(); _editTasksForBuildingBlock = A.Fake <IEditTasksForBuildingBlock <IMoleculeBuildingBlock> >(); _task = A.Fake <IInteractionTasksForBuilder <IMoleculeBuilder> >(); _moleculeBuildingBlockCloneManager = A.Fake <IMoleculeBuildingBlockCloneManager>(); sut = new InteractionTasksForMoleculeBuildingBlock(_interactionTaskContext, _editTasksForBuildingBlock, _task, _moleculeBuildingBlockCloneManager); }
protected AbstractParameterBasePresenter(TView view, IQuantityTask quantityTask, IInteractionTaskContext interactionTaskContext, IFormulaToFormulaBuilderDTOMapper formulaMapper, IInteractionTasksForParameter parameterTask, IFavoriteTask favoriteTask) : base(view) { _quantityTask = quantityTask; _interactionTaskContext = interactionTaskContext; _formulaMapper = formulaMapper; _parameterTask = parameterTask; _favoriteTask = favoriteTask; }
protected override void Context() { _context = A.Fake <IInteractionTaskContext>(); _editTask = A.Fake <IEditTasksForSimulation>(); _applicationController = A.Fake <IMoBiApplicationController>(); _dialogCreator = A.Fake <IDialogCreator>(); A.CallTo(() => _context.ApplicationController).Returns(_applicationController); A.CallTo(() => _context.DialogCreator).Returns(_dialogCreator); _simulationReferenceUpdater = A.Fake <ISimulationReferenceUpdater>(); sut = new InteractionTasksForSimulation(_context, _editTask, _simulationReferenceUpdater); }
protected override void Context() { _context = A.Fake <IInteractionTaskContext>(); _simulationPersitor = A.Fake <ISimulationPersistor>(); _dialogCreator = A.Fake <IDialogCreator>(); _forbiddenNamesRetriever = A.Fake <IForbiddenNamesRetriever>(); _dataRepositoryTask = A.Fake <IDataRepositoryTask>(); _simulationModelExporter = A.Fake <ISimModelExporter>(); _reportCreator = A.Fake <IModelReportCreator>(); _dimensionFactory = A.Fake <IDimensionFactory>(); sut = new EditTasksForSimulation(_context, _simulationPersitor, _dialogCreator, _forbiddenNamesRetriever, _dataRepositoryTask, _reportCreator, _simulationModelExporter, _dimensionFactory); }
public EditTasksForSimulation(IInteractionTaskContext interactionTaskContext, ISimulationPersistor simulationPersistor, IDialogCreator dialogCreator, IForbiddenNamesRetriever forbiddenNamesRetriver, IDataRepositoryTask dataRepositoryTask, IModelReportCreator reportCreator, ISimModelExporter simModelExporter, IDimensionFactory dimensionFactory) : base(interactionTaskContext) { _simulationPersistor = simulationPersistor; _dialogCreator = dialogCreator; _forbiddenNamesRetriver = forbiddenNamesRetriver; _dataRepositoryTask = dataRepositoryTask; _reportCreator = reportCreator; _simModelExporter = simModelExporter; _dimensionFactory = dimensionFactory; }
public InteractionTasksForParameter( IInteractionTaskContext interactionTaskContext, IEditTaskFor <IParameter> editTasks, IMoBiDimensionFactory dimensionFactory, IMoBiFormulaTask formulaTask, IQuantityTask quantityTask) : base(interactionTaskContext, editTasks) { _dimensionFactory = dimensionFactory; _formulaTask = formulaTask; _quantityTask = quantityTask; }
protected override void Context() { _interactionTaskContext = A.Fake <IInteractionTaskContext>(); _editTasksForBuildingBlock = A.Fake <IEditTasksForBuildingBlock <IMoBiReactionBuildingBlock> >(); _interactionTasksForBuilder = A.Fake <IInteractionTasksForBuilder <IReactionBuilder> >(); _reactionBuildingBlockMergeManager = A.Fake <IReactionBuildingBlockMergeManager>(); _diagramTask = A.Fake <IDiagramTask>(); _reactionBuildingBlockFactory = A.Fake <IReactionBuildingBlockFactory>(); sut = new InteractionTasksForReactionBuildingBlock(_interactionTaskContext, _editTasksForBuildingBlock, _interactionTasksForBuilder, _reactionBuildingBlockMergeManager, _diagramTask, _reactionBuildingBlockFactory); }
protected override void Context() { _reactionDimensionRetriever = A.Fake <IReactionDimensionRetriever>(); _editTaskFor = A.Fake <IEditTaskFor <IReactionBuilder> >(); _interactionTaskContext = A.Fake <IInteractionTaskContext>(); sut = new InteractionTasksForReactionBuilder(_interactionTaskContext, _editTaskFor, _reactionDimensionRetriever); _moBiApplicationController = A.Fake <IMoBiApplicationController>(); _multipleStringSelectionPresenter = A.Fake <IMultipleStringSelectionPresenter>(); A.CallTo(() => _interactionTaskContext.ApplicationController).Returns(_moBiApplicationController); A.CallTo(() => _moBiApplicationController.Start <IMultipleStringSelectionPresenter>()).Returns(_multipleStringSelectionPresenter); }
protected override void Context() { _interactionTaskContext = A.Fake <IInteractionTaskContext>(); _interactionTask = A.Fake <IInteractionTask>(); A.CallTo(() => _interactionTaskContext.InteractionTask).Returns(_interactionTask); _builder = new ApplicationBuilder(); sut = new EditTasksForEventGroupBuilder <IApplicationBuilder>(_interactionTaskContext); A.CallTo(() => _interactionTask.ForbiddenNamesFor(_builder)).Returns(new List <string> { _builderName }); }
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); }
protected AbstractStartValuesTask(IInteractionTaskContext interactionTaskContext, IEditTasksForBuildingBlock <TBuildingBlock> editTask, IIgnoreReplaceMergeManager <TStartValue> startValueBuildingBlockMergeManager, ICloneManagerForBuildingBlock cloneManagerForBuildingBlock, IMoBiFormulaTask moBiFormulaTask, ISpatialStructureFactory spatialStructureFactory, IMapper <ImportedQuantityDTO, TStartValue> dtoToQuantityToParameterStartValueMapper, IStartValuePathTask <TBuildingBlock, TStartValue> startValuePathTask) : base(interactionTaskContext, editTask) { _startValueBuildingBlockMergeManager = startValueBuildingBlockMergeManager; _cloneManagerForBuildingBlock = cloneManagerForBuildingBlock; _moBiFormulaTask = moBiFormulaTask; _spatialStructureFactory = spatialStructureFactory; _dtoToQuantityToParameterStartValueMapper = dtoToQuantityToParameterStartValueMapper; _startValuePathTask = startValuePathTask; }
protected override void Context() { _context = A.Fake <IInteractionTaskContext>(); _editTask = A.Fake <IEditTasksForBuildingBlock <IMoleculeStartValuesBuildingBlock> >(); _moleculeStartValuesCreator = A.Fake <IMoleculeStartValuesCreator>(); _cloneManagerForBuildingBlock = A.Fake <ICloneManagerForBuildingBlock>(); _moleculeStartValueBuildingBlock = new MoleculeStartValuesBuildingBlock(); _reactionDimensionRetriever = A.Fake <IReactionDimensionRetriever>(); _moleculeResolver = A.Fake <IMoleculeResolver>(); sut = new MoleculeStartValuesTask(_context, _editTask, _moleculeStartValuesCreator, new ImportedQuantityToMoleculeStartValueMapper(_moleculeStartValuesCreator), A.Fake <IMoleculeStartValueBuildingBlockMergeManager>(), _cloneManagerForBuildingBlock, _reactionDimensionRetriever, A.Fake <IMoBiFormulaTask>(), A.Fake <IMoBiSpatialStructureFactory>(), new MoleculeStartValuePathTask(A.Fake <IFormulaTask>(), _context.Context), _moleculeResolver); }
public InteractionTasksForReactionBuildingBlock( IInteractionTaskContext interactionTaskContext, IEditTasksForBuildingBlock <IMoBiReactionBuildingBlock> editTask, IInteractionTasksForBuilder <IReactionBuilder> builderTask, IReactionBuildingBlockMergeManager reactionBuildingBlockMergeManager, IDiagramTask diagramTask, IReactionBuildingBlockFactory reactionBuildingBlockFactory) : base(interactionTaskContext, editTask, builderTask, reactionBuildingBlockMergeManager) { _reactionBuildingBlockMergeManager = reactionBuildingBlockMergeManager; _diagramTask = diagramTask; _reactionBuildingBlockFactory = reactionBuildingBlockFactory; }
public InteractionTasksForObserverBuildingBlock( IInteractionTaskContext interactionTaskContext, IEditTasksForBuildingBlock <IObserverBuildingBlock> editTask, IInteractionTasksForBuilder <IObserverBuilder> builderTask, IMoleculeListTasks moleculeListTasks, IObserverBuildingBlockMergeManager mergeIgnoreReplaceMergeManager, IFormulaTask formulaTask, IMoBiFormulaTask moBiFormulaTask) : base(interactionTaskContext, editTask, builderTask, mergeIgnoreReplaceMergeManager, formulaTask, moleculeListTasks) { _formulaTask = formulaTask; _moBiFormulaTask = moBiFormulaTask; }
public EditParameterListPresenter( IEditParameterListView view, IQuantityTask quantityTask, IInteractionTaskContext interactionTaskContext, IFormulaToFormulaBuilderDTOMapper formulaMapper, IInteractionTasksForParameter parameterTask, IFavoriteTask favoriteTask, IViewItemContextMenuFactory viewItemContextMenuFactory, IParameterToParameterDTOMapper parameterDTOMapper) : base(view, quantityTask, interactionTaskContext, formulaMapper, parameterTask, favoriteTask) { _viewItemContextMenuFactory = viewItemContextMenuFactory; _parameterDTOMapper = parameterDTOMapper; }
protected override void Context() { _context = A.Fake <IInteractionTaskContext>(); _editTasks = A.Fake <IEditTasksForBuildingBlock <IParameterStartValuesBuildingBlock> >(); _parameterStartValuesCreator = A.Fake <IParameterStartValuesCreator>(); _cloneManagerForBuildingBlock = A.Fake <ICloneManagerForBuildingBlock>(); _parameterStartValueBuildingBlock = new ParameterStartValuesBuildingBlock(); _parameterResolver = A.Fake <IParameterResolver>(); sut = new ParameterStartValuesTask(_context, _editTasks, _parameterStartValuesCreator, _cloneManagerForBuildingBlock, new ImportedQuantityToParameterStartValueMapper(_parameterStartValuesCreator), _parameterResolver, A.Fake <IParameterStartValueBuildingBlockMergeManager>(), A.Fake <IMoBiFormulaTask>(), A.Fake <IMoBiSpatialStructureFactory>(), new ParameterStartValuePathTask(A.Fake <IFormulaTask>(), _context.Context)); }