Esempio n. 1
0
        public async Task call_with_transaction_number_for_invalid_block_should_invoke_blockchain_bridge_call_and_return_empty_data()
        {
            const int blockNumber = 1;
            var       transaction = Build.A.Transaction.TestObject;
            var       result      = await _ndmBridge.CallAsync(transaction, blockNumber);

            _blockchainBridge.Received().FindBlock(blockNumber);
            _blockchainBridge.DidNotReceiveWithAnyArgs().Call(null, null);
            result.Should().BeSameAs(Array.Empty <byte>());
        }