mirror of
https://github.com/dotnetcore/Util.git
synced 2026-10-28 02:46:37 +08:00
27 lines
633 B
C#
27 lines
633 B
C#
using System;
|
|
using Util.Sessions;
|
|
|
|
namespace Util.Tests.Infrastructure {
|
|
/// <summary>
|
|
/// 测试用户会话
|
|
/// </summary>
|
|
public class TestSession : ISession {
|
|
public TestSession() {
|
|
UserId = TestUserId.ToString();
|
|
}
|
|
|
|
public bool IsAuthenticated => true;
|
|
public string UserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 测试用户标识
|
|
/// </summary>
|
|
public static Guid TestUserId = Guid.NewGuid();
|
|
|
|
/// <summary>
|
|
/// 测试用户标识2
|
|
/// </summary>
|
|
public static Guid TestUserId2 = Guid.NewGuid();
|
|
}
|
|
}
|