public CompoundProcessPresenter(ICompoundProcessView view, IParametersByGroupPresenter parametersPresenter,
                                 IEntityTask entityTask, ISpeciesRepository speciesRepository,
                                 IRepresentationInfoRepository representationInfoRepository,
                                 ICompoundProcessToCompoundProcessDTOMapper compoundProcessDTOMapper,
                                 ICompoundProcessTask compoundProcessTask)
     : base(view, parametersPresenter, entityTask, speciesRepository, representationInfoRepository, compoundProcessDTOMapper, compoundProcessTask)
 {
 }
Esempio n. 2
0
 protected override void Context()
 {
     _view = A.Fake <IEventSettingsView>();
     _eventGroupRepository         = A.Fake <IEventGroupRepository>();
     _representationInfoRepository = A.Fake <IRepresentationInfoRepository>();
     _eventParametersPresenter     = A.Fake <IParametersByGroupPresenter>();
     sut = new EventSettingsPresenter(_view, _eventGroupRepository, _representationInfoRepository, _eventParametersPresenter);
 }
Esempio n. 3
0
 public EventSettingsPresenter(IEventSettingsView view, IEventGroupRepository eventGroupRepository,
                               IRepresentationInfoRepository representationInfoRepository, IParametersByGroupPresenter eventParametersPresenter)
     : base(view)
 {
     _eventGroupRepository         = eventGroupRepository;
     _representationInfoRepository = representationInfoRepository;
     _eventParametersPresenter     = eventParametersPresenter;
     _view.AddParameterView(_eventParametersPresenter.View);
 }
Esempio n. 4
0
 protected CreateProcessPresenter(TView view, IParametersByGroupPresenter parametersPresenter, ICompoundProcessToCompoundProcessDTOMapper processMapper,
                                  ICompoundProcessTask compoundProcessTask, ISpeciesRepository speciesRepository)
     : base(view)
 {
     _parametersPresenter = parametersPresenter;
     _processMapper       = processMapper;
     _compoundProcessTask = compoundProcessTask;
     _speciesRepository   = speciesRepository;
     _view.AddParametersView(_parametersPresenter.View);
     _editCommands = new PKSimMacroCommand();
 }
Esempio n. 5
0
 protected CreatePartialProcessPresenter(TView view,
                                         ICompoundProcessTask compoundProcessTask,
                                         IPartialProcessToPartialProcessDTOMapper partialProcessMapper,
                                         IParametersByGroupPresenter parameterEditPresenter,
                                         ICompoundProcessToCompoundProcessDTOMapper processMapper,
                                         IUsedMoleculeRepository usedMoleculeRepository, ISpeciesRepository speciesRepository)
     : base(view, parameterEditPresenter, processMapper, compoundProcessTask, speciesRepository)
 {
     _partialProcessMapper      = partialProcessMapper;
     _view.AllAvailableProteins = usedMoleculeRepository.All();
     DefaultMoleculeName        = string.Empty;
 }
 public EnzymaticCompoundProcessPresenter(
     IEnzymaticCompoundProcessView view,
     IParametersByGroupPresenter parametersPresenter,
     IEntityTask entityTask, ISpeciesRepository speciesRepository,
     IRepresentationInfoRepository representationInfoRepository,
     IEnzymaticProcessToEnzymaticProcessDTOMapper mapper,
     IBuildingBlockRepository buildingBlockRepository,
     ICompoundProcessTask processTask)
     : base(view, parametersPresenter, entityTask, speciesRepository, representationInfoRepository, mapper, processTask)
 {
     _buildingBlockRepository = buildingBlockRepository;
 }
 protected override void Context()
 {
     base.Context();
     _view = A.Fake <ICreateEnzymaticProcessView>();
     _compoundProcessTask     = A.Fake <ICompoundProcessTask>();
     _buildingBlockRepository = A.Fake <IBuildingBlockRepository>();
     _processMapper           = A.Fake <ICompoundProcessToCompoundProcessDTOMapper>();
     _partialProcessMapper    = A.Fake <IPartialProcessToPartialProcessDTOMapper>();
     _parameterPresenter      = A.Fake <IParametersByGroupPresenter>();
     _usedMOleculeRepository  = A.Fake <IUsedMoleculeRepository>();
     _speciesRepository       = A.Fake <ISpeciesRepository>();
     sut = new CreateEnzymaticProcessPresenter(_view, _compoundProcessTask, _processMapper, _partialProcessMapper, _parameterPresenter, _usedMOleculeRepository, _speciesRepository, _buildingBlockRepository);
 }
 public CreateEnzymaticProcessPresenter(
     ICreateEnzymaticProcessView view,
     ICompoundProcessTask compoundProcessTask,
     ICompoundProcessToCompoundProcessDTOMapper processMapper,
     IPartialProcessToPartialProcessDTOMapper partialProcessMapper,
     IParametersByGroupPresenter parameterEditPresenter,
     IUsedMoleculeRepository usedMoleculeRepository,
     ISpeciesRepository speciesRepository,
     IBuildingBlockRepository buildingBlockRepository)
     : base(view, compoundProcessTask, partialProcessMapper, parameterEditPresenter, processMapper, usedMoleculeRepository, speciesRepository)
 {
     view.SetIcon(ApplicationIcons.Metabolite);
     view.Caption             = PKSimConstants.UI.CreateMetabolizingEnzyme;
     view.MoleculeCaption     = PKSimConstants.UI.MetabolizingEnzyme;
     _buildingBlockRepository = buildingBlockRepository;
 }
 protected BaseCompoundProcessPresenter(TView view,
                                        IParametersByGroupPresenter parametersPresenter,
                                        IEntityTask entityTask, ISpeciesRepository speciesRepository,
                                        IRepresentationInfoRepository representationInfoRepository,
                                        IMapper <TCompoundProcess, TProcessDTO> compoundProcessDTOMapper,
                                        ICompoundProcessTask compoundProcessTask)
     : base(view)
 {
     _parametersPresenter          = parametersPresenter;
     _entityTask                   = entityTask;
     _speciesRepository            = speciesRepository;
     _representationInfoRepository = representationInfoRepository;
     _compoundProcessDTOMapper     = compoundProcessDTOMapper;
     _processTask                  = compoundProcessTask;
     _view.SetParametersView(_parametersPresenter.View);
     AddSubPresenters(_parametersPresenter);
 }
Esempio n. 10
0
 public CreateTransportPartialProcessPresenter(ICreatePartialProcessView view, ICompoundProcessTask compoundProcessTask, ICompoundProcessToCompoundProcessDTOMapper processMapper, IPartialProcessToPartialProcessDTOMapper partialProcessMapper, IParametersByGroupPresenter parameterEditPresenter, IUsedMoleculeRepository usedMoleculeRepository, ISpeciesRepository speciesRepository)
     : base(view, compoundProcessTask, partialProcessMapper, parameterEditPresenter, processMapper, usedMoleculeRepository, speciesRepository)
 {
     view.SetIcon(ApplicationIcons.Transporter);
     view.MoleculeCaption = PKSimConstants.UI.TransportProteins;
     view.Caption         = PKSimConstants.UI.CreateTransportProtein;
 }
Esempio n. 11
0
 public void AttachPresenter(IParametersByGroupPresenter presenter)
 {
     base.AttachPresenter(presenter);
     _presenter = presenter;
 }
Esempio n. 12
0
 public CreateSystemicProcessPresenter(ICreateSystemicProcessView view, IParametersByGroupPresenter parameterEditPresenter,
                                       ICompoundProcessToCompoundProcessDTOMapper processMapper, ICompoundProcessTask compoundProcessTask,
                                       ISpeciesRepository speciesRepository, ISystemicProcessToSystemicProcessDTOMapper systemicProcessDTOMapper) : base(view, parameterEditPresenter, processMapper, compoundProcessTask, speciesRepository)
 {
     _systemicProcessDTOMapper = systemicProcessDTOMapper;
 }
 public CreateInhibitionProcessPresenter(ICreatePartialProcessView view, ICompoundProcessTask compoundProcessTask, IPartialProcessToPartialProcessDTOMapper partialProcessMapper, IParametersByGroupPresenter parameterEditPresenter, ICompoundProcessToCompoundProcessDTOMapper processMapper, IUsedMoleculeRepository usedMoleculeRepository, ISpeciesRepository speciesRepository) : base(view, compoundProcessTask, partialProcessMapper, parameterEditPresenter, processMapper, usedMoleculeRepository, speciesRepository)
 {
     view.ApplicationIcon = ApplicationIcons.Inhibition;
     view.MoleculeCaption = PKSimConstants.UI.AffectedEnzymeOrTransporter;
     view.Caption         = PKSimConstants.UI.Inhibition;
 }
 public CreateSpecificBindingPartialProcessPresenter(ICreatePartialProcessView view, ICompoundProcessTask compoundProcessTask, ICompoundProcessToCompoundProcessDTOMapper processMapper, IPartialProcessToPartialProcessDTOMapper partialProcessMapper, IParametersByGroupPresenter parameterEditPresenter, IUsedMoleculeRepository usedMoleculeRepository, ISpeciesRepository speciesRepository)
     : base(view, compoundProcessTask, partialProcessMapper, parameterEditPresenter, processMapper, usedMoleculeRepository, speciesRepository)
 {
     view.ApplicationIcon = ApplicationIcons.SpecificBinding;
     view.MoleculeCaption = PKSimConstants.UI.ProteinBindingPartner;
     view.Caption         = PKSimConstants.UI.CreateProteinBindingPartner;
 }