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); }
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); }
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 virtual void Remove(string key) { HttpRuntimeCache.Remove(key); }