public override void Setup() { base.Setup(); MainGrid = new MockMainGrid(); ParentGrid = new MockParentGrid(); View = new MockEditorView(MainGrid, ParentGrid); }
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 }