diff --git a/test/E2ETests/compiler/shared/Mocks/StartupOpenIdConnectTesting.cs b/test/E2ETests/compiler/shared/Mocks/StartupOpenIdConnectTesting.cs index 47c2941d4f..e242064acf 100644 --- a/test/E2ETests/compiler/shared/Mocks/StartupOpenIdConnectTesting.cs +++ b/test/E2ETests/compiler/shared/Mocks/StartupOpenIdConnectTesting.cs @@ -5,6 +5,7 @@ using Microsoft.AspNet.Builder; using Microsoft.AspNet.Diagnostics; using Microsoft.AspNet.Diagnostics.Entity; using Microsoft.AspNet.Identity; +using Microsoft.Data.Entity; using Microsoft.Framework.Caching.Memory; using Microsoft.Framework.ConfigurationModel; using Microsoft.Framework.DependencyInjection; @@ -44,7 +45,8 @@ namespace MusicStore { services.AddEntityFramework() .AddSqlServer() - .AddDbContext(); + .AddDbContext(options => + options.UseSqlServer(Configuration.Get("Data:DefaultConnection:ConnectionString"))); } // Add Identity services to the services container diff --git a/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs b/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs index b1078b6dac..a7832a76c6 100644 --- a/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs +++ b/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs @@ -9,6 +9,7 @@ using Microsoft.AspNet.Builder; using Microsoft.AspNet.Diagnostics; using Microsoft.AspNet.Diagnostics.Entity; using Microsoft.AspNet.Identity; +using Microsoft.Data.Entity; using Microsoft.Framework.Caching.Memory; using Microsoft.Framework.ConfigurationModel; using Microsoft.Framework.DependencyInjection; @@ -61,7 +62,8 @@ namespace MusicStore { services.AddEntityFramework() .AddSqlServer() - .AddDbContext(); + .AddDbContext(options => + options.UseSqlServer(Configuration.Get("Data:DefaultConnection:ConnectionString"))); } // Add Identity services to the services container