コード例 #1
0
ファイル: DatabaseTests.cs プロジェクト: meikeric/deveeldb
        public void CreateNew()
        {
            var dbConfig = new Configuration.Configuration();

            dbConfig.SetValue("database.name", TestDbName);
            database = systemContext.CreateDatabase(dbConfig, TestAdminUser, TestAdminPass);
        }
コード例 #2
0
        private void OnSetUp(string testName)
        {
            var systemBuilder = new SystemBuilder();
            systemContext = systemBuilder.BuildSystem();

            var dbConfig = CreateDatabaseConfig();

            if (testName != "CreateNewDatabase") {
                database = systemContext.CreateDatabase(dbConfig, TestAdminUser, TestAdminPass);
            }
        }
コード例 #3
0
        private void OnSetUp(string testName)
        {
            var systemBuilder = new SystemBuilder();

            systemContext = systemBuilder.BuildSystem();

            var dbConfig = CreateDatabaseConfig();

            if (testName != "CreateNewDatabase")
            {
                database = systemContext.CreateDatabase(dbConfig, TestAdminUser, TestAdminPass);
            }
        }
コード例 #4
0
        public void TestSetup()
        {
            var systemBuilder = new SystemBuilder();
            systemContext = systemBuilder.BuildSystem();

            var test = TestContext.CurrentContext.Test.Name;

            if (test != "CreateNew" &&
                test != "DatabaseNotExists") {
                var dbConfig = new Configuration.Configuration();
                dbConfig.SetValue("database.name", TestDbName);
                database = systemContext.CreateDatabase(dbConfig, TestAdminUser, TestAdminPass);
            }
        }
コード例 #5
0
ファイル: DatabaseTests.cs プロジェクト: meikeric/deveeldb
        public void TestSetup()
        {
            var systemBuilder = new SystemBuilder();

            systemContext = systemBuilder.BuildSystem();

            var test = TestContext.CurrentContext.Test.Name;

            if (test != "CreateNew" &&
                test != "DatabaseNotExists")
            {
                var dbConfig = new Configuration.Configuration();
                dbConfig.SetValue("database.name", TestDbName);
                database = systemContext.CreateDatabase(dbConfig, TestAdminUser, TestAdminPass);
            }
        }
コード例 #6
0
 protected virtual IDatabase CreateDatabase(ISystem system, IConfiguration configuration)
 {
     return(system.CreateDatabase(configuration, AdminUserName, AdminPassword));
 }
コード例 #7
0
        public void CreateNewDatabase()
        {
            var dbConfig = CreateDatabaseConfig();

            database = systemContext.CreateDatabase(dbConfig, TestAdminUser, TestAdminPass);
        }
コード例 #8
0
 public static IDatabase CreateDatabase(this ISystem system, IConfiguration configuration, string adminName,
                                        string adminPassword)
 {
     return(system.CreateDatabase(configuration, adminName, KnownUserIdentifications.ClearText, adminPassword));
 }
コード例 #9
0
 protected virtual IDatabase CreateDatabase(ISystem system, IConfiguration configuration)
 {
     return system.CreateDatabase(configuration, AdminUserName, AdminPassword);
 }