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