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); }
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!" }; }