|
|
@ -1,6 +1,5 @@ |
|
|
using Microsoft.AspNetCore.Hosting; |
|
|
using Microsoft.AspNetCore.Hosting; |
|
|
using Microsoft.AspNetCore.Identity; |
|
|
using Microsoft.AspNetCore.Identity; |
|
|
using Microsoft.AspNetCore.Identity.UI; |
|
|
|
|
|
using Microsoft.AspNetCore.Mvc.Testing; |
|
|
using Microsoft.AspNetCore.Mvc.Testing; |
|
|
using Microsoft.EntityFrameworkCore; |
|
|
using Microsoft.EntityFrameworkCore; |
|
|
using Microsoft.eShopWeb.Infrastructure.Data; |
|
|
using Microsoft.eShopWeb.Infrastructure.Data; |
|
|
@ -17,6 +16,8 @@ namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers |
|
|
{ |
|
|
{ |
|
|
protected override void ConfigureWebHost(IWebHostBuilder builder) |
|
|
protected override void ConfigureWebHost(IWebHostBuilder builder) |
|
|
{ |
|
|
{ |
|
|
|
|
|
builder.UseEnvironment("Testing"); |
|
|
|
|
|
|
|
|
builder.ConfigureServices(services => |
|
|
builder.ConfigureServices(services => |
|
|
{ |
|
|
{ |
|
|
services.AddEntityFrameworkInMemoryDatabase(); |
|
|
services.AddEntityFrameworkInMemoryDatabase(); |
|
|
|