31 references to ResponseFormats
Microsoft.AspNetCore.Mvc.FunctionalTests (31)
ApiExplorerTest.cs (31)
472Assert.Empty(responseType.ResponseFormats); 492Assert.Empty(responseType.ResponseFormats); 602var responseFormat = Assert.Single(responseType.ResponseFormats); 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()); 756var responseFormat = Assert.Single(responseType.ResponseFormats); 763var responseFormat = Assert.Single(responseType.ResponseFormats); 853Assert.Equal(4, responseType.ResponseFormats.Count); 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"); 879Assert.Equal(2, responseType.ResponseFormats.Count); 882responseType.ResponseFormats, 886var textJson = Assert.Single(responseType.ResponseFormats, f => f.MediaType == "text/json"); 903responseType.ResponseFormats, 958var responseFormat = Assert.Single(responseType.ResponseFormats); 1314var actualMediaTypes = responseType.ResponseFormats.Select(r => r.MediaType).OrderBy(r => r); 1340Assert.Empty(responseType.ResponseFormats); 1375Assert.Empty(responseType.ResponseFormats); 1410Assert.Empty(responseType.ResponseFormats); 1445Assert.Empty(responseType.ResponseFormats); 1485Assert.Empty(responseType.ResponseFormats); 1522Assert.Empty(responseType.ResponseFormats); 1570return apiResponseType.ResponseFormats