Beispiel #1
0
        public async Task request_deposit_approval_should_return_id()
        {
            var id = TestItem.KeccakA;

            _consumerService.RequestDepositApprovalAsync(Keccak.Zero, "kyc").Returns(id);
            var result = await _rpc.ndm_requestDepositApproval(Keccak.Zero, "kyc");

            await _consumerService.Received().RequestDepositApprovalAsync(Keccak.Zero, "kyc");

            result.Data.Should().Be(id);
        }