Example #1
0
 protected override void Context()
 {
     _buildingBlockTask         = A.Fake <IBuildingBlockTask>();
     _executionContext          = A.Fake <IExecutionContext>();
     _project                   = A.Fake <PKSimProject>();
     _population                = A.Fake <RandomPopulation>();
     _randomPopulationPresenter = A.Fake <ICreateRandomPopulationPresenter>();
     _applicationController     = A.Fake <IApplicationController>();
     A.CallTo(() => _applicationController.Start <ICreateRandomPopulationPresenter>()).Returns(_randomPopulationPresenter);
     A.CallTo(() => _randomPopulationPresenter.BuildingBlock).Returns(_population);
     A.CallTo(() => _buildingBlockTask.TypeFor(_population)).Returns("pop");
     A.CallTo(() => _executionContext.CurrentProject).Returns(_project);
     sut = new PopulationTask(_executionContext, _buildingBlockTask, _applicationController);
 }
 public void AttachPresenter(ICreateRandomPopulationPresenter presenter)
 {
     WizardPresenter = presenter;
 }