public void Does_not_cache_item() { var initial = lifecycle.FindCache(null).Count; nestedContainer.GetInstance <Rule>(); var after = lifecycle.FindCache(null).Count; after.ShouldBe(initial); }
public void Does_not_cache_item() { int initial = lifecycle.FindCache().Count; nestedContainer.GetInstance <Rule>(); int after = lifecycle.FindCache().Count; after.ShouldEqual(initial); }
private void findCache1() { _cache1 = _lifecycle.FindCache(); var cache1 = _lifecycle.FindCache(); Assert.AreSame(_cache1, cache1); }
public IObjectCache FindCache() { return(HttpContextLifecycle.HasContext() ? _http.FindCache() : _nonHttp.FindCache()); }