private static void ExecuteWithMySql(Action<IMigrationProcessor> test, IntegrationTestOptions.DatabaseServerOptions serverOptions)
        {
            if (!serverOptions.IsEnabled)
                return;

            var connection = new MySqlConnection(serverOptions.ConnectionString);
            var processor = new MySqlProcessor(connection, new MySqlGenerator(), new TextWriterAnnouncer(System.Console.Out), new ProcessorOptions());
            test(processor);
        }
        protected static void ExecuteWithMySql(Action<IMigrationProcessor> test, IntegrationTestOptions.DatabaseServerOptions serverOptions)
        {
            if (!serverOptions.IsEnabled)
                return;

            var announcer = new TextWriterAnnouncer(System.Console.Out);
            announcer.Heading("Testing Migration against MySQL Server");

            using (var connection = new MySqlConnection(serverOptions.ConnectionString))
            {
                var processor = new MySqlProcessor(connection, new MySqlGenerator(), announcer, new ProcessorOptions(), new MySqlDbFactory());
                test(processor);
            }
        }
 public void SetUp()
 {
     Connection = new MySqlConnection(IntegrationTestOptions.MySql.ConnectionString);
     Processor = new MySqlProcessor(Connection, new MySqlGenerator(), new TextWriterAnnouncer(System.Console.Out), new ProcessorOptions(), new MySqlDbFactory());
     Connection.Open();
 }
 private static MySqlProcessor SetupMySqlProcessorWithPreviewOnly(StringWriter output, MySqlConnection connection)
 {
     var processor = new MySqlProcessor(
         connection,
         new MySqlGenerator(),
         new TextWriterAnnouncer(output),
         new ProcessorOptions {PreviewOnly = true},
         new MySqlDbFactory());
     return processor;
 }
Esempio n. 5
0
 private void ExecuteWithMySql(Action<IMigrationProcessor> test)
 {
     var connection = new MySqlConnection(mySqlConnectionString);
     var processor = new MySqlProcessor(connection, new MySqlGenerator());
     test(processor);
 }