using ClaudeDo.Worker.Online;

namespace ClaudeDo.Worker.Tests.Online;

public sealed class StaticTokenAuthProviderTests
{
    [Fact]
    public async Task WithToken_Returns_Token()
    {
        var provider = new StaticTokenAuthProvider("my-token");
        var result = await provider.GetAccessTokenAsync();
        Assert.Equal("my-token", result);
    }

    [Fact]
    public async Task WithNull_Returns_Null()
    {
        var provider = new StaticTokenAuthProvider(null);
        var result = await provider.GetAccessTokenAsync();
        Assert.Null(result);
    }

    [Fact]
    public async Task Default_Returns_Null()
    {
        var provider = new StaticTokenAuthProvider();
        var result = await provider.GetAccessTokenAsync();
        Assert.Null(result);
    }
}
