Beispiel #1
0
        public async Task TestAddGetOwnedCertificateAsync()
        {
            string transactionHash = null;

            try
            {
                transactionHash = await _attribute.AddCertificateAsync(AddressFrom, _attributeOwnedCertificate.GetAddress(), new HexBigInteger(3905820));
            }
            catch (RpcResponseException e)
            {
                Assert.Fail();
            }

            Assert.NotNull(transactionHash);
            string callResult = await _attribute.GetCertificateAsyncCall(AddressFrom);

            Assert.AreEqual(callResult, _attributeOwnedCertificate.GetAddress());
        }