public SimulationCompoundCalculationMethodSelectionPresenter(
     ISimulationCompoundCalculationMethodSelectionView view, ICalculationMethodSelectionPresenterForSimulation calculationMethodSelectionPresenter)
     : base(view)
 {
     _calculationMethodSelectionPresenter = calculationMethodSelectionPresenter;
     AddSubPresenters(_calculationMethodSelectionPresenter);
     _view.AddCalculationMethodsView(_calculationMethodSelectionPresenter.BaseView);
 }
コード例 #2
0
 protected override void Context()
 {
     _withIdRepository = A.Fake <IWithIdRepository>();
     _calculationMethodSelectionPresenterForSimulation = A.Fake <ICalculationMethodSelectionPresenterForSimulation>();
     _compoundInSimulationView = A.Fake <ICompoundInSimulationView>();
     sut = new CompoundInSimulationPresenter(_compoundInSimulationView, A.Fake <IMolWeightGroupPresenter>(),
                                             A.Fake <ICompoundTypeGroupPresenter>(), A.Fake <IMultiParameterEditPresenter>(),
                                             A.Fake <IMultiParameterEditPresenter>(), _calculationMethodSelectionPresenterForSimulation,
                                             _withIdRepository);
 }
        protected override void Context()
        {
            _view = A.Fake <ISimulationCompoundCalculationMethodSelectionView>();
            _calculationMethodSelectionPresenter = A.Fake <ICalculationMethodSelectionPresenterForSimulation>();

            sut = new SimulationCompoundCalculationMethodSelectionPresenter(_view, _calculationMethodSelectionPresenter);

            _compound   = new Compound();
            _simulation = new IndividualSimulation {
                Properties = new SimulationProperties()
            };
            _compoundProperties = new CompoundProperties {
                Compound = _compound
            };
            _simulation.Properties.AddCompoundProperties(_compoundProperties);
        }
コード例 #4
0
 public CompoundInSimulationPresenter(ICompoundInSimulationView view, IMolWeightGroupPresenter molWeightGroupPresenter,
                                      ICompoundTypeGroupPresenter compoundTypeGroupPresenter, IMultiParameterEditPresenter simpleParameterPresenter,
                                      IMultiParameterEditPresenter advancedParameterPresenter, ICalculationMethodSelectionPresenterForSimulation calculationMethodsPresenter,
                                      IWithIdRepository withIdRepository)
     : base(view)
 {
     _molWeightGroupPresenter     = molWeightGroupPresenter;
     _compoundTypeGroupPresenter  = compoundTypeGroupPresenter;
     _simpleParameterPresenter    = simpleParameterPresenter;
     _advancedParameterPresenter  = advancedParameterPresenter;
     _calculationMethodsPresenter = calculationMethodsPresenter;
     _withIdRepository            = withIdRepository;
     AddSubPresenters(_calculationMethodsPresenter, _molWeightGroupPresenter, _compoundTypeGroupPresenter, _simpleParameterPresenter, _advancedParameterPresenter);
     _calculationMethodsPresenter.ReadOnly     = true;
     _compoundTypeGroupPresenter.ShowFavorites = true;
     initializeParametersPresenter(_simpleParameterPresenter);
     initializeParametersPresenter(_advancedParameterPresenter);
 }