Example #1
0
 protected override void Context()
 {
     _view = A.Fake <ISimulationParametersView>();
     _parameterGroupPresenter = A.Fake <IParameterGroupsPresenter>();
     A.CallTo(() => _parameterGroupPresenter.View).Returns(A.Fake <IParameterGroupsView>());
     sut = new IndividualSimulationParametersPresenter(_view, _parameterGroupPresenter);
 }
 public IndividualParametersPresenter(IIndividualParametersView view, IParameterGroupsPresenter parameterGroupsPresenter)
     : base(view)
 {
     _parameterGroupsPresenter = parameterGroupsPresenter;
      _parameterGroupsPresenter.NoSelectionCaption = PKSimConstants.Information.NoParametersInIndividualSelection;
      _view.AddParametersView(_parameterGroupsPresenter.View);
 }
Example #3
0
 protected SimulationParametersPresenter(ISimulationParametersView view, IParameterGroupsPresenter parameterGroupsPresenter)
     : base(view)
 {
     _parameterGroupsPresenter = parameterGroupsPresenter;
     _parameterGroupsPresenter.NoSelectionCaption = PKSimConstants.Information.NoParametersInSimulationSelection;
     _view.AddParametersView(_parameterGroupsPresenter.View);
     AddSubPresenters(parameterGroupsPresenter);
 }
 protected override void Context()
 {
     _view = A.Fake <IIndividualParametersView>();
     _parameterGroupPresenter = A.Fake <IParameterGroupsPresenter>();
     A.CallTo(() => _parameterGroupPresenter.View).Returns(A.Fake <IParameterGroupsView>());
     _organism   = A.Fake <Organism>();
     _individual = new Individual();
     _individual.Add(_organism);
     _individualPresenter = A.Fake <IIndividualPresenter>();
     A.CallTo(() => _individualPresenter.Individual).Returns(_individual);
     sut = new IndividualParametersPresenter(_view, _parameterGroupPresenter);
     sut.InitializeWith(_individualPresenter);
 }
 public PopulationSimulationParametersPresenter(ISimulationParametersView view, IParameterGroupsPresenter parameterGroupsPresenter)
     : base(view, parameterGroupsPresenter)
 {
 }
Example #6
0
 public void BindToGroupingMode(IParameterGroupsPresenter parameterGroupsPresenter)
 {
     _groupModeBinder.BindToSource(parameterGroupsPresenter);
 }
Example #7
0
 protected override void Context()
 {
     _view = A.Fake <ISimulationParametersView>();
     _parameterGroupPresenter = A.Fake <IParameterGroupsPresenter>();
     sut = new PopulationSimulationParametersPresenter(_view, _parameterGroupPresenter);
 }
Example #8
0
 public void AttachPresenter(IParameterGroupsPresenter presenter)
 {
     _presenter = presenter;
 }
Example #9
0
 public IndividualSimulationParametersPresenter(ISimulationParametersView view, IParameterGroupsPresenter parameterGroupsPresenter)
     : base(view, parameterGroupsPresenter)
 {
 }