diff --git a/test/Microsoft.AspNet.Diagnostics.Entity.FunctionalTests/DatabaseErrorPageMiddlewareTest.cs b/test/Microsoft.AspNet.Diagnostics.Entity.FunctionalTests/DatabaseErrorPageMiddlewareTest.cs index a0be9eabbe..feae8031f4 100644 --- a/test/Microsoft.AspNet.Diagnostics.Entity.FunctionalTests/DatabaseErrorPageMiddlewareTest.cs +++ b/test/Microsoft.AspNet.Diagnostics.Entity.FunctionalTests/DatabaseErrorPageMiddlewareTest.cs @@ -15,6 +15,7 @@ using Microsoft.AspNet.TestHost; using Microsoft.Data.Entity; using Microsoft.Data.Entity.Infrastructure; using Microsoft.Data.Entity.Internal; +using Microsoft.Data.Entity.Relational; using Microsoft.Data.Entity.Relational.Migrations; using Microsoft.Data.Entity.Relational.Migrations.Infrastructure; using Microsoft.Data.Entity.Utilities; @@ -161,8 +162,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity.Tests { using (var db = context.ApplicationServices.GetService()) { - var migrator = ((IAccessor)db.Database).Service; - migrator.ApplyMigrations(); + db.Database.ApplyMigrations(); db.Blogs.Add(new Blog()); db.SaveChanges();