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(); }
public void UnknownApiNameTest(string name) { try { ICacheContext opt = FactoryCacheContext.GetCacheObject(name); Assert.True(false, "Exception shoud be throw for unknow API!!!"); } catch (Exception e) { Assert.True(true, e.Message); } }