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

            var existingMember    = mapValues.First().Key;
            var nonExistingMember = existingMember + "notexists";

            Assert.That(await redis.HashContainsEntryAsync(Hash, existingMember), Is.True);
            Assert.That(await redis.HashContainsEntryAsync(Hash, nonExistingMember), Is.False);
        }