示例#1
0
        public async Task GetAllByKey()
        {
            await _connectionMapper.Add(Guid.Parse("c906dff3-ef28-4a83-a96c-9598cc174978"), 0, "666");

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

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

            Assert.Equal(2, subscriptions.Count);
        }