public GetCache ( string cacheName ) : ICache | ||
cacheName | string | string |
return | ICache |
public void TestGetCacheFromMeekCacheFactory() { var cacheId = Guid.NewGuid().ToString(); var factory = new CacheFactory(); var expected = factory.GetCache(cacheId); var result = factory.GetCache(cacheId); Assert.IsTrue(result == expected); }
public void TestGetCacheFromMeekCacheFactoryThrowsArgumentNullException() { try { var factory = new CacheFactory(); var cache = factory.GetCache(null); } catch (Exception ex) { Assert.IsTrue(ex is ArgumentNullException); } }
public void TestRemoveCacheFromMeekCacheFactory() { var cacheId = Guid.NewGuid().ToString(); var factory = new CacheFactory(); var expected = factory.GetCache(cacheId); factory.RemoveCache(cacheId); var result = factory.GetCache(cacheId); Assert.IsFalse(expected == result); }