示例#1
0
        public void GetAll()
        {
            var repository = new CacheRepository <string, string>();

            repository.TrySetValue("key1", "value1");
            repository.TrySetValue("key2", "value2");
            var all = repository.GetAll();

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