public void Get_Cache_Provider_Empty_Name_Throws(string name)
        {
            var mockConfig = new Mock <IMemcachedProviderConfig>();
            var factory    = new MemcachedCacheProviderFactory(mockConfig.Object);

            Assert.Throws <ArgumentNullException>(() => factory.GetCacheProvider <object>(name));
        }
        public void Get_Cache_Provider()
        {
            var mockConfig = new Mock <IMemcachedProviderConfig>();
            var mockClient = new Mock <IMemcachedClient>();

            mockConfig.SetupGet(c => c.MemcachedClient).Returns(mockClient.Object);

            var factory = new MemcachedCacheProviderFactory(mockConfig.Object);

            var cacheProvider = factory.GetCacheProvider <object>("cache");

            Assert.NotNull(cacheProvider);
        }