Init
This commit is contained in:
20
Prefab.Tests/Integration/Smoke/RootShould.cs
Normal file
20
Prefab.Tests/Integration/Smoke/RootShould.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user