public DataRepositoryTestPresenter( IDataRepositoryTestView view, IDataRepositoryDataPresenter dataPresenter, IDataRepositoryChartPresenter chartPresenter, IDataRepositoryMetaDataPresenter metaDataPresenter, IImportObservedDataTask importObservedDataTask, IDataRepositoryTask dataRepositoryTask, IDialogCreator dialogCreator) : base(view) { _dataPresenter = dataPresenter; _chartPresenter = chartPresenter; _metaDataPresenter = metaDataPresenter; _dataRepositoryTask = dataRepositoryTask; _dialogCreator = dialogCreator; _subPresenterManager.Add(_dataPresenter); _subPresenterManager.Add(_chartPresenter); _subPresenterManager.Add(_metaDataPresenter); _view.AddChartView(_chartPresenter.BaseView); _view.AddDataView(_dataPresenter.BaseView); _view.AddMetaDataView(_metaDataPresenter.BaseView); InitializeWith(new OSPSuiteMacroCommand <OSPSuiteExecutionContext>()); Edit(importObservedDataTask.ImportObservedData()); }
public ReloadAllObservedDataCommand( IExecutionContext executionContext, IImportObservedDataTask importObservedDataTask, IObservedDataTask observedDataTask ) { _executionContext = executionContext; _importObservedDataTask = importObservedDataTask; _observedDataTask = observedDataTask; }
public AddObservedDataForCompoundUICommand(IImportObservedDataTask observedDataTask) { _observedDataTask = observedDataTask; }
public ImportConcentrationDataCommmand(IImportObservedDataTask observedDataTask) { _observedDataTask = observedDataTask; }
public ImportFractionDataCommand(IImportObservedDataTask observedDataTask) { _observedDataTask = observedDataTask; }
protected override void Context() { _observedDataTask = A.Fake <IImportObservedDataTask>(); sut = new ImportConcentrationDataCommand(_observedDataTask); }
public DataRepositoryTestPresenter(IDataRepositoryTestView view, IDataRepositoryDataPresenter dataPresenter, IDataRepositoryChartPresenter chartPresenter, IDataRepositoryMetaDataPresenter metaDataPresenter, IImportObservedDataTask importObservedDataTask) : base(view) { _dataPresenter = dataPresenter; _chartPresenter = chartPresenter; _metaDataPresenter = metaDataPresenter; _subPresenterManager.Add(_dataPresenter); _subPresenterManager.Add(_chartPresenter); _view.AddChartView(_chartPresenter.BaseView); _view.AddDataView(_dataPresenter.BaseView); _view.AddMetaDataView(_metaDataPresenter.BaseView); Edit(importObservedDataTask.ImportObservedData()); }