diff --git a/Directory.Packages.props b/Directory.Packages.props index 7a79660..a1295a8 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -9,6 +9,7 @@ + diff --git a/src/Tests/System/SystemTests.cs b/src/Tests/System/SystemTests.cs index bf03d52..450cebc 100644 --- a/src/Tests/System/SystemTests.cs +++ b/src/Tests/System/SystemTests.cs @@ -94,13 +94,13 @@ private static IContainer BuildAppContainer(INetwork network) => private static async Task AppShouldRunAsync(HttpResponseMessage appResponse, CancellationToken cancellationToken) { - appResponse.StatusCode.Should().Be(HttpStatusCode.OK); + appResponse.Should().Be200Ok(); (await appResponse.Content.ReadAsStringAsync(cancellationToken)).Should().Contain("This is your life"); } private static async Task HealthCheckShouldBeHealthyAsync(HttpResponseMessage healthCheckResponse, CancellationToken cancellationToken) { - healthCheckResponse.StatusCode.Should().Be(HttpStatusCode.OK); + healthCheckResponse.Should().Be200Ok(); (await healthCheckResponse.Content.ReadAsStringAsync(cancellationToken)).Should().Be("Healthy"); } diff --git a/src/Tests/Tests.csproj b/src/Tests/Tests.csproj index b857cbf..7d5ef1e 100644 --- a/src/Tests/Tests.csproj +++ b/src/Tests/Tests.csproj @@ -11,6 +11,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive +