private void testRequestMsgMessages(JsonObject requestMsg) { testBaseMessage(requestMsg); Assert.AreEqual( Util.COMMUNITY_MSG_QUALIFIER + "/present-proof/1.0/request", requestMsg.getAsString("@type") ); Assert.AreEqual(forRelationship, requestMsg.getAsString("~for_relationship")); Assert.AreEqual(proofRequestName, requestMsg.getAsString("name")); Assert.AreEqual(attr1.toJson().ToString(), requestMsg.getAsJsonArray("proof_attrs")[0].ToString()); Assert.AreEqual(byInvitation, requestMsg.getAsBoolean("by_invitation")); }
private void testRequestMsgMessages(JsonObject requestMsg) { testBaseMessage(requestMsg); Assert.AreEqual( "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/present-proof/1.0/request", requestMsg.getAsString("@type") ); Assert.AreEqual(forRelationship, requestMsg.getAsString("~for_relationship")); Assert.AreEqual(proofRequestName, requestMsg.getAsString("name")); Assert.AreEqual(attr1.toJson().ToString(), requestMsg.getAsJsonArray("proof_attrs")[0].ToString()); Assert.AreEqual(byInvitation, requestMsg.getAsBoolean("by_invitation")); }