public async Task update_deposit_gas_price_should_return_transaction_hash() { var depositId = TestItem.KeccakA; var gasPrice = 20.GWei(); var transactionHash = TestItem.KeccakB; _consumerTransactionsService.UpdateDepositGasPriceAsync(depositId, gasPrice).Returns(transactionHash); var result = await _rpc.ndm_updateDepositGasPrice(depositId, gasPrice); result.Data.Should().Be(transactionHash); await _consumerTransactionsService.Received().UpdateDepositGasPriceAsync(depositId, gasPrice); }
public async Task update_deposit_gas_price_should_return_transaction_hash() { var depositId = TestItem.KeccakA; var gasPrice = 20.GWei(); var info = new UpdatedTransactionInfo(UpdatedTransactionStatus.Ok, TestItem.KeccakB); _consumerTransactionsService.UpdateDepositGasPriceAsync(depositId, gasPrice).Returns(info); var result = await _rpc.ndm_updateDepositGasPrice(depositId, gasPrice); result.Data.Status.Should().Be(info.Status.ToString().ToLowerInvariant()); result.Data.Hash.Should().Be(info.Hash); await _consumerTransactionsService.Received().UpdateDepositGasPriceAsync(depositId, gasPrice); }