Ejemplo n.º 1
0
        public async Task Can_SetItemInHash_and_GetAllFromHash()
        {
            var mapValues = CreateMap();
            await mapValues.ForEachAsync(async (k, v) => await redis.SetEntryInHashAsync(Hash, k, v));

            var members = await redis.GetAllEntriesFromHashAsync(Hash);

            Assert.That(members, Is.EquivalentTo(mapValues));
        }