Watch
1
0
Fork
You've already forked test-web
0
test-web/tests/WeatherForecastsModuleTests.cs
Chris Dill 1199bef0c8
All checks were successful
Build / build (push) Successful in 43s
Initial commit
2026-06-06 10:47:36 +01:00

21 lines
505 B
C#

using System.Net;
namespace TestWeb.Tests;
using Core.WeatherForecasts;
public class WeatherForecastsModuleTests(TestFixture fixture) : IClassFixture<TestFixture>
{
private readonly HttpClient client = fixture.Client;
[Fact]
public async Task Base()
{
// Get
var getCall = await client.GetAsync(
WeatherForecastsModule.Prefix,
TestContext.Current.CancellationToken
);
Assert.Equal(HttpStatusCode.OK, getCall.StatusCode);
}
}