public async Task get_transaction_should_return_null_if_receipt_or_transaction_is_null() { var hash = TestItem.KeccakA; var result = await _ndmBridge.GetTransactionAsync(hash); result.Should().BeNull(); _blockchainBridge.Received().GetTransaction(hash); }
public async Task get_code_should_invoke_blockchain_bridge_get_code() { var code = new byte[] { 0, 1, 2 }; var address = TestItem.AddressA; _blockchainBridge.GetCode(address).Returns(code); var result = await _ndmBridge.GetCodeAsync(address); _blockchainBridge.Received().GetCode(address); result.Should().BeSameAs(code); }