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