Inheritance: Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException
 private static void ApplyMigration(DbMigrator migrator, string migrationId)
 {
     try
     {
         migrator.Update(migrationId);
     }
     catch (Exception ex)
     {
         var exceptionToThrow = new MigrationAssertFailedExecption(
             migrationId,
             $"Failed to migrate to {migrationId}; see inner exception for details.",
             ex);
         throw exceptionToThrow;
     }
 }
Ejemplo n.º 2
0
 private static void ApplyMigration(DbMigrator migrator, string migrationId)
 {
     try
     {
         migrator.Update(migrationId);
     }
     catch (Exception ex)
     {
         var exceptionToThrow = new MigrationAssertFailedExecption(
             migrationId,
             $"Failed to migrate to {migrationId}; see inner exception for details.",
             ex);
         throw exceptionToThrow;
     }
 }