public void KnownNameTest(string name) { ICacheContext opt = FactoryCacheContext.GetCacheObject(name); Assert.IsNotNull(opt, "Object must not be null!!!"); opt.GetLogger(); }
public void MultipleItemsRegisterTest(string name) { ICacheContext opt1 = FactoryCacheContext.GetCacheObject(name); Assert.IsNotNull(opt1, "Object must not be null!!!"); ICacheContext opt2 = FactoryCacheContext.GetCacheObject(name); Assert.AreSame(opt1, opt2, "Should get the same object!!!"); opt1.GetLogger(); }