unit tests pass...

This commit is contained in:
Tom Pallister
2017-09-25 13:13:07 +01:00
parent 1c98dcbca3
commit 6419919e74
12 changed files with 38 additions and 28 deletions

View File

@ -134,6 +134,7 @@ namespace Ocelot.AcceptanceTests
.AddJsonFile("configuration.json")
.AddEnvironmentVariables();
IServiceCollection serviceCollection = new ServiceCollection();
var configuration = builder.Build();
_webHostBuilder = new WebHostBuilder();
@ -157,15 +158,16 @@ namespace Ocelot.AcceptanceTests
};
s.AddOcelot(configuration, settings);
serviceCollection = s;
})
.ConfigureLogging(l =>
{
l.AddConsole(configuration.GetSection("Logging"));
l.AddConsole();
l.AddDebug();
})
.Configure(a =>
{
a.UseOcelot(ocelotMiddlewareConfig).Wait();
a.UseOcelot(ocelotMiddlewareConfig, serviceCollection).Wait();
}));
_ocelotClient = _ocelotServer.CreateClient();