using LiteCharms.Features.Api; using LiteCharms.Features.Tests.Common; namespace LiteCharms.Features.Tests; public sealed class LiteCharmsApiFeatureTests(Fixture fixture) : IClassFixture { private readonly TokenService tokenService = fixture.Services.GetRequiredService(); [IntegrationFact] public async Task TokenService_GenerateTokenAsync_ShouldReturn_TokenInResult() { var result = await tokenService.GenerateAsync(fixture.CancellationToken); Assert.True(result.IsSuccess); Assert.NotNull(result.Value); Assert.NotEmpty(result.Value.AccessToken!); } }