Beispiel #1
0
        public async Task Can_RemoveFromSet()
        {
            var storeMembers = Factory.CreateList();

            await storeMembers.ForEachAsync(async x => await redis.AddItemToSetAsync(Set, x));

            await redis.RemoveItemFromSetAsync(Set, Factory.ExistingValue);

            storeMembers.Remove(Factory.ExistingValue);

            var members = await redis.GetAllItemsFromSetAsync(Set);

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