23 references to MediaType
Microsoft.AspNetCore.Mvc.FunctionalTests (23)
ApiExplorerTest.cs (23)
603Assert.Equal("application/json", responseFormat.MediaType); 629responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).OrderBy(o => o).ToArray()); 635responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).OrderBy(o => o).ToArray()); 661responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).ToArray()); 667responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).ToArray()); 693responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).OrderBy(o => o).ToArray()); 699responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).OrderBy(o => o).ToArray()); 725responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).ToArray()); 731responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).ToArray()); 757Assert.Equal("application/json", responseFormat.MediaType); 764Assert.Equal("application/json", responseFormat.MediaType); 855var textXml = Assert.Single(responseType.ResponseFormats, f => f.MediaType == "text/xml"); 857var applicationXml = Assert.Single(responseType.ResponseFormats, f => f.MediaType == "application/xml"); 860var textJson = Assert.Single(responseType.ResponseFormats, f => f.MediaType == "text/json"); 862var applicationJson = Assert.Single(responseType.ResponseFormats, f => f.MediaType == "application/json"); 883format => format.MediaType == "application/json"); 886var textJson = Assert.Single(responseType.ResponseFormats, f => f.MediaType == "text/json"); 906Assert.Equal("application/hal+custom", responseFormat.MediaType); 911Assert.Equal("application/hal+json", responseFormat.MediaType); 959Assert.Equal(contentType, responseFormat.MediaType); 1314var actualMediaTypes = responseType.ResponseFormats.Select(r => r.MediaType).OrderBy(r => r); 1571.OrderBy(format => format.MediaType) 1572.Select(format => format.MediaType);