public void RemovePresenter()
        {
            //if (_presenter != null)
            //    _presenter.Dispose();

            _presenter = null;
        }
Example #2
0
 public void CreatePresenter()
 {
     _settings.Gui.TestTree.AlternateImageSet = "MyImageSet";
     _settings.Gui.TestTree.ShowCheckBoxes    = true;
     _presenter = new TreeViewPresenter(_view, _model);
     _model.IsTestRunning.Returns(false);
 }
Example #3
0
        public void CreatePresenter()
        {
            _presenter = new TreeViewPresenter(_view, _model);
            _model.IsTestRunning.Returns(false);

            // Make it look like the view loaded
            //_view.Load += Raise.Event<System.EventHandler>(null, new System.EventArgs());
        }
Example #4
0
        public void CreatePresenter()
        {
            _view  = Substitute.For <ITestTreeView>();
            _model = Substitute.For <ITestModel>();

            _presenter = new TreeViewPresenter(_view, _model);

            // Make it look like the view loaded
            _view.Load += Raise.Event <System.EventHandler>(null, new System.EventArgs());
        }
        public void CreatePresenter()
        {
            _view  = Substitute.For <ITestTreeView>();
            _model = Substitute.For <ITestModel>();
            _model.Settings.Returns(new TestCentric.TestUtilities.Fakes.UserSettings());

            _presenter = new TreeViewPresenter(_view, _model);

            // Make it look like the view loaded
            _view.Load += Raise.Event <System.EventHandler>(_view, new System.EventArgs());
        }
Example #6
0
 public void RemovePresenter()
 {
     _presenter = null;
 }