public async Task GetKeysFromIndexWhenReadDataFromStreamReturnsAnIndexWithTheKeyAndIds()
        {
            var data   = FileIndexWorker.GetKeysFromIndex <IndexableData, string>("IndexValue1");
            var result = new List <IndexKey <string> >();

            await foreach (var d in data)
            {
                result.Add(d);
            }
            Assert.AreEqual(1, result.Count(x => x.Value == IndexKey));
        }
        public async Task GetKeysFromIndexWhenReadDataFromStreamReturnsAnEmptyIndex()
        {
            MockFileStreamer
            .Setup(x => x.ReadDataFromStream <Index <string> >("Data\\IndexableData\\IndexValue1.index"))
            .ReturnsAsync(new Index <string>());
            var data   = FileIndexWorker.GetKeysFromIndex <IndexableData, string>("IndexValue1");
            var result = new List <IndexKey <string> >();

            await foreach (var d in data)
            {
                result.Add(d);
            }
            Assert.IsEmpty(result);
        }