예제 #1
0
        protected override void Context()
        {
            _view          = A.Fake <ICreatePopulationAnalysisView>();
            _dialogCreator = A.Fake <IDialogCreator>();
            _populationAnalysisTemplateTask = A.Fake <IPopulationAnalysisTemplateTask>();
            _populationAnalysisChartFactory = A.Fake <IPopulationAnalysisChartFactory>();
            _lazyLoadTask           = A.Fake <ILazyLoadTask>();
            _populationAnalysisTask = A.Fake <IPopulationAnalysisTask>();

            _subPresenterManager               = SubPresenterHelper.Create <IPopulationAnalysisItemPresenter>();
            _parameterSelectionPresenter       = _subPresenterManager.CreateFake(TimeProfileItems.ParameterSelection);
            _pkParameterSpecificationPresenter = _subPresenterManager.CreateFake(TimeProfileItems.PKParameterSpecification);

            sut = new CreateTimeProfileAnalysisPresenter(_view, _subPresenterManager, _dialogCreator, _populationAnalysisTemplateTask, _populationAnalysisChartFactory, _lazyLoadTask, _populationAnalysisTask);
        }
      protected override void Context()
      {
         _view = A.Fake<ICreatePopulationAnalysisView>();
         _dialogCreator = A.Fake<IDialogCreator>();
         _populationAnalysisTemplateTask = A.Fake<IPopulationAnalysisTemplateTask>();
         _populationAnalysisChartFactory = A.Fake<IPopulationAnalysisChartFactory>();
         _lazyLoadTask = A.Fake<ILazyLoadTask>();
         _populationAnalysisTask = A.Fake<IPopulationAnalysisTask>();

         _subPresenterManager = SubPresenterHelper.Create<IPopulationAnalysisItemPresenter>();
         _parameterSelectionPresenter = _subPresenterManager.CreateFake(TimeProfileItems.ParameterSelection);
         _pkParameterSpecificationPresenter = _subPresenterManager.CreateFake(TimeProfileItems.PKParameterSpecification);
         _populationAnalysisFieldFactory= A.Fake<IPopulationAnalysisFieldFactory>();
         _populationAnalysisChart = new TimeProfileAnalysisChart {PopulationAnalysis = new PopulationStatisticalAnalysis()};
         A.CallTo(() => _populationAnalysisChartFactory.Create<PopulationStatisticalAnalysis, TimeProfileAnalysisChart>()).Returns(_populationAnalysisChart);
         sut = new CreateTimeProfileAnalysisPresenter(_view, _subPresenterManager, _dialogCreator, _populationAnalysisTemplateTask, _populationAnalysisChartFactory, _lazyLoadTask, _populationAnalysisTask, _populationAnalysisFieldFactory);
      }
예제 #3
0
        protected override void Context()
        {
            _view = A.Fake <ICreatePopulationAnalysisView>();
            _subPresenterManager               = A.Fake <ISubPresenterItemManager <IPopulationAnalysisItemPresenter> >();
            _dialogCreator                     = A.Fake <IDialogCreator>();
            _populationAnalysisTemplateTask    = A.Fake <IPopulationAnalysisTemplateTask>();
            _populationAnalysisChartFactory    = A.Fake <IPopulationAnalysisChartFactory>();
            _subPresenterManager               = SubPresenterHelper.Create <IPopulationAnalysisItemPresenter>();
            _parameterSelectionPresenter       = _subPresenterManager.CreateFake(BoxWhiskerItems.ParameterSelection);
            _pkParameterSpecificationPresenter = _subPresenterManager.CreateFake(BoxWhiskerItems.PKParameterSpecification);
            _chartPresenter                    = _subPresenterManager.CreateFake(BoxWhiskerItems.Chart);
            _analysis = new PopulationBoxWhiskerAnalysis();
            _boxWiskerAnalysisChart = new BoxWhiskerAnalysisChart {
                PopulationAnalysis = _analysis
            };
            A.CallTo(_populationAnalysisChartFactory).WithReturnType <BoxWhiskerAnalysisChart>().Returns(_boxWiskerAnalysisChart);
            _populationAnalysisTask = A.Fake <IPopulationAnalysisTask>();

            sut = new CreateBoxWhiskerAnalysisPresenter(_view, _subPresenterManager, _dialogCreator, _populationAnalysisTemplateTask, _populationAnalysisChartFactory, _populationAnalysisTask);
        }
 public void AttachPresenter(IPopulationAnalysisPKParameterSelectionPresenter presenter)
 {
     _presenter = presenter;
 }