31 references to ResponseFormats
Microsoft.AspNetCore.Mvc.FunctionalTests (31)
ApiExplorerTest.cs (31)
472
Assert.Empty(responseType.
ResponseFormats
);
492
Assert.Empty(responseType.
ResponseFormats
);
602
var responseFormat = Assert.Single(responseType.
ResponseFormats
);
629
responseType.
ResponseFormats
.Select(responseFormat => responseFormat.MediaType).OrderBy(o => o).ToArray());
635
responseType.
ResponseFormats
.Select(responseFormat => responseFormat.MediaType).OrderBy(o => o).ToArray());
661
responseType.
ResponseFormats
.Select(responseFormat => responseFormat.MediaType).ToArray());
667
responseType.
ResponseFormats
.Select(responseFormat => responseFormat.MediaType).ToArray());
693
responseType.
ResponseFormats
.Select(responseFormat => responseFormat.MediaType).OrderBy(o => o).ToArray());
699
responseType.
ResponseFormats
.Select(responseFormat => responseFormat.MediaType).OrderBy(o => o).ToArray());
725
responseType.
ResponseFormats
.Select(responseFormat => responseFormat.MediaType).ToArray());
731
responseType.
ResponseFormats
.Select(responseFormat => responseFormat.MediaType).ToArray());
756
var responseFormat = Assert.Single(responseType.
ResponseFormats
);
763
var responseFormat = Assert.Single(responseType.
ResponseFormats
);
853
Assert.Equal(4, responseType.
ResponseFormats
.Count);
855
var textXml = Assert.Single(responseType.
ResponseFormats
, f => f.MediaType == "text/xml");
857
var applicationXml = Assert.Single(responseType.
ResponseFormats
, f => f.MediaType == "application/xml");
860
var textJson = Assert.Single(responseType.
ResponseFormats
, f => f.MediaType == "text/json");
862
var applicationJson = Assert.Single(responseType.
ResponseFormats
, f => f.MediaType == "application/json");
879
Assert.Equal(2, responseType.
ResponseFormats
.Count);
882
responseType.
ResponseFormats
,
886
var textJson = Assert.Single(responseType.
ResponseFormats
, f => f.MediaType == "text/json");
903
responseType.
ResponseFormats
,
958
var responseFormat = Assert.Single(responseType.
ResponseFormats
);
1314
var actualMediaTypes = responseType.
ResponseFormats
.Select(r => r.MediaType).OrderBy(r => r);
1340
Assert.Empty(responseType.
ResponseFormats
);
1375
Assert.Empty(responseType.
ResponseFormats
);
1410
Assert.Empty(responseType.
ResponseFormats
);
1445
Assert.Empty(responseType.
ResponseFormats
);
1485
Assert.Empty(responseType.
ResponseFormats
);
1522
Assert.Empty(responseType.
ResponseFormats
);
1570
return apiResponseType.
ResponseFormats