예제 #1
0
        protected SelectReferencePresenterBase(ISelectReferenceView view,
                                               IObjectBaseToObjectBaseDTOMapper objectBaseDTOMapper,
                                               IMoBiContext context,
                                               IUserSettings userSettings,
                                               IObjectBaseToDummyMoleculeDTOMapper objectBaseToDummyMoleculeDTOMapper,
                                               IParameterToDummyParameterDTOMapper dummyParameterDTOMapper,
                                               IObjectBaseDTOToReferenceNodeMapper referenceMapper,
                                               IObjectPathCreator objectPathCreator,
                                               Localisations localisation)
            : base(view)
        {
            _objectPathCreator       = objectPathCreator;
            _localisation            = localisation;
            _dummyParameterDTOMapper = dummyParameterDTOMapper;
            _referenceMapper         = referenceMapper;
            _dummyMoleculeDTOMapper  = objectBaseToDummyMoleculeDTOMapper;
            _userSettings            = userSettings;
            _context             = context;
            _objectBaseDTOMapper = objectBaseDTOMapper;
            _objectPathFactory   = _context.ObjectPathFactory;
            _view.ObjectPathType = _userSettings.ObjectPathType;

            _referenceMapper.Initialize(GetChildObjects);

            SelectionPredicate = parameter => true;
        }
예제 #2
0
 public SelectReferenceAtAmountObserverPresenter(ISelectReferenceView view,
                                                 IObjectBaseToObjectBaseDTOMapper objectBaseDTOMapper, IMoBiContext context,
                                                 IUserSettings userSettings,
                                                 IObjectBaseToDummyMoleculeDTOMapper objectBaseToMoleculeDummyMapper,
                                                 IParameterToDummyParameterDTOMapper dummyParameterDTOMapper, IObjectBaseDTOToReferenceNodeMapper referenceMapper, IObjectPathCreatorAtAmountObserver objectPathCreator)
     : base(
         view, objectBaseDTOMapper, context, userSettings,
         objectBaseToMoleculeDummyMapper, dummyParameterDTOMapper, referenceMapper, objectPathCreator)
 {
 }
예제 #3
0
 public SelectReferenceAtMoleculePresenter(ISelectReferenceView view,
                                           IObjectBaseToObjectBaseDTOMapper objectBaseDTOMapper,
                                           IMoBiContext context,
                                           IUserSettings userSettings,
                                           IObjectBaseToDummyMoleculeDTOMapper objectBaseToMoleculeDummyMapper,
                                           IParameterToDummyParameterDTOMapper dummyParameterDTOMapper, IObjectBaseDTOToReferenceNodeMapper referenceMapper, IObjectPathCreatorAtMoleculeStartValue objectPathCreator)
     : base(
         view, objectBaseDTOMapper, context, userSettings,
         objectBaseToMoleculeDummyMapper, dummyParameterDTOMapper, referenceMapper, objectPathCreator, Localisations.PhysicalContainerOnly)
 {
 }
 public SelectReferenceAtParameterPresenter(ISelectReferenceView view,
                                            IObjectBaseToObjectBaseDTOMapper objectBaseDTOMapper,
                                            IMoBiContext context,
                                            IUserSettings userSettings,
                                            IObjectBaseToDummyMoleculeDTOMapper objectBaseToMoleculeDummyMapper,
                                            IParameterToDummyParameterDTOMapper dummyParameterDTOMapper, IObjectBaseDTOToReferenceNodeMapper referenceMapper, IObjectPathCreatorAtParameter objectPathCreator)
     : base(
         view, objectBaseDTOMapper, context, userSettings,
         objectBaseToMoleculeDummyMapper, dummyParameterDTOMapper, referenceMapper, objectPathCreator, Localisations.ContainerOnly)
 {
     ChangeLocalisationAllowed = true;
 }
예제 #5
0
 protected override void Context()
 {
     _view                = A.Fake <ISelectReferenceView>();
     _context             = A.Fake <IMoBiContext>();
     _objectBaseDTOMapper = A.Fake <IObjectBaseToObjectBaseDTOMapper>();
     _moleculeMapper      = A.Fake <IObjectBaseToDummyMoleculeDTOMapper>();
     _parameterMapper     = A.Fake <IParameterToDummyParameterDTOMapper>();
     _userSettings        = A.Fake <IUserSettings>();
     _objectPathCreator   = A.Fake <IObjectPathCreatorAtParameter>();
     _referenceMapper     = A.Fake <IObjectBaseDTOToReferenceNodeMapper>();
     sut = new SelectReferenceAtParameterPresenter(_view, _objectBaseDTOMapper, _context, _userSettings,
                                                   _moleculeMapper, _parameterMapper, _referenceMapper,
                                                   _objectPathCreator);
 }
예제 #6
0
 public SelectReferencePresenterAtApplicationBuilder(ISelectReferenceView view, IObjectBaseToObjectBaseDTOMapper objectBaseDTOMapper, IMoBiContext context, IUserSettings userSettings, IObjectBaseToDummyMoleculeDTOMapper dtoObjectBaseToMoleculeDTOMapper, IParameterToDummyParameterDTOMapper dummyParameterDTOMapper,
                                                     IObjectBaseDTOToReferenceNodeMapper referenceMapper, IObjectPathCreatorAtMoleculeApllicationBuilder objectPathCreator)
     : base(view, objectBaseDTOMapper, context, userSettings, dtoObjectBaseToMoleculeDTOMapper, dummyParameterDTOMapper, referenceMapper, objectPathCreator, Localisations.ContainerOnly)
 {
 }
 public SelectReferenceAtTransportPresenter(ISelectReferenceView view, IObjectBaseToObjectBaseDTOMapper objectBaseDTOMapper,
                                            IMoBiContext context, IUserSettings userSettings, IObjectBaseToDummyMoleculeDTOMapper objectBaseToMoleculeDummyMapper,
                                            IParameterToDummyParameterDTOMapper dummyParameterDTOMapper, IObjectBaseDTOToReferenceNodeMapper referenceMapper,
                                            IObjectPathCreatorAtTransport objectPathCreatorAtTransport, ITransportMoleculeContainerToObjectBaseDTOMapper transporterMoleculeContainerMapper)
     : base(view, objectBaseDTOMapper, context, userSettings,
            objectBaseToMoleculeDummyMapper, dummyParameterDTOMapper, referenceMapper, objectPathCreatorAtTransport, Localisations.NeighborhoodsOnly)
 {
     _objectPathCreatorAtTransport       = objectPathCreatorAtTransport;
     _transporterMoleculeContainerMapper = transporterMoleculeContainerMapper;
 }