public SimulationCompoundSpecificBindingPresenter(ISimulationCompoundProcessView <SpecificBindingPartialProcess, SimulationPartialProcessSelectionDTO> view, IPartialProcessRetriever partialProcessRetriever) : base(view, partialProcessRetriever, PKSimConstants.ObjectTypes.Protein, PKSimConstants.UI.CompoundBindingProcess) { View.ApplicationIcon = ApplicationIcons.SpecificBinding; View.Caption = PKSimConstants.UI.SimulationSpecificBinding; }
public SimulationCompoundTransportAndExcretionPresenter(ISimulationCompoundProcessView <TransportPartialProcess, SimulationPartialProcessSelectionDTO> view, IPartialProcessRetriever partialProcessRetriever) : base(view, partialProcessRetriever, PKSimConstants.ObjectTypes.Transporter, PKSimConstants.UI.CompoundTransportProcess) { View.ApplicationIcon = ApplicationIcons.Transport; View.Caption = PKSimConstants.UI.SimulationTransportAndExcretion; }
protected SimulationCompoundProcessPresenter(ISimulationCompoundProcessView <TPartialProcess, TPartialProcessDTO> view, IPartialProcessRetriever partialProcessRetriever, string moleculeDisplayName, string compoundProcessCaption) : base(view) { _partialProcessRetriever = partialProcessRetriever; View.MoleculeName = moleculeDisplayName; View.CompoundProcessCaption = compoundProcessCaption; _notSelectedPartialProcess = new TPartialProcess { MoleculeName = PKSimConstants.UI.None }; _notSelectedPartialProcess.RefreshName(); _partialProcessRetriever.NotSelectedPartialProcess = _notSelectedPartialProcess; }
protected override void Context() { _partialProcessRetriever = A.Fake <IPartialProcessRetriever>(); _view = A.Fake <ISimulationCompoundProcessView <TransportPartialProcess, SimulationPartialProcessSelectionDTO> >(); _selectedSimulationPrtialProcess = new List <SimulationPartialProcess>(); _compound = new Compound(); _simulation = new IndividualSimulation { Properties = new SimulationProperties() }; _compoundProperties = new CompoundProperties { Compound = _compound }; _simulation.Properties.AddCompoundProperties(_compoundProperties); A.CallTo(_partialProcessRetriever).WithReturnType <IEnumerable <SimulationPartialProcess> >().Returns(_selectedSimulationPrtialProcess); sut = new SimulationCompoundTransportAndExcretionPresenter(_view, _partialProcessRetriever); }