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());
        }