public AdvancedProtocolPresenter(IAdvancedProtocolView view, ISchemaItemToSchemaItemDTOMapper schemaItemDTOMapper,
                                  ISchemaToSchemaDTOMapper schemaDTOMapper, IParameterToParameterDTOMapper parameterDTOMapper,
                                  IProtocolTask protocolTask, IParameterTask parameterTask, IDimensionRepository dimensionRepository)
     : base(view, protocolTask, parameterTask)
 {
     _schemaItemDTOMapper = schemaItemDTOMapper;
     _schemaDTOMapper     = schemaDTOMapper;
     _parameterDTOMapper  = parameterDTOMapper;
     _dimensionRepository = dimensionRepository;
 }
 protected ProtocolItemPresenter(
     TView view,
     IProtocolTask protocolTask,
     IParameterTask parameterTask,
     IIndividualFactory individualFactory,
     IRepresentationInfoRepository representationInfoRepository)
     : base(view)
 {
     _protocolTask  = protocolTask;
     _parameterTask = parameterTask;
     _representationInfoRepository = representationInfoRepository;
     _defaultIndividual            = individualFactory.CreateParameterLessIndividual();
 }
 public SimpleProtocolPresenter(ISimpleProtocolView view,
                                IMultiParameterEditPresenter dynamicParameterPresenter,
                                ISimpleProtocolToSimpleProtocolDTOMapper simpleProtocolDTOMapper,
                                IProtocolTask protocolTask, IParameterTask parameterTask,
                                IIndividualFactory individualFactory, IRepresentationInfoRepository representationInfoRepository)
     : base(view, protocolTask, parameterTask)
 {
     _simpleProtocolDTOMapper                  = simpleProtocolDTOMapper;
     _representationInfoRepository             = representationInfoRepository;
     _dynamicParameterPresenter                = dynamicParameterPresenter;
     _dynamicParameterPresenter.IsSimpleEditor = true;
     _view.AddDynamicParameterView(_dynamicParameterPresenter.View);
     _defaultIndivdual = individualFactory.CreateParameterLessIndividual();
 }
Exemple #4
0
 public SimpleProtocolPresenter(ISimpleProtocolView view,
                                IMultiParameterEditPresenter dynamicParameterPresenter,
                                ISimpleProtocolToSimpleProtocolDTOMapper simpleProtocolDTOMapper,
                                IProtocolTask protocolTask, IParameterTask parameterTask,
                                IIndividualFactory individualFactory, IRepresentationInfoRepository representationInfoRepository)
     : base(view, protocolTask, parameterTask, individualFactory, representationInfoRepository)
 {
     _simpleProtocolDTOMapper   = simpleProtocolDTOMapper;
     _dynamicParameterPresenter = dynamicParameterPresenter;
     _dynamicParameterPresenter.IsSimpleEditor     = true;
     _dynamicParameterPresenter.ValueOriginVisible = false;
     _dynamicParameterPresenter.HeaderVisible      = false;
     _view.AddDynamicParameterView(_dynamicParameterPresenter.View);
 }
Exemple #5
0
 protected override void Context()
 {
     _view                                    = A.Fake <ISimpleProtocolView>();
     _schemaDTOMapper                         = A.Fake <ISchemaToSchemaDTOMapper>();
     _protocolTask                            = A.Fake <IProtocolTask>();
     _parameterTask                           = A.Fake <IParameterTask>();
     _individualFactory                       = A.Fake <IIndividualFactory>();
     _representationInfoRepository            = A.Fake <IRepresentationInfoRepository>();
     _dynamicParameterPresenter               = A.Fake <IMultiParameterEditPresenter>();
     _simpleProtocolToSimpleProtocolDTOMapper = A.Fake <ISimpleProtocolToSimpleProtocolDTOMapper>();
     _individual                              = DomainHelperForSpecs.CreateIndividual();
     A.CallTo(() => _individualFactory.CreateParameterLessIndividual()).Returns(_individual);
     sut = new SimpleProtocolPresenter(_view, _dynamicParameterPresenter, _simpleProtocolToSimpleProtocolDTOMapper,
                                       _protocolTask, _parameterTask, _individualFactory, _representationInfoRepository);
     sut.InitializeWith(A.Fake <ICommandCollector>());
 }
        protected override void Context()
        {
            _advancedProtocol = A.Fake <PKSim.Core.Model.AdvancedProtocol>();
            _allSchemas       = new List <Schema>();
            A.CallTo(() => _advancedProtocol.AllSchemas).Returns(_allSchemas);

            _schemaDTOMapper     = A.Fake <ISchemaToSchemaDTOMapper>();
            _schemaItemDTOMapper = A.Fake <ISchemaItemToSchemaItemDTOMapper>();
            _parameterDTOMapper  = A.Fake <IParameterToParameterDTOMapper>();
            _protocolTask        = A.Fake <IProtocolTask>();
            _parameterTask       = A.Fake <IParameterTask>();
            _view = A.Fake <IAdvancedProtocolView>();
            _dimensionRepository = A.Fake <IDimensionRepository>();
            sut = new AdvancedProtocolPresenter(_view, _schemaItemDTOMapper, _schemaDTOMapper, _parameterDTOMapper, _protocolTask, _parameterTask, _dimensionRepository);
            sut.InitializeWith(A.Fake <ICommandCollector>());
        }
Exemple #7
0
 public AdvancedProtocolPresenter(
     IAdvancedProtocolView view,
     ISchemaItemToSchemaItemDTOMapper schemaItemDTOMapper,
     ISchemaToSchemaDTOMapper schemaDTOMapper,
     IParameterToParameterDTOMapper parameterDTOMapper,
     IProtocolTask protocolTask,
     IParameterTask parameterTask,
     IDimensionRepository dimensionRepository,
     IIndividualFactory individualFactory,
     IRepresentationInfoRepository representationInfoRepository)
     : base(view, protocolTask, parameterTask, individualFactory, representationInfoRepository)
 {
     _schemaItemDTOMapper = schemaItemDTOMapper;
     _schemaDTOMapper     = schemaDTOMapper;
     _parameterDTOMapper  = parameterDTOMapper;
     _dimensionRepository = dimensionRepository;
 }
Exemple #8
0
 protected ProtocolItemPresenter(TView view, IProtocolTask protocolTask, IParameterTask parameterTask)
     : base(view)
 {
     _protocolTask  = protocolTask;
     _parameterTask = parameterTask;
 }