public void SetUp() { windowManager = TestWindowManager.Create(); menuManager = MockRepository.GenerateStub <IMenuManager>(); windowManager.Stub(wm => wm.MenuManager).Return(menuManager); menuManager.Stub(mm => mm.Add(Arg <string> .Is.Anything, Arg <Func <MenuCommand> > .Is.Anything)) .Do((Action <string, Func <MenuCommand> >)((m, f) => menuCommand = f())); var testExplorerController = MockRepository.GenerateStub <ITestExplorerController>(); var testExplorerModel = MockRepository.GenerateStub <ITestExplorerModel>(); package = new TestExplorerPackage(windowManager, testExplorerController, testExplorerModel); }
public void SetUp() { windowManager = TestWindowManager.Create(); menuManager = MockRepository.GenerateStub <IMenuManager>(); windowManager.Stub(wm => wm.MenuManager).Return(menuManager); menuManager.Stub(mm => mm.Add(Arg <string> .Is.Anything, Arg <Common.GallioFunc <MenuCommand> > .Is.Anything)) .Do((Common.GallioAction <string, Common.GallioFunc <MenuCommand> >)((m, f) => menuCommand = f())); var testResultsController = MockRepository.GenerateStub <ITestResultsController>(); var optionsController = MockRepository.GenerateStub <IOptionsController>(); var testTreeModel = MockRepository.GenerateStub <ITestTreeModel>(); var testStatistics = new TestStatistics(); package = new TestResultsPackage(windowManager, testResultsController, optionsController, testTreeModel, testStatistics); }
public void SetUp() { windowManager = TestWindowManager.Create(); menuManager = MockRepository.GenerateStub <IMenuManager>(); windowManager.Stub(wm => wm.MenuManager).Return(menuManager); menuManager.Stub(mm => mm.Add(Arg <string> .Is.Anything, Arg <GallioFunc <MenuCommand> > .Is.Anything)) .Do((GallioAction <string, GallioFunc <MenuCommand> >)((m, f) => menuCommand = f())); var projectController = MockRepository.GenerateStub <IProjectController>(); var reportController = MockRepository.GenerateStub <IReportController>(); var taskManager = MockRepository.GenerateStub <ITaskManager>(); var commandFactory = MockRepository.GenerateStub <ICommandFactory>(); package = new ProjectExplorerPackage(windowManager, projectController, reportController, taskManager, commandFactory); }