Merge pull request #261 from binarymash/feature/ReduceBuildWarnings

Feature/reduce build warnings
This commit is contained in:
Philip Wood
2018-03-08 20:39:26 +00:00
committed by GitHub
23 changed files with 108 additions and 202 deletions

View File

@ -18,7 +18,6 @@ namespace Ocelot.AcceptanceTests
{
private IWebHost _builder;
private readonly Steps _steps;
private string _downstreamPath;
public HeaderTests()
{
@ -221,13 +220,15 @@ namespace Ocelot.AcceptanceTests
.Configure(app =>
{
app.UsePathBase(basePath);
app.Run(async context =>
app.Run(context =>
{
context.Response.OnStarting(() => {
context.Response.Headers.Add(headerKey, headerValue);
context.Response.StatusCode = statusCode;
return Task.CompletedTask;
});
return Task.CompletedTask;
});
})
.Build();
@ -235,11 +236,6 @@ namespace Ocelot.AcceptanceTests
_builder.Start();
}
internal void ThenTheDownstreamUrlPathShouldBe(string expectedDownstreamPath)
{
_downstreamPath.ShouldBe(expectedDownstreamPath);
}
public void Dispose()
{
_builder?.Dispose();