示例#1
0
        public void TestMultiChainUnSubscribe()
        {
            // Setup
            var processWrapper = new ProcessWrapper {
                Mock = true, ReplyMessage = "Blockchain test"
            };
            var chain = new MultiChain(null, processWrapper);

            // Test
            var str = chain.UnSubscribe("Test01");

            // Check
            Assert.AreEqual("Blockchain test", str);
            Assert.AreEqual("/c D:\\Development\\Eigenbouw\\bc\\MultiChain\\multichain-cli.exe testchain unsubscribe Test01", processWrapper.ProcessInfo.Arguments);
        }
示例#2
0
 private void button10_Click(object sender, EventArgs e)
 {
     var permissie = chain.UnSubscribe("pinjo");
 }