public void Does_not_cache_item()
        {
            var initial = lifecycle.FindCache(null).Count;

            nestedContainer.GetInstance <Rule>();

            var after = lifecycle.FindCache(null).Count;

            after.ShouldBe(initial);
        }
예제 #2
0
        public void Does_not_cache_item()
        {
            int initial = lifecycle.FindCache().Count;

            nestedContainer.GetInstance <Rule>();

            int after = lifecycle.FindCache().Count;

            after.ShouldEqual(initial);
        }
예제 #3
0
        private void findCache1()
        {
            _cache1 = _lifecycle.FindCache();
            var cache1 = _lifecycle.FindCache();

            Assert.AreSame(_cache1, cache1);
        }
 public IObjectCache FindCache()
 {
     return(HttpContextLifecycle.HasContext()
                         ? _http.FindCache()
                         : _nonHttp.FindCache());
 }