using Flyshot.ControllerClientCompat;
using Microsoft.Extensions.DependencyInjection;

namespace Flyshot.Server.IntegrationTests;

/// <summary>
/// 锁定宿主当前应注册 HTTP-only 的 ControllerClient 兼容服务，而不是旧 TCP 网关入口。
/// </summary>
public sealed class ControllerClientCompatRegistrationTests(FlyshotServerFactory factory) : IClassFixture<FlyshotServerFactory>
{
    /// <summary>
    /// 验证宿主能从 DI 中解析新的兼容服务。
    /// </summary>
    [Fact]
    public void Host_Registers_ControllerClientCompat_Service()
    {
        var service = factory.Services.GetService<IControllerClientCompatService>();

        Assert.NotNull(service);
    }
}
