예제 #1
0
        public DatabaseTests()
        {
            var container = new ServiceContainer();

            container.Register <ITableSystem, TableSystemV2>(KnownScopes.Database);
            container.Register <IDbObjectManager, TableManager>(KnownScopes.Transaction, DbObjectType.Table);
            container.Register <IStoreSystem, InMemoryStoreSystem>();

            system = new DatabaseSystem(container, new Configuration());
            system.Start();
        }
        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");
        }