public void BlockIndexingJobTests_CompleteIndexing() { BigInteger expected = new BigInteger(1); Task result = _blockIndexingJob.RunAsync(); result.Wait(); BigInteger lastBlock = _indexingService.GetLastBlockAsync().Result; Assert.AreEqual(expected, lastBlock); }