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; }
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)); } }); }