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

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

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

            migrationinfo.Migration.ShouldBeSameAs(migration);
        }
Example #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);
 }