private void AddTransactionContainsToAddress() { string fromAddress = RandomBuilder.NextHexString(); string toAddress = RandomBuilder.NextHexString(); string blockNumberHex = "0x859687"; Add("block search result from API with valid From address", new BlockSearchTheoryData { BlockNumber = 8754823, Address = toAddress, BlockSearchResponses = new Queue <HttpResponseMessage>(new[] { new HttpResponseMessage { StatusCode = HttpStatusCode.OK, Content = new StringContent(JsonConvert.SerializeObject(new GetBlockByNumberResult { Result = new Result { Transactions = new List <Transaction> { new TransactionBuilder() .WithBlockNumber(blockNumberHex) .WithFromAddress(fromAddress) .WithToAddress(toAddress), new TransactionBuilder(), new TransactionBuilder() } } }), Encoding.UTF8, "application/json") }, }), ExpectedBlockNumberRequests = new List <HttpRequestMessage> { new HttpRequestMessage(HttpMethod.Post, "http://localhost.test.svr/") { Content = new StringContent(JsonConvert.SerializeObject(new ApiRequest { Id = 1, Method = "eth_getBlockByNumber", Params = new object[] { blockNumberHex , true } })) } }, ExpectedTransactions = new List <Transaction> { new TransactionBuilder() .WithBlockNumber(blockNumberHex) .WithFromAddress(fromAddress) .WithToAddress(toAddress) } }); }