public void Serialize_WithinAClass()
        {
            var thing = new Thing {Id = Guid.NewGuid()};

            var result = OpenStackNet.Serialize(thing);

            Assert.Equal(string.Format("{{\"Id\":\"{0}\"}}", thing.Id), result);
        }
        public void Deserialize()
        {
            var id = new Identifier(Guid.NewGuid());

            var json = OpenStackNet.Serialize(id);
            var result = OpenStackNet.Deserialize<Identifier>(json);

            Assert.Equal(id, result);
        }
        public void Serialize()
        {
            var rawId = Guid.NewGuid();
            var id = (Identifier)rawId;

            var result = OpenStackNet.Serialize(id);

            Assert.Equal(string.Format("\"{0}\"", rawId.ToString("D")), result);
        }