Esempio n. 1
0
        public void SetUp()
        {
            mockery       = new MockRepository();
            mapper        = mockery.DynamicMock <ISubMenuToToolStripMenuItemMapper>();
            mainShell     = mockery.DynamicMock <WindowShell>();
            mainMenuStrip = new MenuStrip();

            SetupResult.For(mainShell.MenuStrip()).Return(mainMenuStrip);
        }
Esempio n. 2
0
 public MainMenuView(WindowShell mainShell, ISubMenuToToolStripMenuItemMapper mapper)
 {
     this.mapper    = mapper;
     this.mainShell = mainShell;
 }