Skip to content

Commit

Permalink
Added a ConfigureWebHostBuilder method to BaseHttpTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl-Hugo committed Apr 20, 2018
1 parent 6b39b52 commit 686168b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/ForEvolve.XUnit.Tests/HttpTests/BaseHttpTestTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ namespace ForEvolve.XUnit.HttpTests
{
public class BaseHttpTestTest : BaseHttpTest<TestServerStartup>
{
private bool _configureWebHostBuilderHasBeenCalled = false;

protected override IWebHostBuilder ConfigureWebHostBuilder(IWebHostBuilder webHostBuilder)
{
_configureWebHostBuilderHasBeenCalled = true;
return base.ConfigureWebHostBuilder(webHostBuilder);
}

[Fact]
public void Should_call_ConfigureWebHostBuilder()
{
Assert.True(_configureWebHostBuilderHasBeenCalled);
}

[Fact]
public async Task Should_setup_the_client_and_the_server()
{
Expand Down

0 comments on commit 686168b

Please sign in to comment.