public void CanSerializeRecursiveTypes()
        {
            var client = new SampleClient(RootUrl);
            client.Serializer = Serializer;

            var obj = new TestTypes.RecursiveClass()
                          {
                              Id = "1",
                              Nested = new RecursiveClass() { Id = "2" }
                          };
            string json = client.Serializer.SerializeObject(obj);
            RecursiveClass obj2 = client.Serializer.DeserializeObject<RecursiveClass>(json);
        }
 public void CanSerializeSelfReferencingRecursiveTypes()
 {
     var client = new SampleClient(RootUrl);
     client.Serializer = Serializer;
     var nested = new RecursiveClass { Id = "2" };
     var obj = new RecursiveClass
     {
         Id = "1",
         Nested = nested
     };
     nested.Nested = obj;
     var json = client.Serializer.SerializeObject(obj);
     var obj2 = client.Serializer.DeserializeObject<RecursiveClass>(json);
 }