2025-03-15 21:00:00 -05:00
|
|
|
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 21:00:00 -05:00
|
|
|
{
|
2025-03-15 22:02:26 -05:00
|
|
|
private readonly ApplicationFixture _fixture;
|
2025-03-15 21:00:00 -05:00
|
|
|
|
2025-03-15 22:02:26 -05:00
|
|
|
public AuthenticationTests(ApplicationFixture fixture)
|
2025-03-15 21:00:00 -05:00
|
|
|
{
|
2025-03-15 22:02:26 -05:00
|
|
|
_fixture = ApplicationFixture.Instance;
|
2025-03-15 21:00:00 -05:00
|
|
|
}
|
|
|
|
|
|
2025-03-15 22:02:26 -05:00
|
|
|
[Fact]
|
|
|
|
|
public async Task PingShouldWork()
|
|
|
|
|
{
|
|
|
|
|
var response = await _fixture.Client.PingAsync();
|
2025-03-15 21:00:00 -05:00
|
|
|
|
2025-03-15 22:02:26 -05:00
|
|
|
response.ShouldBeTrue();
|
2025-03-15 21:00:00 -05:00
|
|
|
}
|
|
|
|
|
}
|