Watch
1
0
Fork
You've already forked test-web
0

Initial commit
All checks were successful
Build / build (push) Successful in 52s

This commit is contained in:
Chris 2026-05-30 12:26:50 +01:00 • committed by Chris Dill
commit 0e79a8eb5e
43 changed files with 1282 additions and 0 deletions

View file

@ -0,0 +1,31 @@
using System.Collections.Generic;
using System.Net;
using System.Net.Http.Headers;
using System.Net.Http.Json;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.Testing;
using TestWeb.Infra;
using TestWeb.Core.WeatherForecasts;
namespace TestWeb.Tests.Core.WeatherForecasts;
public class WeatherForecastModuleTests : IClassFixture<TestFixture>
{
private readonly HttpClient client;
public WeatherForecastModuleTests(TestFixture fixture)
{
client = fixture.Client;
}
[Fact]
public async Task Base()
{
// Get
var getCall = await client.GetAsync(
WeatherForecastModule.Prefix,
TestContext.Current.CancellationToken
);
Assert.Equal(HttpStatusCode.OK, getCall.StatusCode);
}
}