Beispiel #1
0
        public void Should_deal_with_multiple_migration_groups__GetCurrentVersion()
        {
            _versionRepository.EnsureSchemaVersionTable(AllMigrations);
            _versionRepository.InsertVersion(M1);
            _versionRepository.InsertVersion(M2);
            _versionRepository.InsertVersion(M3);
            Assert.AreEqual(3, _versionRepository.GetCurrentVersion());

            _versionRepository.MigrationGroup = "group2";
            _versionRepository.InsertVersion(M1);
            Assert.AreEqual(1, _versionRepository.GetCurrentVersion());
        }