public NetServerTests() { _socketMock = new NetSocketMock(); _socketMock.ConfigureAcceptResult(true); _serverConfiguration = new NetServerConfiguration("127.0.0.1", 4444); _server = new NetServerMock <CustomClient>(_serverConfiguration); _server.SetupGet(x => x.Socket).Returns(_socketMock); }
public NetAcceptorTests() { _serverSocket = new NetSocketMock(); _acceptedSocket = new NetSocketMock(); _serverConfiguration = new NetServerConfiguration("127.0.0.1", 4444); _server = new NetServerMock<CustomClient>(_serverConfiguration); _serverAcceptor = new NetServerAcceptor(_server.Object); _server.SetupGet(x => x.Socket).Returns(_serverSocket); }