21 lines
505 B
C#
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);
|
|
}
|
|
}
|