public void TestPutStringState() { ChaincodeStub stub = new ChaincodeStub("myc", "txId", handler.Object, new List <ByteString>(), null); string value = "TEST"; stub.PutStringState("key", value); handler.Verify((a) => a.PutStateAsync("myc", "txId", "", "key", ByteString.CopyFromUtf8(value), token)); }