public void CreateNew() { var dbConfig = new Configuration.Configuration(); dbConfig.SetValue("database.name", TestDbName); database = systemContext.CreateDatabase(dbConfig, TestAdminUser, TestAdminPass); }
private void OnSetUp(string testName) { var systemBuilder = new SystemBuilder(); systemContext = systemBuilder.BuildSystem(); var dbConfig = CreateDatabaseConfig(); if (testName != "CreateNewDatabase") { database = systemContext.CreateDatabase(dbConfig, TestAdminUser, TestAdminPass); } }
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); } }
protected virtual IDatabase CreateDatabase(ISystem system, IConfiguration configuration) { return(system.CreateDatabase(configuration, AdminUserName, AdminPassword)); }
public void CreateNewDatabase() { var dbConfig = CreateDatabaseConfig(); database = systemContext.CreateDatabase(dbConfig, TestAdminUser, TestAdminPass); }
public static IDatabase CreateDatabase(this ISystem system, IConfiguration configuration, string adminName, string adminPassword) { return(system.CreateDatabase(configuration, adminName, KnownUserIdentifications.ClearText, adminPassword)); }
protected virtual IDatabase CreateDatabase(ISystem system, IConfiguration configuration) { return system.CreateDatabase(configuration, AdminUserName, AdminPassword); }