public TestClient(int serverPort, int clientIndex) { _index = clientIndex; _clietn = new ScsClient(ScsServiseTest.GetUserLogin(clientIndex), "127.0.0.1", serverPort); _clietn.OnUserLogin += Client_OnUserLogin; _clietn.Connect(); }
int GetUserIndex(ReceivedMsg msg) { return(ScsServiseTest.GetUserIndexFromLogin(GetUser(msg).Login)); }