Esempio n. 1
0
      protected override void Context()
      {
         _applicationController = A.Fake<IApplicationController>();
         _populationDataCollector = A.Fake<IPopulationDataCollector>();
         _populationAnalysisFieldFactory = A.Fake<IPopulationAnalysisFieldFactory>();
         _field = A.Fake<IPopulationAnalysisField>();
         sut = new PopulationAnalysisGroupingFieldCreator(_applicationController, _populationAnalysisFieldFactory);


         _groupingFieldPresenter = A.Fake<ICreatePopulationAnalysisGroupingFieldPresenter>();
         A.CallTo(() => _applicationController.Start<ICreatePopulationAnalysisGroupingFieldPresenter>()).Returns(_groupingFieldPresenter);
      }
 public void AttachPresenter(ICreatePopulationAnalysisGroupingFieldPresenter presenter)
 {
     _presenter = presenter;
 }