public SimulationCompoundProcessSummaryPresenter(ISimulationCompoundProcessSummaryView view,
                                                  ISimulationCompoundEnzymaticProcessPresenter simulationEnzymaticProcessPresenter,
                                                  ISimulationCompoundTransportAndExcretionPresenter simulationTransportAndExcretionPresenter,
                                                  ISimulationCompoundSpecificBindingPresenter simulationSpecificBindingPresenter)
     : base(view)
 {
     AddSubPresenters(simulationEnzymaticProcessPresenter, simulationTransportAndExcretionPresenter, simulationSpecificBindingPresenter);
     _view.AddProcessView(simulationEnzymaticProcessPresenter.View);
     _view.AddProcessView(simulationTransportAndExcretionPresenter.View);
     _view.AddProcessView(simulationSpecificBindingPresenter.View);
 }
Пример #2
0
        protected override void Context()
        {
            _view = A.Fake <ISimulationCompoundProcessSummaryView>();
            _simulationEnzymaticProcessPresenter      = A.Fake <ISimulationCompoundEnzymaticProcessPresenter>();
            _simulationTransportAndExcretionPresenter = A.Fake <ISimulationCompoundTransportAndExcretionPresenter>();
            _simulationSpecificBindingPresenter       = A.Fake <ISimulationCompoundSpecificBindingPresenter>();
            sut = new SimulationCompoundProcessSummaryPresenter(_view, _simulationEnzymaticProcessPresenter, _simulationTransportAndExcretionPresenter, _simulationSpecificBindingPresenter);

            _simulation = new IndividualSimulation {
                Properties = new SimulationProperties()
            };
            _compound = A.Fake <Compound>();
            _simulation.AddUsedBuildingBlock(new UsedBuildingBlock("template", PKSimBuildingBlockType.Compound)
            {
                BuildingBlock = _compound
            });
            _individual         = A.Fake <Individual>();
            _compoundProperties = new CompoundProperties {
                Compound = _compound
            };
            _simulation.Properties.AddCompoundProperties(_compoundProperties);
        }