public ReactionBuildingBlockMergeManager( IApplicationController applicationController, INameCorrector nameCorrector, IReactionBuilderToObjectBaseSummaryDTOMapper dtoMapper, IMoBiContext context) : base(applicationController, nameCorrector, dtoMapper, context) { }
public MoleculeBuildingBlockCloneManager( IApplicationController applicationController, INameCorrector nameCorrector, IMoleculeBuilderToObjectBaseSummaryDTOMapper dtoMapper, IMoBiContext context) : base(applicationController, nameCorrector, dtoMapper, context) { }
protected IgnoreReplaceCloneMergeManager( IApplicationController applicationController, INameCorrector nameCorrector, IMapper <T, ObjectBaseSummaryDTO> dtoMapper, IMoBiContext context) : base(applicationController, nameCorrector, dtoMapper, context) { _cloneOptionEnabled = true; }
protected override void Context() { _context = A.Fake <IMoBiContext>(); _historyManager = A.Fake <IMoBiHistoryManager>(); _objectBaseRepository = A.Fake <IWithIdRepository>(); A.CallTo(() => _context.ObjectRepository).Returns(_objectBaseRepository); ; A.CallTo(() => _context.HistoryManager).Returns(_historyManager); _nameCorrector = A.Fake <INameCorrector>(); sut = new AdjustFormulasVisitor(_context, _nameCorrector); }
protected AbstractMergeManager(IApplicationController applicationController, INameCorrector nameCorrector, IMapper <T, ObjectBaseSummaryDTO> dtoMapper, IMoBiContext context) { _applicationController = applicationController; _nameCorrector = nameCorrector; _addAction = element => { }; _removeAction = element => { }; _cancelAction = () => { }; _cloneAction = (element, originalName) => { }; _mergeAction = (target, merge) => { }; _dtoMapper = dtoMapper; _context = context; }
protected override void Context() { _nameCorrector = A.Fake <INameCorrector>(); _cloneManager = A.Fake <ICloneManagerForSimulation>(); _context = A.Fake <IMoBiContext>(); sut = new SimulationLoader(_cloneManager, _nameCorrector, _context); _project = new MoBiProject(); _simulation = A.Fake <IMoBiSimulation>().WithId("SimId"); A.CallTo(() => _context.CurrentProject).Returns(_project); A.CallTo(() => _context.Project).Returns(_project); }
public InteractionTask(ISerializationTask serializationTask, IDialogCreator dialogCreator, IIconRepository iconRepository, INameCorrector nameCorrector, IObjectBaseTask objectBaseTask, ICloneManagerForBuildingBlock cloneManagerForBuildingBlock, IAdjustFormulasVisitor adjustFormulasVisitor, IObjectTypeResolver objectTypeResolver, IForbiddenNamesRetriever forbiddenNamesRetriever) { _serializationTask = serializationTask; _dialogCreator = dialogCreator; _iconRepository = iconRepository; _nameCorrector = nameCorrector; _objectBaseTask = objectBaseTask; _cloneManagerForBuildingBlock = cloneManagerForBuildingBlock; _adjustFormulasVisitor = adjustFormulasVisitor; _objectTypeResolver = objectTypeResolver; _forbiddenNamesRetriever = forbiddenNamesRetriever; }
protected override void Context() { _serializationTask = A.Fake <ISerializationTask>(); _dialogCreator = A.Fake <IDialogCreator>(); _iconRepository = A.Fake <IIconRepository>(); _nameCorrector = A.Fake <INameCorrector>(); _objectBaseTask = A.Fake <IObjectBaseTask>(); _cloneManagerForBuildingBlock = A.Fake <ICloneManagerForBuildingBlock>(); _adjustFormulasVisitor = A.Fake <IAdjustFormulasVisitor>(); _objectTypeResolver = A.Fake <IObjectTypeResolver>(); _forbiddenNamesRetriever = A.Fake <IForbiddenNamesRetriever>(); sut = new InteractionTask(_serializationTask, _dialogCreator, _iconRepository, _nameCorrector, _objectBaseTask, _cloneManagerForBuildingBlock, _adjustFormulasVisitor, _objectTypeResolver, _forbiddenNamesRetriever); }
public MoBiFormulaTask( IMoBiContext context, IMoBiApplicationController applicationController, IFormulaTask formulaTask, INameCorrector nameCorrector, IDialogCreator dialogCreator, IQuantityTask quantityTask, IEntitiesInBuildingBlockRetriever <IParameter> parameterInBuildingBlockRetriever) { _context = context; _applicationController = applicationController; _formulaTask = formulaTask; _nameCorrector = nameCorrector; _dialogCreator = dialogCreator; _quantityTask = quantityTask; _parameterInBuildingBlockRetriever = parameterInBuildingBlockRetriever; }
protected override void Context() { _eventPublisher = A.Fake <IEventPublisher>(); _serializationTask = A.Fake <ISerializationTask>(); _context = A.Fake <IMoBiContext>(); _dialogCreator = A.Fake <IDialogCreator>(); _heavyWorkManager = new HeavyWorkManagerForSpecs(); _nameCorrector = A.Fake <INameCorrector>(); _cloneManager = A.Fake <ICloneManagerForSimulation>(); _mruProvider = A.Fake <IMRUProvider>(); _spatialStructureFactory = A.Fake <IMoBiSpatialStructureFactory>(); _simulationSettingsFactory = A.Fake <ISimulationSettingsFactory>(); _sbmlTask = A.Fake <ISbmlTask>(); _reactionBuildingBlockFactory = A.Fake <IReactionBuildingBlockFactory>(); sut = new ProjectTask(_context, _serializationTask, _dialogCreator, _mruProvider, _spatialStructureFactory, _heavyWorkManager, _simulationSettingsFactory, new SimulationLoader(_cloneManager, _nameCorrector, _context), _sbmlTask, _reactionBuildingBlockFactory); }
protected override void Context() { _withFormulaDecoder = new UsingFormulaDecoder(); _buildingBlock = A.Fake <IBuildingBlock>(); A.CallTo(() => _buildingBlock.FormulaCache).Returns(new FormulaCache()); _context = A.Fake <IMoBiContext>(); _dialogCreator = A.Fake <IDialogCreator>(); _applicationController = A.Fake <IMoBiApplicationController>(); _formulaTask = A.Fake <IFormulaTask>(); _nameCorrector = A.Fake <INameCorrector>(); _quantityTask = A.Fake <IQuantityTask>(); _parametersInBuildingBlockRetriever = A.Fake <IEntitiesInBuildingBlockRetriever <IParameter> >(); sut = new MoBiFormulaTask(_context, _applicationController, _formulaTask, _nameCorrector, _dialogCreator, _quantityTask, _parametersInBuildingBlockRetriever); _usingFormulaObject = A.Fake <IUsingFormula>(); _usingFormulaObject.Formula = MvExplicitFormula(); }
protected override void Context() { _context = A.Fake <IMoBiContext>(); _serializationTask = A.Fake <ISerializationTask>(); _dialogCreator = A.Fake <IDialogCreator>(); _buildConfigurationMapper = A.Fake <IBuildConfigurationToMoBiBuildconfigurationMapper>(); _nameCorrector = A.Fake <INameCorrector>(); _mruProvider = A.Fake <IMRUProvider>(); _spatialStructureFactory = A.Fake <IMoBiSpatialStructureFactory>(); _simFactory = A.Fake <ISimulationFactory>(); _cloneManager = A.Fake <ICloneManagerForSimulation>(); _simSettingsFactory = A.Fake <ISimulationSettingsFactory>(); _appController = A.Fake <IMoBiApplicationController>(); _sbmlTask = A.Fake <ISbmlTask>(); _reactionBuildingBlockFactory = A.Fake <IReactionBuildingBlockFactory>(); sut = new ProjectTask(_context, _serializationTask, _dialogCreator, _mruProvider, _spatialStructureFactory, new HeavyWorkManagerForSpecs(), _simSettingsFactory, new SimulationLoader(_cloneManager, _nameCorrector, _context), _sbmlTask, _reactionBuildingBlockFactory); }
public SimulationLoader(ICloneManagerForSimulation cloneManager, INameCorrector nameCorrector, IMoBiContext context) { _cloneManager = cloneManager; _nameCorrector = nameCorrector; _context = context; }
public AdjustFormulasVisitor(IMoBiContext context, INameCorrector nameCorrector) { _context = context; _nameCorrector = nameCorrector; }