예제 #1
0
 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);
 }
예제 #2
0
 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;
 }
예제 #3
0
        public ExplorerView(TreeView testTree, TreeView fixtureTree, IScreenConductor conductor,
                            IScreenObjectLocator screenObjects)
        {
            _testTree      = testTree;
            _fixtureTree   = fixtureTree;
            _conductor     = conductor;
            _screenObjects = screenObjects;

            _testTree.MouseDoubleClick += unLatch;
        }
예제 #4
0
        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();
        }