public void Must_apply_public_client_and_server_cacheability() { _cachePolicy.PublicClientCaching(TimeSpan.FromDays(1)); _cachePolicy.ServerCaching(DateTime.UtcNow); _cachePolicy.Apply(_httpCachePolicyBase); _httpCachePolicyBase.AssertWasCalled(arg => arg.SetCacheability(HttpCacheability.Public)); }
public void Must_have_policy() { _cachePolicy.PublicClientCaching(TimeSpan.FromDays(1)); Assert.That(((ICachePolicy)_cachePolicy).HasPolicy, Is.True); }
public void Must_have_policy() { _cachePolicy.PublicClientCaching(new DateTime(2012, 1, 1, 0, 0, 0, DateTimeKind.Utc)); Assert.That(((ICachePolicy)_cachePolicy).HasPolicy, Is.True); }