public void CreateDatabase()
        {
            var command = File.ReadAllText(m_scriptPathResolver.ResolvePathForScript(m_databaseCreateConfiguration.CreateDbScriptName));

            RunCommand(command, m_databaseCreateConfiguration.CreateDbTimeoutInSeconds);
            WaitForDbCreated();
        }
        public void DropDatabase(ILogger logger)
        {
            var command = File.ReadAllText(m_scriptPathResolver.ResolvePathForScript(m_databaseCreateConfiguration.DropDbScriptName));

            RunCommand(command);

            logger.LogInformation("\nVerifying database drop ");

            var i = 0;

            while (CheckDatabaseExists())
            {
                Thread.Sleep(m_databaseCreateConfiguration.CheckDropDbInMilliseconds);
                i++;

                logger.LogInformation(".");

                if (i > m_databaseCreateConfiguration.DropDbMaxRepeat)
                {
                    throw new DropDatabaseException("Unable to verify drop database");
                }
            }

            logger.LogInformation("\n\n*** Database dropped *** \n\n **************************** \n");
        }