예제 #1
0
        public void MigrationInfoShouldExtractTransactionBehavior()
        {
            var migration     = new DefaultConventionMigrationFake();
            var migrationinfo = DefaultMigrationConventions.GetMigrationInfoFor(migration);

            migrationinfo.TransactionBehavior.ShouldBe(TransactionBehavior.None);
        }
예제 #2
0
        public void MigrationInfoShouldExtractTraits()
        {
            var migration     = new DefaultConventionMigrationFake();
            var migrationinfo = DefaultMigrationConventions.GetMigrationInfoFor(migration);

            migrationinfo.Trait("key").ShouldBe("test");
        }
예제 #3
0
        public void MigrationInfoShouldRetainMigration()
        {
            var migration     = new DefaultConventionMigrationFake();
            var migrationinfo = DefaultMigrationConventions.GetMigrationInfoFor(migration);

            migrationinfo.Migration.ShouldBeSameAs(migration);
        }
예제 #4
0
        public void MigrationInfoShouldExtractVersion()
        {
            var migration     = new DefaultConventionMigrationFake();
            var migrationinfo = DefaultMigrationConventions.GetMigrationInfoFor(migration);

            migrationinfo.Version.ShouldBe(123);
        }
        public void MigrationInfoShouldRetainMigration()
        {
            var migration     = new DefaultConventionMigrationFake();
            var migrationinfo = _default.GetMigrationInfoForMigration(migration);

            migrationinfo.Migration.GetType().ShouldBeSameAs(migration.GetType());
        }
 public void MigrationInfoShouldExtractTraits()
 {
     var migration = new DefaultConventionMigrationFake();
     var migrationinfo = DefaultMigrationConventions.GetMigrationInfoFor(migration);
     migrationinfo.Trait("key").ShouldBe("test");
 }
 public void MigrationInfoShouldRetainMigration()
 {
     var migration = new DefaultConventionMigrationFake();
     var migrationinfo = DefaultMigrationConventions.GetMigrationInfoFor(migration);
     migrationinfo.Migration.ShouldBeSameAs(migration);
 }
 public void MigrationInfoShouldExtractVersion()
 {
     var migration = new DefaultConventionMigrationFake();
     var migrationinfo = DefaultMigrationConventions.GetMigrationInfoFor(migration);
     migrationinfo.Version.ShouldBe(123);
 }
 public void MigrationInfoShouldExtractTransactionBehavior()
 {
     var migration = new DefaultConventionMigrationFake();
     var migrationinfo = DefaultMigrationConventions.GetMigrationInfoFor(migration);
     migrationinfo.TransactionBehavior.ShouldBe(TransactionBehavior.None);
 }