blob: 43f0257b6dce3281e847b561bcbeb95cad646702 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
using System.Net;
using System.Threading.Tasks;
using Impostor.Api.Net;
using Impostor.Api.Net.Messages;
namespace Impostor.Tools.ServerReplay.Mocks
{
public class MockHazelConnection : IHazelConnection
{
public MockHazelConnection(IPEndPoint endPoint)
{
EndPoint = endPoint;
IsConnected = true;
Client = null;
}
public IPEndPoint EndPoint { get; }
public bool IsConnected { get; }
public IClient? Client { get; set; }
public ValueTask SendAsync(IMessageWriter writer)
{
return ValueTask.CompletedTask;
}
public ValueTask DisconnectAsync(string reason)
{
return ValueTask.CompletedTask;
}
}
}
|