public void TestGetStateByPartialCompositeKey_withCompositeKey()
        {
            ChaincodeStub stub = PrepareStubAndMockHandler();

            CompositeKey key = new CompositeKey("KEY");

            stub.GetStateByPartialCompositeKey(key).First();
            handler.Verify(a => a.GetStateByRangeAsync("myc", "txId", "", key.ToString(), key.ToString() + "\udbff\udfff", null, token));
            key = new CompositeKey("");
            stub.GetStateByPartialCompositeKey(key).First();
            handler.Verify(a => a.GetStateByRangeAsync("myc", "txId", "", key.ToString(), key.ToString() + "\udbff\udfff", null, token));
        }
        public void TestGetStateByPartialCompositeKey_withAttributesWithSplittedParams()
        {
            ChaincodeStub stub = PrepareStubAndMockHandler();
            CompositeKey  cKey = new CompositeKey("KEY", "attr1", "attr2", "attr3");

            stub.GetStateByPartialCompositeKey("KEY", "attr1", "attr2", "attr3").First();
            handler.Verify(a => a.GetStateByRangeAsync("myc", "txId", "", cKey.ToString(), cKey.ToString() + "\udbff\udfff", null, token));
        }