Esempio n. 1
0
        public EditEventGroupBuildingBlockPresenter(IEditEventGroupBuildingBlockView view,
                                                    IEventGroupListPresenter eventGroupListPresenter,
                                                    IFormulaCachePresenter formulaCachePresenter,
                                                    IEditApplicationBuilderPresenter editApplicationBuilderPresenter,
                                                    IEditEventGroupPresenter editEventGroupPresenter,
                                                    IEditEventBuilderPresenter editEventBuilderPresenter,
                                                    IEditTransportBuilderPresenter editApplicationTransportBuilderPresenter,
                                                    IEditContainerPresenter editContainerPresenter,
                                                    IEditFavoritesInEventGroupsPresenter favoritesPresenter,
                                                    IUserDefinedParametersPresenter userDefinedParametersPresenter)
            : base(view, formulaCachePresenter, favoritesPresenter, userDefinedParametersPresenter)
        {
            _eventGroupListPresenter = eventGroupListPresenter;
            _editContainerPresenter  = editContainerPresenter;
            _editApplicationTransportBuilderPresenter = editApplicationTransportBuilderPresenter;
            _editEventBuilderPresenter       = editEventBuilderPresenter;
            _editEventGroupPresenter         = editEventGroupPresenter;
            _editApplicationBuilderPresenter = editApplicationBuilderPresenter;

            _view.SetListView(_eventGroupListPresenter.BaseView);
            _view.SetEditView(_favoritesPresenter.BaseView);

            _favoritesPresenter.ShouldHandleRemovedEvent = isShowableType;

            AddSubPresenters(_editApplicationTransportBuilderPresenter, _editContainerPresenter, _editEventBuilderPresenter,
                             _editEventGroupPresenter, _eventGroupListPresenter, _editApplicationBuilderPresenter);
        }
Esempio n. 2
0
 protected override void Context()
 {
     _view   = A.Fake <IEditPassiveTransportBuildingBlockView>();
     _mapper = A.Fake <ITransportBuilderToTransportBuilderDTOMapper>();
     _transporterBuilderPresenter = A.Fake <IEditTransportBuilderPresenter>();
     _viewItemContextMenuFactory  = A.Fake <IViewItemContextMenuFactory>();
     _formulaMapper         = A.Fake <IFormulaToFormulaBuilderDTOMapper>();
     _formulaCachePresenter = A.Fake <IFormulaCachePresenter>();
     sut = new EditPassiveTransportBuildingBlockPresenter(_view, _mapper, _transporterBuilderPresenter, _viewItemContextMenuFactory, _formulaMapper, _formulaCachePresenter);
 }
 public EditPassiveTransportBuildingBlockPresenter(IEditPassiveTransportBuildingBlockView view,
                                                   ITransportBuilderToTransportBuilderDTOMapper transportBuilderToDTOTransportBuilderMapper,
                                                   IEditTransportBuilderPresenter editTransportBuilderPresenter, IViewItemContextMenuFactory viewItemContextMenuFactory,
                                                   IFormulaToFormulaBuilderDTOMapper formulaToFormulaDTOBuilderMapper, IFormulaCachePresenter formulaCachePresenter)
     : base(view, formulaCachePresenter)
 {
     _formulaToFormulaDTOBuilderMapper            = formulaToFormulaDTOBuilderMapper;
     _viewItemContextMenuFactory                  = viewItemContextMenuFactory;
     _editTransportBuilderPresenter               = editTransportBuilderPresenter;
     _transportBuilderToDTOTransportBuilderMapper = transportBuilderToDTOTransportBuilderMapper;
     AddSubPresenters(_editTransportBuilderPresenter);
 }
Esempio n. 4
0
        protected override void Context()
        {
            _view                           = A.Fake <IEditEventGroupBuildingBlockView>();
            _presenter                      = A.Fake <IEventGroupListPresenter>();
            _formulaCachePresenter          = A.Fake <IFormulaCachePresenter>();
            _applicationPresenter           = A.Fake <IEditApplicationBuilderPresenter>();
            _eventGroupPresenter            = A.Fake <IEditEventGroupPresenter>();
            _eventBuilderPresenter          = A.Fake <IEditEventBuilderPresenter>();
            _transportBuilderPresenter      = A.Fake <IEditTransportBuilderPresenter>();
            _containerPresenter             = A.Fake <IEditContainerPresenter>();
            _favoritesPresenter             = A.Fake <IEditFavoritesInEventGroupsPresenter>();
            _userDefinedParametersPresenter = A.Fake <IUserDefinedParametersPresenter>();

            sut = new EditEventGroupBuildingBlockPresenter(_view, _presenter, _formulaCachePresenter, _applicationPresenter,
                                                           _eventGroupPresenter, _eventBuilderPresenter, _transportBuilderPresenter, _containerPresenter,
                                                           _favoritesPresenter, _userDefinedParametersPresenter);
        }
        public EditMoleculeBuildingBlockPresenter(IEditMoleculesBuildingBlockView view,
                                                  IMoleculeListPresenter moleculeListPresenter, IFormulaCachePresenter formulaCachePresenter,
                                                  IEditMoleculeBuilderPresenter editMoleculeBuilderPresenter,
                                                  IEditTransporterMoleculeContainerPresenter editTransporterMoleculeContainerPresenter,
                                                  IEditTransportBuilderPresenter editTransportBuilderPresenter,
                                                  IEditContainerPresenter editInteractionContainerPresenter,
                                                  IEditFavoritesInMoleculesPresenter favoritesPresenter,
                                                  IUserDefinedParametersPresenter userDefinedParametersPresenter
                                                  )
            : base(view, formulaCachePresenter, favoritesPresenter, userDefinedParametersPresenter)
        {
            _editTransportBuilderPresenter             = editTransportBuilderPresenter;
            _editTransporterMoleculeContainerPresenter = editTransporterMoleculeContainerPresenter;
            _editMoleculeBuilderPresenter                = editMoleculeBuilderPresenter;
            _moleculeListPresenter                       = moleculeListPresenter;
            _editInteractionContainerPresenter           = editInteractionContainerPresenter;
            _favoritesPresenter.ShouldHandleRemovedEvent = shouldHandleType;
            _view.SetListView(_moleculeListPresenter.BaseView);

            AddSubPresenters(_editTransportBuilderPresenter, _editTransporterMoleculeContainerPresenter,
                             _editMoleculeBuilderPresenter, _moleculeListPresenter, _editInteractionContainerPresenter);
        }
Esempio n. 6
0
 public void AttachPresenter(IEditTransportBuilderPresenter presenter)
 {
     _presenter = presenter;
 }