public void TestSetup()
        {
            _bootstrapper = new Bootstrapper(log4net.LogManager.GetLogger(typeof(RegisterTest)));
            ws = new WebSocket("ws://localhost:2345/IdleLands");
            ws.Log.Level = LogLevel.Trace;

            ResetResponse();

            ws.OnMessage += (sender, e) => {
                Console.WriteLine("Response: " + e.Data);

                if(string.IsNullOrEmpty(e.Data))
                {
                    correct = false;
                    return;
                }

                response = JsonConvert.DeserializeObject<ResponseMessage>(e.Data);

                if(response == null)
                {
                    correct = false;
                    return;
                }
                correct = true;
            };

            ws.Connect();
        }
 private void ResetResponse()
 {
     response = null;
     correct = null;
 }