Exemplo n.º 1
0
 public MenuAndToolBarPresenter(IMenuAndToolBarView view, IMenuBarItemRepository menuBarItemRepository,
                                IButtonGroupRepository buttonGroupRepository, IMRUProvider mruProvider, ISkinManager skinManager, IMoBiContext context)
     : base(view, menuBarItemRepository, mruProvider)
 {
     _skinManager           = skinManager;
     _context               = context;
     _menuBarItemRepository = menuBarItemRepository;
     _buttonGroupRepository = buttonGroupRepository;
 }
Exemplo n.º 2
0
 public MenuAndToolBarPresenter(IMenuAndToolBarView view, IMenuBarItemRepository menuBarItemRepository,
                                IButtonGroupRepository buttonGroupRepository, IMRUProvider mruProvider,
                                ISkinManager skinManager, IStartOptions startOptions, IWorkspace workspace, IActiveSubjectRetriever activeSubjectRetriever) : base(view, menuBarItemRepository, mruProvider)
 {
     _menuBarItemRepository  = menuBarItemRepository;
     _buttonGroupRepository  = buttonGroupRepository;
     _skinManager            = skinManager;
     _startOptions           = startOptions;
     _workspace              = workspace;
     _activeSubjectRetriever = activeSubjectRetriever;
     _enabled = true;
 }
        protected override void Context()
        {
            _view = A.Fake <IMenuAndToolBarView>();
            _menuBarItemRepository  = A.Fake <IMenuBarItemRepository>();
            _buttonGroupRepository  = A.Fake <IButtonGroupRepository>();
            _mruProvider            = A.Fake <IMRUProvider>();
            _skinManager            = A.Fake <ISkinManager>();
            _workspace              = A.Fake <IWorkspace>();
            _activeSubjectRetriever = A.Fake <IActiveSubjectRetriever>();
            _startOptions           = A.Fake <IStartOptions>();

            sut = new MenuAndToolBarPresenter(_view, _menuBarItemRepository, _buttonGroupRepository, _mruProvider, _skinManager, _startOptions, _workspace, _activeSubjectRetriever);


            A.CallTo(() => _menuBarItemRepository[A <MenuBarItemId> ._]).ReturnsLazily(item =>
            {
                {
                    var id = item.Arguments[0].DowncastTo <MenuBarItemId>();
                    return(FindMenuById(id));
                }
            });
        }
Exemplo n.º 4
0
 public MenuAndToolBarPresenter(IMenuAndToolBarView view, IMenuBarItemRepository menuBarItemRepository, IMRUProvider mruProvider) : base(view, menuBarItemRepository, mruProvider)
 {
 }
 protected AbstractMenuAndToolBarPresenter(IMenuAndToolBarView view, IMenuBarItemRepository menuBarItemRepository, IMRUProvider mruProvider)
 {
     _view = view;
     _menuBarItemRepository = menuBarItemRepository;
     _mruProvider           = mruProvider;
 }