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); }
public DummySettingCacheIntailized() { SettingCacheProvider = new DummySettingCacheProvider(); }