public void ShouldPostToBasecampUrl()
        {
            var settings = new BaseCampSettings
                {
                    CategoryId = "cat",
                    MainUrl = _server.RootUrl.TrimEnd('/'),
                    UserId = "usr",
                    Password = "******",
                    ProjectId = "proj"
                };
            var message = new BaseCampMessage
                {
                    Body = "message",
                    CategoryId = settings.CategoryId,
                    Title = "hi"
                };

            string body = null;
            string contentType = null;

            //TODO: the Juicy web server doesn't support the post bdy yet
            // (it's broken) so we will ignore that for now.

            _server.Mount(settings.NewPostPath, (req, resp) =>
                {
                    //body = req.PostBody;
                    contentType = req["Content-Type"];
                });

            UnfuddleChangesetHandler.PostNewMessageToBasecamp(message, settings);
            //Assert.AreEqual(message.ToXml(settings), body);
            Assert.AreEqual("application/xml", contentType);
        }
        public static void PostNewMessageToBasecamp(BaseCampMessage message, BaseCampSettings settings)
        {
            string url = settings.NewPostUrl;

            var messageXml = message.ToXml(settings);
            GetResponseBodyFromUrlViaPost(url, messageXml, "application/xml");
        }