LANCommander/LANCommander.Server.Tests/Client/AuthenticationTests.cs

23 lines
535 B
C#
Raw Permalink Normal View History

using Microsoft.AspNetCore.Mvc.Testing;
using Shouldly;
namespace LANCommander.Server.Tests.Client;
2025-03-15 22:02:26 -05:00
[Collection("Application")]
public class AuthenticationTests : IClassFixture<ApplicationFixture>
{
2025-03-15 22:02:26 -05:00
private readonly ApplicationFixture _fixture;
2025-03-15 22:02:26 -05:00
public AuthenticationTests(ApplicationFixture fixture)
{
2025-03-15 22:02:26 -05:00
_fixture = ApplicationFixture.Instance;
}
2025-03-15 22:02:26 -05:00
[Fact]
public async Task PingShouldWork()
{
var response = await _fixture.Client.PingAsync();
2025-03-15 22:02:26 -05:00
response.ShouldBeTrue();
}
}