1 instantiation of NoContent
Microsoft.AspNetCore.Http.Results (1)
ResultsCache.cs (1)
14public static NoContent NoContent { get; } = new();
25 references to NoContent
Microsoft.AspNetCore.Http.Results (4)
NoContent.cs (1)
19/// Initializes a new instance of the <see cref="NoContent"/> class.
ResultsCache.cs (1)
14public static NoContent NoContent { get; } = new();
TypedResults.cs (2)
702/// <returns>The created <see cref="HttpResults.NoContent"/> for the response.</returns> 703public static NoContent NoContent() => ResultsCache.NoContent;
Microsoft.AspNetCore.Http.Results.Tests (21)
NoContentResultTests.cs (7)
21var result = new NoContent(); 31var result = new NoContent(); 46NoContent MyApi() { throw new NotImplementedException(); } 51PopulateMetadata<NoContent>(((Delegate)MyApi).GetMethodInfo(), builder); 63var result = new NoContent(); 74Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<NoContent>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 75Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<NoContent>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
ResultsOfTTests.Generated.cs (10)
66Results<ChecksumResult1, NoContent> MyApi() 85Results<ChecksumResult1, NoContent> MyApi() 281Results<ChecksumResult1, NoContent> MyApi() 300Results<ChecksumResult1, NoContent> MyApi() 565Results<ChecksumResult1, NoContent> MyApi() 584Results<ChecksumResult1, NoContent> MyApi() 926Results<ChecksumResult1, NoContent> MyApi() 945Results<ChecksumResult1, NoContent> MyApi() 1372Results<ChecksumResult1, NoContent> MyApi() 1391Results<ChecksumResult1, NoContent> MyApi()
ResultsTests.cs (3)
1159var result = Results.NoContent() as NoContent; 1760(() => Results.NoContent(), typeof(NoContent)),
TypedResultsTests.cs (1)
1003var result = TypedResults.NoContent();