public void GetAll_ValidatingCacheValues()
        {
            var helper1 = new CachePhotoHelper(client, serializer);
            var output1 = helper1.GetAll();

            var helper2 = new CachePhotoHelper(client, serializer);
            var output2 = helper2.GetAll();

            Assert.IsNotNull(output1);
            Assert.IsNotNull(output2);
            Assert.AreSame(output1, output2);
        }
        public void GetAll_ValidatingCacheExpiration()
        {
            var helper1 = new CachePhotoHelper(client, serializer);
            var output1 = helper1.GetAll();

            System.Threading.Thread.Sleep(TimeSpan.FromSeconds(30));

            var helper2 = new CachePhotoHelper(client, serializer);
            var output2 = helper2.GetAll();

            Assert.IsNotNull(output1);
            Assert.IsNotNull(output2);
            Assert.AreNotSame(output1, output2);
        }