protected override void beforeEach() { base.beforeEach(); _screenObjectLocator = MockFor <IScreenObjectLocator>(); _theAction = MockFor <IContextualAction>(); _screenObjectLocator.Expect(x => x.CommandForSubject <RunTestCommand, Test>(_node.Subject)).Return(_theAction); _theAction.Expect(x => x.Execute()); ClassUnderTest.RunNode(_node); }
public ScreenConductor(IEventAggregator events, IScreenCollection screens, IScreenObjectLocator screenObjectLocator, IMessageCreator messageBox, IShellService shellService, IScreenFactory factory) { _events = events; _screens = screens; _screenObjectLocator = screenObjectLocator; _messageBox = messageBox; _shellService = shellService; _factory = factory; }
public ExplorerView(TreeView testTree, TreeView fixtureTree, IScreenConductor conductor, IScreenObjectLocator screenObjects) { _testTree = testTree; _fixtureTree = fixtureTree; _conductor = conductor; _screenObjects = screenObjects; _testTree.MouseDoubleClick += unLatch; }
public void SetUp() { ProjectPersistor.DeleteHistoryFile(); Bootstrapper.Restart(); _objectLocator = ObjectFactory.GetInstance<IScreenObjectLocator>(); factory = ObjectFactory.GetInstance<IScreenFactory>(); DataMother.LoadMathProject(); }