public void OnTestEvent(string report) { var doc = new XmlDocument(); doc.LoadXml(report); var testEvent = doc.FirstChild; switch (testEvent.Name) { case "test-case": TestFinished(testEvent); break; } if (_messageSubscribeAdapter != null) { _messageSubscribeAdapter.RegisterMessage(testEvent); } }