12 references to MediaTypeSegmentWithQuality
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\MediaType.cs (1)
293return new MediaTypeSegmentWithQuality(
Microsoft.AspNetCore.Mvc.Core.Test (11)
Formatters\AcceptHeaderParserTest.cs (11)
17new MediaTypeSegmentWithQuality(new StringSegment("application/json"),1.0) 34new MediaTypeSegmentWithQuality(new StringSegment("application/json"),1.0), 35new MediaTypeSegmentWithQuality(new StringSegment("application/xml;q=0.8"),0.8) 56new MediaTypeSegmentWithQuality(new StringSegment("application/json"),1.0), 57new MediaTypeSegmentWithQuality(new StringSegment("application/xml"),1.0), 95var expectedMediaTypes = expected.Select(e => new MediaTypeSegmentWithQuality(new StringSegment(e), 1.0)).ToList(); 110new MediaTypeSegmentWithQuality(new StringSegment("application/json"), 1.0), 111new MediaTypeSegmentWithQuality(new StringSegment("application/xml;q=0.8"), 0.8) 160new MediaTypeSegmentWithQuality(new StringSegment("*/*Content-Type"), 1.0), 161new MediaTypeSegmentWithQuality(new StringSegment("application/json"), 1.0), 179new MediaTypeSegmentWithQuality(new StringSegment("application/json"), 1.0),