コード例 #1
0
        public void InitalizeSettingCacheProvider()
        {
            DummySettingCacheProvider provider = new DummySettingCacheProvider(new DummyCacheManagerArguments()
            {
                CacheRefreshTimeout = () => TimeSpan.FromMilliseconds(0)
            });

            Assert.IsNull(SettingCacheProviderBase.LastRefreshedTime);

            provider.InitalizeSettingCacheProvider();

            Assert.IsTrue(provider.InitializeSettingCacheProviderHitCount == 1);
            Assert.IsNotNull(SettingCacheProviderBase.LastRefreshedTime);
            Assert.IsTrue(SettingCacheProviderBase.LastRefreshedTime > DateTime.MinValue);
            Assert.IsTrue(SettingCacheProviderBase.Initalized);
        }
コード例 #2
0
 public DummySettingCacheIntailized()
 {
     SettingCacheProvider = new DummySettingCacheProvider();
 }