20 lines
578 B
C#
20 lines
578 B
C#
using Prefab.Tests.Infrastructure;
|
|
using Shouldly;
|
|
|
|
namespace Prefab.Tests.Integration.Smoke;
|
|
|
|
[Collection("Prefab.Debug")]
|
|
[Trait(TraitName.Category, TraitCategory.Integration)]
|
|
public sealed class RootShould(PrefabCompositeFixture_Debug fixture)
|
|
{
|
|
[Fact]
|
|
public async Task RespondWithSuccess()
|
|
{
|
|
var cancellationToken = TestContext.Current.CancellationToken;
|
|
var client = fixture.CreateHttpClientForWeb();
|
|
|
|
using var response = await client.GetAsync("/", cancellationToken);
|
|
|
|
response.StatusCode.ShouldBe(HttpStatusCode.OK);
|
|
}
|
|
} |