public void CreateNewDatabase() { var db = system.CreateDatabase("testdb", new Configuration(), new IDatabaseFeature[0]); Assert.NotNull(db); Assert.IsType <Database>(db); Assert.NotNull(db.OpenTransactions); Assert.Empty(db.OpenTransactions); db.Dispose(); }
public SessionStatementExecuteTests() { var container = new ServiceContainer(); container.Register <ITableSystem, TableSystemV2>(KnownScopes.Database); container.Register <IStoreSystem, InMemoryStoreSystem>(); system = new DatabaseSystem(container, new Configuration()); system.Start(); database = system.CreateDatabase("test", new Configuration(), null); session = database.CreateSystemSession("app"); }