public void Assert(Action <T, SqlConnection> fn) { using (var harness = new DbMigratorHarness <SchoolDbConfiguration>()) { _sourceMigration.Apply(harness); T arrangement = harness.UseConnection(_fn); harness.TargetMigration(_migrationName); harness.UseConnection(conn => fn(arrangement, conn)); } }
public void Apply <T>(DbMigratorHarness <T> harness) where T : DbMigrationsConfiguration, new() { harness.TargetMigration(_migrationName); }