예제 #1
0
        public void get_only()
        {
            var obj = new GetOnly();

            obj.setTest("test");

            var serialized = _serializer.Serialize(obj);

            // deserialize as "Private" to check that field Test was NOT serialized above
            var deserialized = _serializer.Deserialize <Private>(serialized);

            Assert.AreNotEqual(obj.Test, deserialized.Test);
        }
예제 #2
0
 public Response Get(GetOnly request)
 {
     return(new Response {
         Result = "Haz Sekritz!"
     });
 }
 public object Any(GetOnly request) => request;
 public Response Get(GetOnly request)
 {
     return new Response { Result = "Haz Sekritz!" };
 }