public void SetUp() { mockery = new MockRepository(); repository = mockery.DynamicMock <IRepository <ISubMenu> >(); mainMenu = mockery.DynamicMock <IMainMenuView>(); comparer = mockery.DynamicMock <ISubMenuItemComparer>(); }
public MainMenuPresenter(IMainMenuView mainMenu, IRepository <ISubMenu> repository, ISubMenuItemComparer comparer) { this.mainMenu = mainMenu; this.repository = repository; this.comparer = comparer; }