public void CustomExpiryCanBeSetThroughConfiguration() { const int expiryInMinutes = 5; CachedCssResponse = new CachedCssResponse(Http.Object, false, expiryInMinutes, Clock.Object); CachedCssResponse.WriteHeaders(); HttpCache.Verify(c => c.SetExpires(Now.AddMinutes(expiryInMinutes)), Times.Once()); }
public void Setup() { CachedCssResponse = new CachedCssResponse(Http.Object, false, DotlessConfiguration.DefaultHttpExpiryInMinutes, Clock.Object); }