protected override void Context() { _dialogCreator = A.Fake <IDialogCreator>(); _applicationConfiguration = A.Fake <IApplicationConfiguration>(); _contentLoader = A.Fake <IContentLoader>(); _mobiExportTask = A.Fake <IMoBiExportTask>(); _relatedItemSerializer = A.Fake <IRelatedItemSerializer>(); _observedDataTask = A.Fake <IObservedDataTask>(); _buildingBlockTask = A.Fake <IBuildingBlockTask>(); _objectIdResetter = A.Fake <IObjectIdResetter>(); _withIdRepository = A.Fake <IWithIdRepository>(); _parameterIdentificationTask = A.Fake <IParameterIdentificationTask>(); _sensitivityAnalysisTask = A.Fake <ISensitivityAnalysisTask>(); sut = new ReloadRelatedItemTask(_applicationConfiguration, _contentLoader, _dialogCreator, _mobiExportTask, _relatedItemSerializer, _observedDataTask, _buildingBlockTask, _objectIdResetter, _withIdRepository, _parameterIdentificationTask, _sensitivityAnalysisTask); _relatedItem = new RelatedItem { FullPath = _fullPath, Content = new Content { Data = new byte[] { 10, 20 } } }; A.CallTo(() => _applicationConfiguration.Product).Returns(Origins.PKSim); }
protected override void Context() { _lazyLoadTask = A.Fake <ILazyLoadTask>(); _mobiExportTask = A.Fake <IMoBiExportTask>(); _simulationSettingsRetriever = A.Fake <ISimulationSettingsRetriever>(); _dialogCreator = A.Fake <IDialogCreator>(); _cloner = A.Fake <ICloner>(); _populationExportTask = A.Fake <IPopulationExportTask>(); sut = new PopulationSimulationExportTask(_lazyLoadTask, _simulationSettingsRetriever, _cloner, _dialogCreator, _mobiExportTask, _populationExportTask); }
public GeneratePKMLTemplatesCommand(IBuildConfigurationTask buildConfigurationTask, IPKMLPersistor pkmlPersistor, IDialogCreator dialogCreator, IHeavyWorkManager heavyWorkManager, IMoBiExportTask moBiExportTask, ISnapshotObjectCreator snapshotObjectCreator) { _buildConfigurationTask = buildConfigurationTask; _pkmlPersistor = pkmlPersistor; _dialogCreator = dialogCreator; _heavyWorkManager = heavyWorkManager; _moBiExportTask = moBiExportTask; _snapshotObjectCreator = snapshotObjectCreator; }
public ParameterIdentificationExportTask( ILazyLoadTask lazyLoadTask, IMoBiExportTask exportTask, ISnapshotTask snapshotTask, IPKMLPersistor pkmlPersistor) { _lazyLoadTask = lazyLoadTask; _exportTask = exportTask; _snapshotTask = snapshotTask; _pkmlPersistor = pkmlPersistor; }
public GeneratePKMLTemplatesCommand(ISimulationMapper simulationMapper, IDefaultIndividualRetriever defaultIndividualRetriever, IBuildConfigurationTask buildConfigurationTask, IPKMLPersistor pkmlPersistor, IDialogCreator dialogCreator, IHeavyWorkManager heavyWorkManager, IMoBiExportTask moBiExportTask) { _simulationMapper = simulationMapper; _defaultIndividualRetriever = defaultIndividualRetriever; _buildConfigurationTask = buildConfigurationTask; _pkmlPersistor = pkmlPersistor; _dialogCreator = dialogCreator; _heavyWorkManager = heavyWorkManager; _moBiExportTask = moBiExportTask; }
public ReloadRelatedItemTask(IApplicationConfiguration applicationConfiguration, OSPSuite.Core.Journal.IContentLoader contentLoader, IDialogCreator dialogCreator, IMoBiExportTask moBiExportTask, IRelatedItemSerializer relatedItemSerializer, IObservedDataTask observedDataTask, IBuildingBlockTask buildingBlockTask, IObjectIdResetter objectIdResetter, IWithIdRepository withIdRepository, IParameterIdentificationTask parameterIdentificationTask, ISensitivityAnalysisTask sensitivityAnalysisTask) : base(applicationConfiguration, contentLoader, dialogCreator) { _moBiExportTask = moBiExportTask; _relatedItemSerializer = relatedItemSerializer; _observedDataTask = observedDataTask; _buildingBlockTask = buildingBlockTask; _objectIdResetter = objectIdResetter; _withIdRepository = withIdRepository; _parameterIdentificationTask = parameterIdentificationTask; _sensitivityAnalysisTask = sensitivityAnalysisTask; }
public PopulationSimulationExportTask( ILazyLoadTask lazyLoadTask, ISimulationSettingsRetriever simulationSettingsRetriever, ICloner cloner, IDialogCreator dialogCreator, IMoBiExportTask mobiExportTask, IPopulationExportTask populationExportTask) { _lazyLoadTask = lazyLoadTask; _simulationSettingsRetriever = simulationSettingsRetriever; _cloner = cloner; _dialogCreator = dialogCreator; _mobiExportTask = mobiExportTask; _populationExportTask = populationExportTask; }
public ProjectComparisonRunner(IWorkspacePersistor workspacePersistor, IWorkspace workspace, ILazyLoadTask lazyLoadTask, IBatchLogger logger, ISimulationEngineFactory simulationEngineFactory, ISimulationExportTask simulationExportTask, IMoBiExportTask moBiExportTask, ISimulationFactory simulationFactory, IExecutionContext executionContext, ISimulationModelCreator simulationModelCreator) { _workspacePersistor = workspacePersistor; _workspace = workspace; _lazyLoadTask = lazyLoadTask; _logger = logger; _simulationExportTask = simulationExportTask; _moBiExportTask = moBiExportTask; _simulationFactory = simulationFactory; _executionContext = executionContext; _simulationModelCreator = simulationModelCreator; _simulationEngine = simulationEngineFactory.Create <IndividualSimulation>(); }
public SimulationExporter( ISimulationRunner simulationRunner, ILogger logger, IParametersReportCreator parametersReportCreator, ISimulationResultsExporter simulationResultsExporter, ISimulationExportTask simulationExportTask, IPopulationExportTask populationExportTask, IMoBiExportTask moBiExportTask ) { _simulationRunner = simulationRunner; _logger = logger; _parametersReportCreator = parametersReportCreator; _simulationResultsExporter = simulationResultsExporter; _simulationExportTask = simulationExportTask; _populationExportTask = populationExportTask; _moBiExportTask = moBiExportTask; }
public SaveSimulationToMoBiFileCommand(IMoBiExportTask moBiExportTask, IActiveSubjectRetriever activeSubjectRetriever) : base(activeSubjectRetriever) { _moBiExportTask = moBiExportTask; }