using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc.Testing; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ewide.Test { public class CustomWebApplicationFactory : WebApplicationFactory where TStartup : class { protected override void ConfigureWebHost(IWebHostBuilder builder) { builder.UseEnvironment("Testing"); } } }