Пример #1
0
        public async Task Can_GetItemFromHash()
        {
            var mapValues = CreateMap();
            await mapValues.ForEachAsync(async (k, v) => await redis.SetEntryInHashAsync(Hash, k, v));

            var firstKey = mapValues.First().Key;

            var hashValue = await redis.GetValueFromHashAsync(Hash, firstKey);

            Assert.That(hashValue, Is.EqualTo(mapValues[firstKey]));
        }