public void SaveAndGetBlockByHash()
        {
            var block = new Block(42, new BlockHash(new byte[] { 5, 6 }));
            var hash  = block.Hash;

            var store = new InMemoryBlockStore();

            store.Save(block);

            var result = store.GetByBlockHash(hash);

            Assert.IsNotNull(result);
            Assert.AreEqual(42ul, result.Number);
            Assert.AreEqual(hash, result.Hash);
        }
        public void GetUndefinedBlockByHash()
        {
            var store = new InMemoryBlockStore();

            Assert.IsNull(store.GetByBlockHash(new BlockHash(new byte[] { 1, 2, 3 })));
        }