33 references to Parse
Microsoft.AspNetCore.Mvc.FunctionalTests (33)
ContentNegotiationTest.cs (4)
386request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/json")); 405request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/custom1")); 421request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/custom1")); 436request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/json"));
JsonOutputFormatterTestBase.cs (1)
52request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/json"));
SerializableErrorTests.cs (2)
121request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse(acceptHeader)); 162request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse(acceptHeader));
XmlDataContractSerializerFormattersWrappingTest.cs (8)
45request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml-dcs")); 69request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml-dcs")); 93request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml-dcs")); 116request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml-dcs")); 139request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml-dcs")); 164request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml-dcs")); 187request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml-dcs")); 208request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml-dcs"));
XmlOutputFormatterTests.cs (10)
43request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml")); 65request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml")); 88request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml")); 109request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml")); 132request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml")); 153request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml")); 171request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml")); 191request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml")); 211request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml")); 232request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml"));
XmlSerializerFormattersWrappingTest.cs (8)
44request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml-xmlser")); 65request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml-xmlser")); 86request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml-xmlser")); 106request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml-xmlser")); 126request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml-xmlser")); 148request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml-xmlser")); 168request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml-xmlser")); 186request.Headers.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/xml-xmlser"));