11 writes to QueryKeys
Microsoft.AspNetCore.OutputCaching.Tests (11)
OutputCacheKeyProviderTests.cs (10)
185context.CacheVaryByRules.QueryKeys = new string[] { "QueryA", "QueryC" }; 198context.CacheVaryByRules.QueryKeys = new string[] { "QueryA", "QueryC" }; 211context.CacheVaryByRules.QueryKeys = new string[] { "QUERYA" }; 224context.CacheVaryByRules.QueryKeys = new string[] { "*" }; 239context.CacheVaryByRules.QueryKeys = new string[] { "*" }; 254context.CacheVaryByRules.QueryKeys = new string[] { "*" }; 274context.CacheVaryByRules.QueryKeys = new string[] { "QueryA", "QueryC" }; 352context.CacheVaryByRules.QueryKeys = new string[] { "QueryA", "QueryC" }; 365context.CacheVaryByRules.QueryKeys = new string[] { "*" }; 378context.CacheVaryByRules.QueryKeys = new string[] { "QueryA", "QueryC" };
OutputCacheMiddlewareTests.cs (1)
524context.CacheVaryByRules.QueryKeys = vary;
11 references to QueryKeys
Microsoft.AspNetCore.OutputCaching.Tests (11)
OutputCacheAttributeTests.cs (3)
100Assert.Contains("QueryA", (IEnumerable<string>)context.CacheVaryByRules.QueryKeys); 101Assert.Contains("QueryC", (IEnumerable<string>)context.CacheVaryByRules.QueryKeys); 102Assert.DoesNotContain("QueryB", (IEnumerable<string>)context.CacheVaryByRules.QueryKeys);
OutputCachePoliciesTests.cs (5)
51Assert.Equal("*", context.CacheVaryByRules.QueryKeys); 229Assert.Equal(0, context.CacheVaryByRules.QueryKeys.Count); 242Assert.Equal(query, context.CacheVaryByRules.QueryKeys); 255Assert.Equal(queries, context.CacheVaryByRules.QueryKeys.ToArray()); 268Assert.Equal(queries, context.CacheVaryByRules.QueryKeys.ToArray());
OutputCachePolicyBuilderTests.cs (3)
131Assert.Contains("QueryA", (IEnumerable<string>)context.CacheVaryByRules.QueryKeys); 132Assert.Contains("QueryC", (IEnumerable<string>)context.CacheVaryByRules.QueryKeys); 133Assert.DoesNotContain("QueryB", (IEnumerable<string>)context.CacheVaryByRules.QueryKeys);