6 instantiations of UnsupportedMediaTypeResult
Microsoft.AspNetCore.Mvc.Core (2)
ConsumesAttribute.cs (1)
123
context.Result = new
UnsupportedMediaTypeResult
();
ModelBinding\UnsupportedContentTypeFilter.cs (1)
31
context.Result = new
UnsupportedMediaTypeResult
();
Microsoft.AspNetCore.Mvc.Core.Test (4)
Infrastructure\ProblemDetalsClientErrorFactoryTest.cs (4)
16
var clientError = new
UnsupportedMediaTypeResult
();
43
var clientError = new
UnsupportedMediaTypeResult
();
73
var clientError = new
UnsupportedMediaTypeResult
();
99
var clientError = new
UnsupportedMediaTypeResult
();
8 references to UnsupportedMediaTypeResult
Microsoft.AspNetCore.Mvc.Core (1)
UnsupportedMediaTypeResult.cs (1)
19
/// Creates a new instance of <see cref="
UnsupportedMediaTypeResult
"/>.
Microsoft.AspNetCore.Mvc.Core.Test (7)
ConsumesAttributeTests.cs (1)
321
Assert.IsType<
UnsupportedMediaTypeResult
>(resourceExecutingContext.Result);
Infrastructure\ProblemDetalsClientErrorFactoryTest.cs (4)
16
var
clientError = new UnsupportedMediaTypeResult();
43
var
clientError = new UnsupportedMediaTypeResult();
73
var
clientError = new UnsupportedMediaTypeResult();
99
var
clientError = new UnsupportedMediaTypeResult();
ModelBinding\UnsupportedContentTypeFilterTest.cs (2)
43
var
status = Assert.IsType<
UnsupportedMediaTypeResult
>(context.Result);