1 write to ContentType
Microsoft.AspNetCore.Mvc.Core (1)
FileResult.cs (1)
26
ContentType
= contentType;
32 references to ContentType
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\FileResultExecutorBase.cs (1)
63
ContentType = result.
ContentType
,
Microsoft.AspNetCore.Mvc.Core.Test (17)
ControllerBaseTest.cs (13)
1675
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1693
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1717
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1737
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1761
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1781
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1805
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1825
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1849
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1874
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1903
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1927
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1955
Assert.Equal("application/pdf", result.
ContentType
.ToString());
FileResultHelperTest.cs (1)
25
Assert.Equal("text/plain", result.
ContentType
.ToString());
FileStreamResultTest.cs (2)
66
Assert.Equal(expectedMediaType, result.
ContentType
);
89
Assert.Equal(expectedMediaType, result.
ContentType
);
VirtualFileResultTest.cs (1)
45
MediaTypeAssert.Equal(expectedMediaType, result.
ContentType
);
Microsoft.AspNetCore.Mvc.RazorPages.Test (12)
PageModelTest.cs (6)
1384
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1401
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1418
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1435
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1462
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1488
Assert.Equal("application/pdf", result.
ContentType
.ToString());
PageTest.cs (6)
1374
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1391
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1408
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1425
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1452
Assert.Equal("application/pdf", result.
ContentType
.ToString());
1478
Assert.Equal("application/pdf", result.
ContentType
.ToString());
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
ControllerUnitTestabilityTests.cs (2)
138
Assert.Equal(contentType, fileContentResult.
ContentType
.ToString());
171
Assert.Equal(contentType, fileStreamResult.
ContentType
.ToString());