Ejemplo n.º 1
0
        public async Task send_data_request_should_return_result()
        {
            var depositId         = TestItem.KeccakA;
            var dataRequestResult = DataRequestResult.DepositVerified;

            _consumerService.SendDataRequestAsync(depositId).Returns(dataRequestResult);
            var result = await _rpc.ndm_sendDataRequest(depositId);

            await _consumerService.Received().SendDataRequestAsync(depositId);

            result.Data.Should().Be(dataRequestResult.ToString());
        }
        public async Task <ResultWrapper <string> > ndm_sendDataRequest(Keccak depositId)
        {
            DataRequestResult result = await _consumerService.SendDataRequestAsync(depositId);

            return(ResultWrapper <string> .Success(result.ToString()));
        }