using BuildFlow.Shared.Domain.Common; namespace BuildFlow.Rag.Tests.Stub; /// /// 测试用当前用户上下文。UserId 必须非空且非 "system",否则 GetRequiredUserId 抛 UnauthorizedException。 /// public sealed class TestCurrentUserContext : ICurrentUserContext { public string UserId { get; init; } = "11111111-1111-1111-1111-111111111111"; public string IPAddress { get; init; } = "127.0.0.1"; }