private ValueDataViewModel ReadValue(string key, string keyType)
        {
            if (keyType == "String")
            {
                return(new StringTypeViewModel()
                {
                    Value = _redisRepositoryString.Select(key)
                });
            }

            if (keyType == "SortedSet")
            {
                var valueData = new SortedSetWithScoreViewModel()
                {
                    Data = new List <List <string> >()
                };

                var counter = 0;
                foreach (var member in _redisRepositorySortedSet.SelectListRecordWithScore(key))
                {
                    valueData.Data.Add(new List <string>()
                    {
                        counter.ToString(),
                        member.Item1.ToString(),
                        member.Item2
                    });


                    counter++;
                }
                return(valueData);
            }

            return(new ValueDataViewModel());
        }
        public void Delete_insert_a_new_record_then_delete_it_then_confirm_its_gone()
        {
            // Arrange
            string expected = null;
            var    key      = $"123:delete:{Guid.NewGuid()}";
            var    value    = DummyObjects.GetListWithNValues(10);

            redisRepositoryString.Insert(key, value);

            // Act
            var insertedValue = redisRepositoryString.Select(key);

            redisRepository.Delete(key);
            var actual = redisRepositoryString.Select(key);

            // Assert
            Assert.AreEqual(insertedValue, value);
            Assert.AreEqual(actual, expected);
        }