Files
AIC-Project/Server/Gateway.Tests/Support/FakeConnection.cs
T
2026-07-10 10:24:29 +08:00

13 lines
379 B
C#

using System.Collections.Generic;
namespace XWorld.Server.Gateway.Tests
{
internal sealed class FakeConnection : IClientConnection
{
public int PlayerId { get; }
public List<byte[]> Sent { get; } = new List<byte[]>();
public FakeConnection(int playerId) { PlayerId = playerId; }
public void Send(byte[] frame) => Sent.Add(frame);
}
}