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