public void Get_WhenKeyIsNull_ThrowArgumentNullException()
        {
            var provider = new Mock <ICouchbaseCacheBucketProvider>();

            var cache = new CouchbaseCache(provider.Object, new CouchbaseCacheOptions());

            Assert.Throws <ArgumentNullException>(() => cache.Get(null));
        }
Beispiel #2
0
        public void Get_Generic_WhenKeyIsNull_ThrowArgumentNullException()
        {
            var provider = new Mock <ICouchbaseCacheBucketProvider>();

            var cache = new CouchbaseCache(provider.Object, new CouchbaseCacheOptions());

            Assert.Throws <ArgumentNullException>(() => cache.Get <Poco>(null, new DistributedCacheEntryOptions()));
        }