public void Can_remove()
 {
     var state = "test";
     var httpCache = new HttpRuntimeCache();
     httpCache.Put("test_key", state);
     Assert.That(httpCache.Get<string>("test_key"), Is.EqualTo(state));
     httpCache.Remove<string>("test_key");
     Assert.That(httpCache.Get<string>("test_key"), Is.Null);
 }
 public void Can_remove_state_with_default_key()
 {
     var state = "test";
     var httpCache = new HttpRuntimeCache();
     httpCache.Put(state);
     Assert.That(httpCache.Get<string>(), Is.EqualTo(state));
     httpCache.Remove<string>();
     Assert.That(httpCache.Get<string>(), Is.Null);
 }
Esempio n. 3
0
        public void Can_remove_state_with_default_key()
        {
            var state     = "test";
            var httpCache = new HttpRuntimeCache();

            httpCache.Put(state);
            Assert.That(httpCache.Get <string>(), Is.EqualTo(state));
            httpCache.Remove <string>();
            Assert.That(httpCache.Get <string>(), Is.Null);
        }
Esempio n. 4
0
        public void Can_remove()
        {
            var state     = "test";
            var httpCache = new HttpRuntimeCache();

            httpCache.Put("test_key", state);
            Assert.That(httpCache.Get <string>("test_key"), Is.EqualTo(state));
            httpCache.Remove <string>("test_key");
            Assert.That(httpCache.Get <string>("test_key"), Is.Null);
        }
Esempio n. 5
0
 public virtual void Remove(string key)
 {
     HttpRuntimeCache.Remove(key);
 }