public override IMigrationProcessor Create(string connectionString, IAnnouncer announcer, IMigrationProcessorOptions options)
        {
            var factory    = new SqliteDbFactory();
            var connection = factory.CreateConnection(connectionString);

            return(new SqliteProcessor(connection, new SqliteGenerator(), announcer, options, factory));
        }
        public void SetUp()
        {
            // This connection used in the tests
            var factory = new SqliteDbFactory();
            _connection = factory.CreateConnection("Data Source=:memory:;Version=3;New=True;");
            _connection.Open();
            _command = _connection.CreateCommand();

            // SUT
            _processor = new SqliteProcessor(_connection, new SqliteGenerator(), new TextWriterAnnouncer(System.Console.Out), new ProcessorOptions(), factory);

            column = new Mock<ColumnDefinition>();
            tableName = "NewTable";
            tableNameThanMustBeEscaped = "123NewTable";
            columnName = "ColumnName";
            column.SetupGet(c => c.Name).Returns(columnName);
            column.SetupGet(c => c.IsNullable).Returns(true);
            column.SetupGet(c => c.Type).Returns(DbType.Int32);
        }
        protected static void ExecuteWithSqlite(Action<IMigrationProcessor> test, IntegrationTestOptions.DatabaseServerOptions serverOptions)
        {
            if (!serverOptions.IsEnabled)
                return;

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

            var factory = new SqliteDbFactory();
            using (var connection = factory.CreateConnection(serverOptions.ConnectionString))
            {
                var processor = new SqliteProcessor(connection, new SqliteGenerator(), announcer, new ProcessorOptions(), factory);
                test(processor);
            }
        }
 public override IMigrationProcessor Create(string connectionString, IAnnouncer announcer, IMigrationProcessorOptions options)
 {
     var factory = new SqliteDbFactory();
     var connection = factory.CreateConnection(connectionString);
     return new SqliteProcessor(connection, new SqliteGenerator(), announcer, options, factory);
 }