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() { _view = A.Fake <IIndividualSimulationComparisonView>(); _chartPresenter = A.Fake <IChartEditorAndDisplayPresenter>(); _pkAnalysisPresenter = A.Fake <IIndividualPKAnalysisPresenter>(); _quantityPathMapper = A.Fake <IQuantityPathToQuantityDisplayPathMapper>(); _chartTask = A.Fake <IChartTask>(); _observedDataTask = A.Fake <IObservedDataTask>(); _lazyLoadTask = A.Fake <ILazyLoadTask>(); _chartLayoutTask = A.Fake <IChartEditorLayoutTask>(); _chartTemplatingTask = A.Fake <IChartTemplatingTask>(); _dataColumnToPathElementsMapper = A.Fake <IDataColumnToPathElementsMapper>(); _projectRetriever = A.Fake <IProjectRetriever>(); _userSettings = A.Fake <IUserSettings>(); _chartPresenterContext = A.Fake <ChartPresenterContext>(); A.CallTo(() => _chartPresenterContext.ChartEditorAndDisplayPresenter).Returns(_chartPresenter); A.CallTo(() => _chartPresenterContext.QuantityDisplayPathMapper).Returns(_quantityPathMapper); A.CallTo(() => _chartPresenterContext.EditorLayoutTask).Returns(_chartLayoutTask); A.CallTo(() => _chartPresenterContext.TemplatingTask).Returns(_chartTemplatingTask); A.CallTo(() => _chartPresenterContext.ProjectRetriever).Returns(_projectRetriever); sut = new IndividualSimulationComparisonPresenter(_view, _chartPresenterContext, _pkAnalysisPresenter, _chartTask, _observedDataTask, _lazyLoadTask, _chartTemplatingTask, _userSettings); }
public ImportObservedDataTask(IDataImporter dataImporter, IExecutionContext executionContext, IDimensionRepository dimensionRepository, IBuildingBlockRepository buildingBlockRepository, ISpeciesRepository speciesRepository, IDefaultIndividualRetriever defaultIndividualRetriever, IRepresentationInfoRepository representationInfoRepository, IObservedDataTask observedDataTask, IParameterChangeUpdater parameterChangeUpdater) { _dataImporter = dataImporter; _executionContext = executionContext; _dimensionRepository = dimensionRepository; _buildingBlockRepository = buildingBlockRepository; _speciesRepository = speciesRepository; _defaultIndividualRetriever = defaultIndividualRetriever; _representationInfoRepository = representationInfoRepository; _observedDataTask = observedDataTask; _parameterChangeUpdater = parameterChangeUpdater; }
public ImportObservedDataTask(IDataImporter dataImporter, IExecutionContext executionContext, IDimensionRepository dimensionRepository, IBuildingBlockRepository buildingBlockRepository, ISpeciesRepository speciesRepository, IDefaultIndividualRetriever defaultIndividualRetriever, IRepresentationInfoRepository representationInfoRepository, IObservedDataTask observedDataTask, IParameterChangeUpdater parameterChangeUpdater, IDialogCreator dialogCreator, IContainer container, IOSPSuiteXmlSerializerRepository modelingXmlSerializerRepository, IEventPublisher eventPublisher) { _dataImporter = dataImporter; _executionContext = executionContext; _dimensionRepository = dimensionRepository; _buildingBlockRepository = buildingBlockRepository; _speciesRepository = speciesRepository; _defaultIndividualRetriever = defaultIndividualRetriever; _representationInfoRepository = representationInfoRepository; _observedDataTask = observedDataTask; _parameterChangeUpdater = parameterChangeUpdater; _dialogCreator = dialogCreator; _container = container; _modelingXmlSerializerRepository = modelingXmlSerializerRepository; _eventPublisher = eventPublisher; }