Ejemplo n.º 1
0
        public void CanPostRegisteredType()
        {
            RegisteredClass data = new RegisteredClass { Title = "The World" };
              Request request = Session.Bind(XmlEchoTemplate);

              using (Response<RegisteredClass> response = request.Post<RegisteredClass>(data))
              {
            Assert.AreEqual(data.Title, response.Body.Title);
              }
        }
Ejemplo n.º 2
0
        public void CanReadWriteDates()
        {
            RegisteredClass data = new RegisteredClass { Title = "The World", Date = DateTime.Now };
              Request request = Session.Bind(XmlEchoTemplate);

              using (Response<RegisteredClass> response = request.Post<RegisteredClass>(data))
              {
            Assert.AreEqual(data.Title, response.Body.Title);
            Assert.AreEqual(data.Date, response.Body.Date);
              }
        }