Esempio n. 1
0
 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();
 }
Esempio n. 2
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);
 }
Esempio n. 3
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>());
 }