예제 #1
0
        public Task <string> AddAttachmentHashRequestAsync(string hash)
        {
            var addAttachmentHashFunction = new AddAttachmentHashFunction();

            addAttachmentHashFunction.Hash = hash;

            return(ContractHandler.SendRequestAsync(addAttachmentHashFunction));
        }
예제 #2
0
        public Task <TransactionReceipt> AddAttachmentHashRequestAndWaitForReceiptAsync(string hash, CancellationTokenSource cancellationToken = null)
        {
            var addAttachmentHashFunction = new AddAttachmentHashFunction();

            addAttachmentHashFunction.Hash = hash;

            return(ContractHandler.SendRequestAndWaitForReceiptAsync(addAttachmentHashFunction, cancellationToken));
        }
예제 #3
0
        public Task <string> AddAttachmentHashRequestAsyncTest(
            [PexAssumeUnderTest] GenericContractService target,
            AddAttachmentHashFunction addAttachmentHashFunction
            )
        {
            Task <string> result = target.AddAttachmentHashRequestAsync(addAttachmentHashFunction);

            Assert.IsNotNull(result);
            return(result);
        }
예제 #4
0
        public Task <TransactionReceipt> AddAttachmentHashRequestAndWaitForReceiptAsyncTest(
            [PexAssumeUnderTest] GenericContractService target,
            AddAttachmentHashFunction addAttachmentHashFunction,
            CancellationTokenSource cancellationToken
            )
        {
            Task <TransactionReceipt> result = target.AddAttachmentHashRequestAndWaitForReceiptAsync
                                                   (addAttachmentHashFunction, cancellationToken);

            Assert.IsNotNull(result);
            return(result);
        }
예제 #5
0
 public Task <TransactionReceipt> AddAttachmentHashRequestAndWaitForReceiptAsync(AddAttachmentHashFunction addAttachmentHashFunction, CancellationTokenSource cancellationToken = null)
 {
     return(ContractHandler.SendRequestAndWaitForReceiptAsync(addAttachmentHashFunction, cancellationToken));
 }
예제 #6
0
 public Task <string> AddAttachmentHashRequestAsync(AddAttachmentHashFunction addAttachmentHashFunction)
 {
     return(ContractHandler.SendRequestAsync(addAttachmentHashFunction));
 }