コード例 #1
0
        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;
 }
コード例 #3
0
 public AddObservedDataForCompoundUICommand(IImportObservedDataTask observedDataTask)
 {
     _observedDataTask = observedDataTask;
 }
コード例 #4
0
 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());
        }