using System; using Util.Sessions; namespace Util.Tests.Infrastructure { /// /// 测试用户会话 /// public class TestSession : ISession { public TestSession() { UserId = TestUserId.ToString(); } public bool IsAuthenticated => true; public string UserId { get; set; } /// /// 测试用户标识 /// public static Guid TestUserId = Guid.NewGuid(); /// /// 测试用户标识2 /// public static Guid TestUserId2 = Guid.NewGuid(); } }