public void Setup()
            {
                var rnd = new Random(100);

                _cache = new ResourceHashCache(_configuration, _configuration, _hashProvider);

                for (var i = 0; i < 1000000; i++)
                {
                    var bytes = new byte[32];
                    rnd.NextBytes(bytes);
                    _cache.Add(bytes);

                    if (i % 100 == 0)
                    {
                        _bytes.Add(bytes);
                    }
                }
            }
            public void Setup()
            {
                _filename = Path.Combine(_configuration.Folder, Path.GetRandomFileName());
                var rnd = new Random(100);

                _cache1 = new ResourceHashCache(_configuration, _configuration, _hashProvider);

                for (var i = 0; i < 1000000; i++)
                {
                    var bytes = new byte[_hashProvider.Bytes];
                    rnd.NextBytes(bytes);
                    _cache1.Add(bytes);
                    _bytes.Add(bytes);
                }

                _cache1.Save(_filename);

                _cache2 = new ResourceHashCache(_configuration, _configuration, _hashProvider);
                _cache2.Load(_filename);
            }