Beispiel #1
0
        public async Task Can_GetHashValues()
        {
            var mapValues = CreateMap();
            await mapValues.ForEachAsync(async (k, v) => await redis.SetEntryInHashAsync(Hash, k, v));

            var expectedValues = mapValues.Map(x => x.Value);

            var hashValues = await redis.GetHashValuesAsync(Hash);

            Assert.That(hashValues, Is.EquivalentTo(expectedValues));
        }