public async Task TestListPairwiseWorksForEmptyResult() { var listPairwise = await Pairwise.ListAsync(wallet); var listPairwiseArray = JArray.Parse(listPairwise); Assert.AreEqual(0, listPairwiseArray.Count); }
public async Task TestListPairwiseWorks() { await Pairwise.CreateAsync(wallet, theirDid, myDid, null); var listPairwise = await Pairwise.ListAsync(wallet); var listPairwiseArray = JArray.Parse(listPairwise); Assert.AreEqual(1, listPairwiseArray.Count); Assert.AreEqual(listPairwiseArray[0].ToString(), string.Format(PAIR_TEMPLATE, myDid, theirDid)); }