protected override void Context()
 {
     _view = A.Fake <IPopulationAnalysisPKParameterSelectionView>();
     _allPKParametersPresenter           = A.Fake <IPopulationAnalysisAvailablePKParametersPresenter>();
     _selectedPKParameterFieldsPresenter = A.Fake <IPopulationAnalysisPKParameterFieldsPresenter>();
     _fieldDistributionPresenter         = A.Fake <IPopulationAnalysisFieldDistributionPresenter>();
     sut = new PopulationAnalysisPKParameterSelectionPresenter(_view, _allPKParametersPresenter, _selectedPKParameterFieldsPresenter, _fieldDistributionPresenter);
 }
        protected override void Context()
        {
            _view = A.Fake <IPopulationAnalysisParameterSelectionView>();
            _allPopulationParametersPresenter = A.Fake <IPopulationParameterGroupsPresenter>();
            _selectedParametersPresenter      = A.Fake <IPopulationAnalysisParameterFieldsPresenter>();
            _parameterDistributionPresenter   = A.Fake <IPopulationAnalysisFieldDistributionPresenter>();
            _populationDataCollector          = A.Fake <IPopulationDataCollector>();
            _entityPathResolver      = A.Fake <IEntityPathResolver>();
            _populationPivotAnalysis = A.Fake <PopulationPivotAnalysis>();


            sut = new PopulationAnalysisParameterSelectionPresenter(_view, _allPopulationParametersPresenter, _selectedParametersPresenter, _entityPathResolver, _parameterDistributionPresenter);
        }
        public PopulationAnalysisPKParameterSelectionPresenter(IPopulationAnalysisPKParameterSelectionView view,
                                                               IPopulationAnalysisAvailablePKParametersPresenter allPKParametersPresenter, IPopulationAnalysisPKParameterFieldsPresenter selectedPKParameterFieldsPresenter,
                                                               IPopulationAnalysisFieldDistributionPresenter populationAnalysisFieldDistributionPresenter)
            : base(view, populationAnalysisFieldDistributionPresenter)
        {
            _allPKParametersPresenter           = allPKParametersPresenter;
            _selectedPKParameterFieldsPresenter = selectedPKParameterFieldsPresenter;
            _view.AddAllPKParametersView(_allPKParametersPresenter.View);
            _view.AddSelectedPKParametersView(selectedPKParameterFieldsPresenter.BaseView);
            _view.AddDistributionView(_populationAnalysisFieldDistributionPresenter.BaseView);
            _allPKParametersPresenter.QuantityPKParameterDoubleClicked += (o, e) => addPKParameter(e.QuantityPKParameter);
            _allPKParametersPresenter.PKParameterSelected            += (o, e) => drawDistributionFor(e.PKParameter, null);
            _selectedPKParameterFieldsPresenter.PKParameterSelected  += (o, e) => drawDistributionFor(e);
            _selectedPKParameterFieldsPresenter.NoFieldSelected      += (o, e) => ClearDistribution();
            _selectedPKParameterFieldsPresenter.DerivedFieldSelected += (o, e) => DrawDistributionFor(e.DerivedField);

            AddSubPresenters(_allPKParametersPresenter, _selectedPKParameterFieldsPresenter);
        }
Exemplo n.º 4
0
 protected PopulationAnalysisSelectionWithDistributionPresenter(TView view, IPopulationAnalysisFieldDistributionPresenter populationAnalysisFieldDistributionPresenter) : base(view)
 {
     _populationAnalysisFieldDistributionPresenter = populationAnalysisFieldDistributionPresenter;
     AddSubPresenters(_populationAnalysisFieldDistributionPresenter);
 }
 public PopulationAnalysisParameterSelectionPresenter(IPopulationAnalysisParameterSelectionView view, IPopulationParameterGroupsPresenter allPopulationParametersPresenter, IPopulationAnalysisParameterFieldsPresenter selectedPopulationParametersPresenter, IEntityPathResolver entityPathResolver, IPopulationAnalysisFieldDistributionPresenter populationAnalysisFieldDistributionPresenter)
     : base(view, populationAnalysisFieldDistributionPresenter)
 {
     _allPopulationParametersPresenter      = allPopulationParametersPresenter;
     _selectedPopulationParametersPresenter = selectedPopulationParametersPresenter;
     _entityPathResolver = entityPathResolver;
     view.AddPopulationParametersView(_allPopulationParametersPresenter.View);
     view.AddSelectedParametersView(_selectedPopulationParametersPresenter.BaseView);
     view.AddDistributionView(_populationAnalysisFieldDistributionPresenter.BaseView);
     AddSubPresenters(allPopulationParametersPresenter, selectedPopulationParametersPresenter);
     registerUpdateDistributionEvents();
 }