예제 #1
0
        public void SetUp()
        {
            Config = DbConfig.Default;
            Config.StorageSystem(ConfigDefaultValues.FileStorageSystem);
            Config.LoggerType(typeof(ConsoleLogger));

            using (var controller = DbController.Create(Config)) {
                if (controller.DatabaseExists(testDbName))
                {
                    controller.DeleteDatabase(testDbName, testDbAdmin, testDbPass);
                }
            }
        }
예제 #2
0
        public void SetUp()
        {
            Config = DbConfig.Default;
            Config.StorageSystem(ConfigDefaultValues.FileStorageSystem);
            Config.LoggerType(typeof (ConsoleLogger));

            using (var controller = DbController.Create(Config)) {
                if (controller.DatabaseExists(testDbName))
                    controller.DeleteDatabase(testDbName, testDbAdmin, testDbPass);
            }
        }