protected StartSimulationPopulationAnalysisCommand(ISimulationAnalysisCreator simulationAnalysisCreator, IActiveSubjectRetriever activeSubjectRetriever,
                                                    PopulationAnalysisType populationAnalysisType)
     : base(activeSubjectRetriever)
 {
     _simulationAnalysisCreator = simulationAnalysisCreator;
     _populationAnalysisType    = populationAnalysisType;
 }
        protected override void Context()
        {
            _chartFactory          = A.Fake <IPKSimChartFactory>();
            _containerTask         = A.Fake <IContainerTask>();
            _applicationController = A.Fake <IApplicationController>();
            _project                   = new PKSimProject();
            _objectBaseFactory         = A.Fake <IObjectBaseFactory>();
            _singleStartPresenterTask  = A.Fake <ISingleStartPresenterTask>();
            _executionContext          = A.Fake <IExecutionContext>();
            _simulationAnalysisCreator = A.Fake <ISimulationAnalysisCreator>();
            _dialogCreator             = A.Fake <IDialogCreator>();
            A.CallTo(() => _executionContext.CurrentProject).Returns(_project);

            _individualSimulationComparison = new IndividualSimulationComparison().WithName("chart");

            sut = new SimulationComparisonTask(
                _chartFactory,
                _containerTask,
                _objectBaseFactory,
                _applicationController,
                _singleStartPresenterTask,
                _executionContext,
                _simulationAnalysisCreator,
                _dialogCreator);
        }
 public SimulationComparisonCreator(IPKSimChartFactory chartFactory, IContainerTask containerTask,
                                    IObjectBaseFactory objectBaseFactory, IApplicationController applicationController,
                                    ISingleStartPresenterTask singleStartPresenterTask, IExecutionContext executionContext, ISimulationAnalysisCreator simulationAnalysisCreator)
 {
     _chartFactory              = chartFactory;
     _containerTask             = containerTask;
     _objectBaseFactory         = objectBaseFactory;
     _applicationController     = applicationController;
     _singleStartPresenterTask  = singleStartPresenterTask;
     _executionContext          = executionContext;
     _simulationAnalysisCreator = simulationAnalysisCreator;
 }
Esempio n. 4
0
 protected override void Context()
 {
     _dialogCreator = A.Fake <IDialogCreator>();
     _templateTask  = A.Fake <ITemplateTask>();
     _keyPathMapper = A.Fake <IKeyPathMapper>();
     _entitiesInContainerRetriever = A.Fake <IEntitiesInContainerRetriever>();
     _entityTask = A.Fake <IEntityTask>();
     _cloner     = A.Fake <ICloner>();
     _simulationAnalysisWorkflowMapper = A.Fake <IAnalysableToSimulationAnalysisWorkflowMapper>();
     _simulationAnalysisCreator        = A.Fake <ISimulationAnalysisCreator>();
     _lazyLoadTask = A.Fake <ILazyLoadTask>();
     sut           = new PopulationAnalysisTemplateTask(_templateTask, _dialogCreator, _entitiesInContainerRetriever,
                                                        _keyPathMapper, _entityTask, _cloner, _simulationAnalysisWorkflowMapper, _simulationAnalysisCreator, _lazyLoadTask);
 }
 public PopulationAnalysisTemplateTask(ITemplateTask templateTask, IDialogCreator dialogCreator,
                                       IEntitiesInContainerRetriever entitiesInContainerRetriever, IKeyPathMapper keyPathMapper,
                                       IEntityTask entityTask, ICloner cloner, IAnalysableToSimulationAnalysisWorkflowMapper simulationAnalysisWorkflowMapper,
                                       ISimulationAnalysisCreator simulationAnalysisCreator, ILazyLoadTask lazyLoadTask)
 {
     _templateTask  = templateTask;
     _dialogCreator = dialogCreator;
     _entitiesInContainerRetriever = entitiesInContainerRetriever;
     _keyPathMapper = keyPathMapper;
     _entityTask    = entityTask;
     _cloner        = cloner;
     _simulationAnalysisWorkflowMapper = simulationAnalysisWorkflowMapper;
     _simulationAnalysisCreator        = simulationAnalysisCreator;
     _lazyLoadTask = lazyLoadTask;
 }
Esempio n. 6
0
        protected override void Context()
        {
            _simulationEngine          = A.Fake <ISimulationEngine <IndividualSimulation> >();
            _popSimulationEngine       = A.Fake <ISimulationEngine <PopulationSimulation> >();
            _simulationEngineFactory   = A.Fake <ISimulationEngineFactory>();
            _simulationAnalysisCreator = A.Fake <ISimulationAnalysisCreator>();
            _lazyLoadTask = A.Fake <ILazyLoadTask>();
            _entityTask   = A.Fake <IEntityValidationTask>();
            _cloner       = A.Fake <ICloner>();
            _simulationSettingsRetriever = A.Fake <ISimulationSettingsRetriever>();
            A.CallTo(() => _simulationEngineFactory.Create <PopulationSimulation>()).Returns(_popSimulationEngine);
            A.CallTo(() => _simulationEngineFactory.Create <IndividualSimulation>()).Returns(_simulationEngine);

            sut = new SimulationRunner(_simulationEngineFactory, _simulationAnalysisCreator, _lazyLoadTask, _entityTask, _simulationSettingsRetriever, _cloner);
        }
 protected override void Context()
 {
     _simulationAnalysisCreator = A.Fake <ISimulationAnalysisCreator>();
     _activeSubjectRetriever    = A.Fake <IActiveSubjectRetriever>();
     sut = new ShowSimulationResultsCommand(_simulationAnalysisCreator, _activeSubjectRetriever);
 }
 public StartTimeProfileAnalysisCommand(ISimulationAnalysisCreator simulationAnalysisCreator, IActiveSubjectRetriever activeSubjectRetriever)
     : base(simulationAnalysisCreator, activeSubjectRetriever, PopulationAnalysisType.TimeProfile)
 {
 }
 public StartScatterAnalysisCommand(ISimulationAnalysisCreator simulationAnalysisCreator, IActiveSubjectRetriever activeSubjectRetriever)
     : base(simulationAnalysisCreator, activeSubjectRetriever, PopulationAnalysisType.Scatter)
 {
 }
Esempio n. 10
0
 public ShowSimulationResultsCommand(ISimulationAnalysisCreator simulationAnalysisCreator, IActiveSubjectRetriever activeSubjectRetriever) : base(activeSubjectRetriever)
 {
     _simulationAnalysisCreator = simulationAnalysisCreator;
 }