示例#1
0
        public void KnownNameTest(string name)
        {
            ICacheContext opt = FactoryCacheContext.GetCacheObject(name);

            Assert.IsNotNull(opt, "Object must not be null!!!");

            opt.GetLogger();
        }
示例#2
0
        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();
        }