This commit is contained in:
commit
1199bef0c8
45 changed files with 1200 additions and 0 deletions
21
tests/WeatherForecastsModuleTests.cs
Normal file
21
tests/WeatherForecastsModuleTests.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue