Build test host using given app config file
This commit is contained in:
parent
ce8b7bcdb3
commit
4bb43877c7
1 changed files with 1 additions and 2 deletions
|
|
@ -13,7 +13,6 @@ namespace isnd.host.tests
|
|||
{
|
||||
public class UnitTestWebHost
|
||||
{
|
||||
const string testingUrl = "http://localhost:5000";
|
||||
[Fact]
|
||||
|
||||
|
||||
|
|
@ -21,7 +20,7 @@ namespace isnd.host.tests
|
|||
{
|
||||
string envVar = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
|
||||
|
||||
IWebHost webhost = BuildWebHost(new string[] { "--urls", testingUrl });
|
||||
IWebHost webhost = BuildWebHost(new string[0]);
|
||||
|
||||
using (var serviceScope = webhost.Services.CreateScope())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue