public void TestMethod16() { Request request = new Request("", "Payload for testing"); JsonCodec <Request> jsonCod = new JsonCodec <Request>(); byte[] reqCod = jsonCod.Encode(request); Request reqDecod = jsonCod.Decode(reqCod); Assert.AreEqual(request.RequestBody, reqDecod.RequestBody); }
public void TestMethod11() { Request request = new Request("", ""); JsonCodec <Request> jsonCod = new JsonCodec <Request>(); byte[] reqCod = jsonCod.Encode(request); Request reqDecod = jsonCod.Decode(reqCod); Assert.AreEqual(request.Type, reqDecod.Type); }
public void TestMethod14() { Request request = new Request("Image", ""); JsonCodec <Request> jsonCod = new JsonCodec <Request>(); byte[] reqCod = jsonCod.Encode(request); Request reqDecod = jsonCod.Decode(reqCod); Assert.AreEqual(request.RequestBody, reqDecod.RequestBody); }
public void TestMethod9() { Request request = new Request("Image", "Payload for testing"); JsonCodec <Request> jsonCod = new JsonCodec <Request>(); byte[] reqCod = jsonCod.Encode(request); Request reqDecod = jsonCod.Decode(reqCod); Assert.AreEqual(request.Type, reqDecod.Type); }