Exemple #1
0
 internal TestClient(TestServer server)
 {
     _server = server;
     _tcpClient = new TcpClient();
 }
Exemple #2
0
        internal TestServer StartServer(ServerControllerBase serverController, int maxParallelClientCount = 1000)
        {
            if (_server != null)
                throw new NotSupportedException("Cannot start server twice");

            _server = new TestServer(maxParallelClientCount, serverController);

            return _server;
        }