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

            var hashCount = await redis.GetHashCountAsync(Hash);

            Assert.That(hashCount, Is.EqualTo(mapValues.Count));
        }