public void TestMultiChainGetStreamKeys() { // Setup var processWrapper = new ProcessWrapper { Mock = true, ReplyMessage = "[{ \"key\": \"Test01\", \"items\": \"1\", \"confirmed\": \"2\" }]" }; var chain = new MultiChain(null, processWrapper); // Test var keys = chain.GetStreamKeys("Test01"); // Check Assert.AreEqual(1, keys.streamkeys.Length); Assert.AreEqual("Test01", keys.streamkeys[0].key); Assert.AreEqual(1, keys.streamkeys[0].items); Assert.AreEqual(2, keys.streamkeys[0].confirmed); Assert.AreEqual("/c D:\\Development\\Eigenbouw\\bc\\MultiChain\\multichain-cli.exe testchain liststreamkeys Test01", processWrapper.ProcessInfo.Arguments); }
private void button12_Click(object sender, EventArgs e) { var permissie = chain.GetStreamKeys("pinjo"); }