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());
        }
예제 #2
0
 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;
 }
예제 #5
0
 public ImportFractionDataCommand(IImportObservedDataTask observedDataTask)
 {
     _observedDataTask = observedDataTask;
 }
예제 #6
0
 protected override void Context()
 {
     _observedDataTask = A.Fake <IImportObservedDataTask>();
     sut = new ImportConcentrationDataCommand(_observedDataTask);
 }
예제 #7
0
        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());
        }