Пример #1
0
        public void ShouldGetAll()
        {
            var subscribers = new List <SubscriberModel>
            {
                new SubscriberModel
                {
                    ApplicationId = "1",
                    Key           = "1",
                },
                new SubscriberModel
                {
                    ApplicationId = "2",
                    Key           = "2",
                },
            };

            _redis.AddOrUpdateSubscribers(subscribers);
            var result = _redis.GetAllSubscriptions();

            Assert.IsNotNull(result);
            Assert.AreEqual(2, result.Count);
        }