Exemple #1
0
 public void Apply_WhenReverting_GoesDown()
 {
     _step1 = new MigrationStep(_reference1, true);
     _step1.DatabaseMigration = _mocks.StrictMock <IDatabaseMigration>();
     using (_mocks.Record())
     {
         _step1.DatabaseMigration.Down();
     }
     _step1.Apply();
     _mocks.VerifyAll();
 }
 public void Apply_WhenReverting_GoesDown()
 {
     _step1 = new MigrationStep(_reference1, true);
       _step1.DatabaseMigration = _mocks.StrictMock<IDatabaseMigration>();
       using (_mocks.Record())
       {
     _step1.DatabaseMigration.Down();
       }
       _step1.Apply();
       _mocks.VerifyAll();
 }