11 references to GetList
Microsoft.AspNetCore.Http.Extensions.Tests (11)
HeaderDictionaryTypeExtensionsTest.cs (11)
170
var result = context.Request.GetTypedHeaders().
GetList
<MediaTypeHeaderValue>(HeaderNames.Accept);
185
var result = context.Request.GetTypedHeaders().
GetList
<MediaTypeHeaderValue>(HeaderNames.Accept);
196
var result = context.Request.GetTypedHeaders().
GetList
<MediaTypeHeaderValue>(HeaderNames.Accept);
207
var result = context.Request.GetTypedHeaders().
GetList
<StringWithQualityHeaderValue>(HeaderNames.Accept);
219
var result = context.Request.GetTypedHeaders().
GetList
<CookieHeaderValue>(HeaderNames.Cookie);
231
var result = context.Request.GetTypedHeaders().
GetList
<EntityTagHeaderValue>(HeaderNames.ETag);
243
var result = context.Request.GetTypedHeaders().
GetList
<SetCookieHeaderValue>(HeaderNames.SetCookie);
255
var results = context.Request.GetTypedHeaders().
GetList
<TestHeaderValue>("custom");
266
var results = context.Request.GetTypedHeaders().
GetList
<TestHeaderValue>("custom");
275
var results = context.Request.GetTypedHeaders().
GetList
<TestHeaderValue>("custom");
285
Assert.Throws<NotSupportedException>(() => context.Request.GetTypedHeaders().
GetList
<object>("custom"));