示例#1
0
        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);
        }
示例#2
0
 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 ProjectTask(IMoBiContext context, ISerializationTask serializationTask, IDialogCreator dialogCreator,
                    IMRUProvider mruProvider, IMoBiSpatialStructureFactory spatialStructureFactory,
                    IHeavyWorkManager heavyWorkManager, ISimulationSettingsFactory simulationSettingsFactory,
                    ISimulationLoader simulationLoader, ISbmlTask sbmlTask, IReactionBuildingBlockFactory reactionBuildingBlockFactory)
 {
     _context = context;
     _simulationSettingsFactory = simulationSettingsFactory;
     _simulationLoader          = simulationLoader;
     _sbmlTask = sbmlTask;
     _reactionBuildingBlockFactory = reactionBuildingBlockFactory;
     _heavyWorkManager             = heavyWorkManager;
     _spatialStructureFactory      = spatialStructureFactory;
     _mruProvider       = mruProvider;
     _serializationTask = serializationTask;
     _dialogCreator     = dialogCreator;
 }
示例#4
0
 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);
 }
示例#5
0
 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);
 }
示例#6
0
 public ReactionImporter(IObjectPathFactory objectPathFactory, IObjectBaseFactory objectBaseFactory, IMoBiDimensionFactory moBiDimensionFactory, ASTHandler astHandler, IMoBiContext context, IReactionBuildingBlockFactory reactionBuildingBlockFactory)
     : base(objectPathFactory, objectBaseFactory, astHandler, context)
 {
     _dimensionFactory              = moBiDimensionFactory;
     ReactionBuilderList            = new List <IReactionBuilder>();
     _passiveTransportList          = new List <ITransportBuilder>();
     _reactionBuildingBlock         = reactionBuildingBlockFactory.Create().WithName(SBMLConstants.SBML_REACTION_BB);
     _passiveTransportBuildingBlock = ObjectBaseFactory.Create <IPassiveTransportBuildingBlock>()
                                      .WithName(SBMLConstants.SBML_PASSIVETRANSPORTS_BB);
 }
示例#7
0
 public RuleImporter(IObjectPathFactory objectPathFactory, IObjectBaseFactory objectBaseFactory, ASTHandler astHandler, IMoBiContext context, IReactionBuildingBlockFactory reactionBuildingBlockFactory) : base(objectPathFactory, objectBaseFactory, astHandler, context)
 {
     _reactionBuildingBlockFactory = reactionBuildingBlockFactory;
 }