private static TransportMessage CreateMessageFor(string endpoint) { var msg = new TransportMessage { Id = "id1", Name = "msg", Body = new Newtonsoft.Json.Linq.JObject() }; return(msg.ForEndpoint(endpoint)); }