6 instantiations of UnsupportedMediaTypeResult
Microsoft.AspNetCore.Mvc.Core (2)
ConsumesAttribute.cs (1)
123context.Result = new UnsupportedMediaTypeResult();
ModelBinding\UnsupportedContentTypeFilter.cs (1)
31context.Result = new UnsupportedMediaTypeResult();
Microsoft.AspNetCore.Mvc.Core.Test (4)
Infrastructure\ProblemDetalsClientErrorFactoryTest.cs (4)
16var clientError = new UnsupportedMediaTypeResult(); 43var clientError = new UnsupportedMediaTypeResult(); 73var clientError = new UnsupportedMediaTypeResult(); 99var 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)
321Assert.IsType<UnsupportedMediaTypeResult>(resourceExecutingContext.Result);
Infrastructure\ProblemDetalsClientErrorFactoryTest.cs (4)
16var clientError = new UnsupportedMediaTypeResult(); 43var clientError = new UnsupportedMediaTypeResult(); 73var clientError = new UnsupportedMediaTypeResult(); 99var clientError = new UnsupportedMediaTypeResult();
ModelBinding\UnsupportedContentTypeFilterTest.cs (2)
43var status = Assert.IsType<UnsupportedMediaTypeResult>(context.Result);