public void NoInitiallySelectedTable()
        {
            var view       = new MockView <SelectEditorController>();
            var controller = new SelectEditorController(view, "unrecognised");

            Assert.IsNull(controller.SelectedEntityListType, "SelectedEntityListType");
            Assert.IsEmpty(controller.SelectedTableName, "SelectedTableName");
        }
 public void Setup()
 {
     DatabaseConfig = new MockDatabaseConfig {
         TestConfigFilePath     = "Test Config File",
         TestDatabaseFolderPath = "Test Database Folder"
     };
     View       = new MockView <OptionsController>();
     Controller = new TestOptionsController(View, DatabaseConfig);
 }
 public void Setup()
 {
     QueryHelper = new QueryHelper();
     Data        = new TestData(QueryHelper);
     Session     = new TestSession();
     EditorView  = new MockEditorView(new MockMainGrid(), new MockParentGrid());
     CreateControllers(typeof(EventList));
     CellView = new MockView <ComboBoxCellController>();
     Session.BeginUpdate();
     try {
         Data.AddActsPersisted(3, Session);
         Data.AddEventTypesPersisted(1, Session);
         Data.AddLocationsPersisted(2, Session);
         Data.AddNewslettersPersisted(3, Session);
         Data.AddSeriesPersisted(1, Session);
         Data.AddEventsPersisted(5, Session);
     } finally {
         Session.Commit();
     }
     EditorController.Populate(); // Populate grid
 }
 public override void Setup()
 {
     base.Setup();
     View = new MockView <SizeableFormOptionsController>();
 }