예제 #1
0
        public async Task RemoveAll()
        {
            await _connectionMapper.Add(Guid.Parse("c906dff3-ef28-4a83-a96c-9598cc174978"), 0, "123456");

            await _connectionMapper.Add(Guid.Parse("c906dff3-ef28-4a83-a96c-9598cc174978"), 0, "555456");

            var subscriptions = await _connectionMapper.GetAllByKey(Guid.Parse("c906dff3-ef28-4a83-a96c-9598cc174978"));

            Assert.Equal(2, subscriptions.Count);

            await _connectionMapper.RemoveAll(Guid.Parse("c906dff3-ef28-4a83-a96c-9598cc174978"));

            Assert.Null(await _connectionMapper.GetAllByKey(Guid.Parse("c906dff3-ef28-4a83-a96c-9598cc174978")));
        }