6 writes to HeaderNames
Microsoft.AspNetCore.OutputCaching.Tests (6)
OutputCacheKeyProviderTests.cs (6)
147
context.CacheVaryByRules.
HeaderNames
= new string[] { "HeaderA", "HeaderC" };
159
context.CacheVaryByRules.
HeaderNames
= new string[] { "HEADERA" };
172
context.CacheVaryByRules.
HeaderNames
= new string[] { "HeaderA", "HeaderC" };
273
context.CacheVaryByRules.
HeaderNames
= new string[] { "HeaderA", "HeaderC" };
325
context.CacheVaryByRules.
HeaderNames
= new string[] { "HeaderA", "HeaderC" };
339
context.CacheVaryByRules.
HeaderNames
= new string[] { "HeaderA", "HeaderC" };
9 references to HeaderNames
Microsoft.AspNetCore.OutputCaching.Tests (9)
OutputCacheAttributeTests.cs (3)
85
Assert.Contains("HeaderA", (IEnumerable<string>)context.CacheVaryByRules.
HeaderNames
);
86
Assert.Contains("HeaderC", (IEnumerable<string>)context.CacheVaryByRules.
HeaderNames
);
87
Assert.DoesNotContain("HeaderB", (IEnumerable<string>)context.CacheVaryByRules.
HeaderNames
);
OutputCachePoliciesTests.cs (3)
191
Assert.Equal(0, context.CacheVaryByRules.
HeaderNames
.Count);
204
Assert.Equal(header, context.CacheVaryByRules.
HeaderNames
);
217
Assert.Equal(headers, context.CacheVaryByRules.
HeaderNames
.ToArray());
OutputCachePolicyBuilderTests.cs (3)
115
Assert.Contains("HeaderA", (IEnumerable<string>)context.CacheVaryByRules.
HeaderNames
);
116
Assert.Contains("HeaderC", (IEnumerable<string>)context.CacheVaryByRules.
HeaderNames
);
117
Assert.DoesNotContain("HeaderB", (IEnumerable<string>)context.CacheVaryByRules.
HeaderNames
);