コード例 #1
0
        public void GetCollection_with_caching_enabled_expect_correct_cacheKey_retrieved()
        {
            _config.Stub(c => c.Cache).Return(CacheStub);
            _config.EnableCaching = true;

            var helper = new CacheHelper<FakeObject>(_config);

            helper.GetCollection();

            _config.Cache.AssertWasCalled(c => c.Get(FakeObject.RootCacheKey));
        }