Esempio n. 1
0
        public void update_deposit_gas_price_should_fail_for_zero_gas_price()
        {
            var         depositId = TestItem.KeccakA;
            Func <Task> act       = () => _consumerTransactionsService.UpdateDepositGasPriceAsync(depositId, 0);

            act.Should().Throw <ArgumentException>()
            .WithMessage("Gas price cannot be 0. (Parameter 'gasPrice')");
        }
        public async Task update_deposit_gas_price_should_fail_for_zero_gas_price()
        {
            var depositId = TestItem.KeccakA;
            var info      = await _consumerTransactionsService.UpdateDepositGasPriceAsync(depositId, 0);

            info.Status.Should().Be(UpdatedTransactionStatus.InvalidGasPrice);
            info.Hash.Should().BeNull();
        }