private static void RunTestLoop() { var run = true; var count = 0; while (run) { run = HandleConsoleInput(); count++; _relay.SendMessage(new Message { Data = count.ToString() }); } }