React to EF change

This commit is contained in:
ajcvickers 2015-02-26 15:31:49 -08:00
parent 690069c53e
commit a65ebbf1f1
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity.Tests
Assert.True(db.Database.AsRelational().Exists());
var historyRepository = ((IAccessor<IServiceProvider>)db).Service.GetRequiredService<DbContextService<IHistoryRepository>>().Service;
var historyRepository = ((IAccessor<IServiceProvider>)db).Service.GetRequiredService<IHistoryRepository>();
var appliedMigrations = historyRepository.GetAppliedMigrations();
Assert.Equal(2, appliedMigrations.Count);
Assert.Equal("111111111111111_MigrationOne", appliedMigrations.ElementAt(0).MigrationId);