public void Invalidate()
        {
            CachingProvider provider = new CachingProvider();
            provider.Set("key", "value");

            provider.Invalidate("key");

            object result = provider.Get("key");
            Assert.AreEqual(null, result);
            provider.Invalidate("key");
        }
        public void Invalidate_WrongKey_StillReturns()
        {
            CachingProvider provider = new CachingProvider();
            provider.Set("key", "value");

            provider.Invalidate("wrong-key");

            object result = provider.Get("key");
            Assert.AreEqual("value", result.ToString());
            provider.Invalidate("key");
        }
        public void Set()
        {
            CachingProvider provider = new CachingProvider();
            provider.Set("key", "value");
            object result = provider.Get("key");

            Assert.AreEqual("value", result.ToString());

            provider.Invalidate("key");
        }
        public void Set_ZeroMinutes_AlreadyExpired()
        {
            CachingProvider provider = new CachingProvider();
            provider.Set("key", "value");
            object result = provider.Get("key");

            Assert.AreEqual(null, result);
            provider.Invalidate("key");
        }