public void AddToCache_NoCacheControlTest()
        {
            var resource = "Products/products?id=0";
            var payload  = "[{\"productId\":\"0\",\"productName\":\"foo0\",\"productDescription\":\"bar\",\"price\":{}}]";

            var client = new ProductCatalogClient(_mockCache.Object);

            client.AddToCache(resource, null, payload);
        }
        public void AddToCache_CacheControlTest()
        {
            var resource = "Products/products?id=0";
            var maxAge   = TimeSpan.FromHours(1);
            var payload  = "[{\"productId\":\"0\",\"productName\":\"foo0\",\"productDescription\":\"bar\",\"price\":{}}]";

            _mockCache.Setup(t => t.Add(resource, maxAge, payload));

            var client = new ProductCatalogClient(_mockCache.Object);

            client.AddToCache(resource, maxAge, payload);
        }