19 using NUnit.Framework;
27 private const string TestDbName =
"testdb";
28 private const string TestAdminUser =
"SA";
29 private const string TestAdminPass =
"123456";
34 systemContext = systemBuilder.BuildSystem();
36 var test = TestContext.CurrentContext.Test.Name;
38 if (test !=
"CreateNew" &&
39 test !=
"DatabaseNotExists") {
40 var dbConfig =
new Configuration.Configuration();
41 dbConfig.SetValue(
"database.name", TestDbName);
42 database = systemContext.
CreateDatabase(dbConfig, TestAdminUser, TestAdminPass);
58 var dbConfig =
new Configuration.Configuration();
59 dbConfig.SetValue(
"database.name", TestDbName);
60 database = systemContext.
CreateDatabase(dbConfig, TestAdminUser, TestAdminPass);
65 Assert.DoesNotThrow(() => database.Authenticate(TestAdminUser, TestAdminPass));
bool DatabaseExists(string databaseName)
IDatabase CreateDatabase(IConfiguration configuration, string adminUser, string adminPassword)
The representation of a single database in the system.