13 lines
379 B
C#
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);
|
|
}
|
|
}
|