Example #1
0
        public void ItWorks()
        {
            Database.Migrate(TestConfig.ConnectionString, Migrations.FromThisAssembly().Where(m => m.SequenceNumber < 2));

            var tableNames = GetTableNames();

            Assert.That(tableNames, Is.EqualTo(new[] { "MyFirstTable" }));
        }
Example #2
0
        public void ItWorks()
        {
            Database.Migrate(TestConfig.ConnectionString, Migrations.FromThisAssembly(), new Options(logAction: text => Console.WriteLine("LOG: {0}", text)));

            var tableNames = GetTableNames();

            Assert.That(tableNames, Is.EqualTo(new[] { "MyFirstTable", "MySecondTable" }));
        }