コード例 #1
0
 protected override void Context()
 {
     _createIndividualPresenter = A.Fake <ICreateIndividualPresenter>();
     _buildingBlockTask         = A.Fake <IBuildingBlockTask>();
     _scaleIndividualPresenter  = A.Fake <IScaleIndividualPresenter>();
     _executionContext          = A.Fake <IExecutionContext>();
     _applicationController     = A.Fake <IApplicationController>();
     A.CallTo(() => _executionContext.CurrentProject).Returns(A.Fake <PKSimProject>());
     _individual = A.Fake <Individual>();
     A.CallTo(() => _applicationController.Start <ICreateIndividualPresenter>()).Returns(_createIndividualPresenter);
     A.CallTo(() => _applicationController.Start <IScaleIndividualPresenter>()).Returns(_scaleIndividualPresenter);
     A.CallTo(() => _createIndividualPresenter.BuildingBlock).Returns(_individual);
     A.CallTo(() => _buildingBlockTask.TypeFor(_individual)).Returns("Individual");
     sut = new IndividualTask(_executionContext, _buildingBlockTask, _applicationController);
 }
コード例 #2
0
 public void AttachPresenter(ICreateIndividualPresenter presenter)
 {
     WizardPresenter = presenter;
 }