Exemple #1
0
        public async Task make_deposit_should_return_deposit_id()
        {
            var request = new MakeDepositForRpc
            {
                DataAssetId = Keccak.Zero,
                Units       = 10,
                Value       = 100
            };
            var depositId = TestItem.KeccakA;

            _consumerService.MakeDepositAsync(request.DataAssetId, request.Units, request.Value).Returns(depositId);
            var result = await _rpc.ndm_makeDeposit(request);

            await _consumerService.Received().MakeDepositAsync(request.DataAssetId, request.Units, request.Value);

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