1 instantiation of Conflict
Microsoft.AspNetCore.Http.Results (1)
ResultsCache.cs (1)
13public static Conflict Conflict { get; } = new();
16 references to Conflict
Microsoft.AspNetCore.Http.Results (5)
Conflict.cs (1)
19/// Initializes a new instance of the <see cref="Conflict"/> class with the values
ConflictOfT.cs (1)
20/// Initializes a new instance of the <see cref="Conflict"/> class with the values
ResultsCache.cs (1)
13public static Conflict Conflict { get; } = new();
TypedResults.cs (2)
688/// <returns>The created <see cref="HttpResults.Conflict"/> for the response.</returns> 689public static Conflict Conflict() => ResultsCache.Conflict;
Microsoft.AspNetCore.Http.Results.Tests (11)
ConflictResultTests.cs (7)
23var conflictObjectResult = new Conflict(); 33var result = new Conflict(); 50Conflict MyApi() { throw new NotImplementedException(); } 55PopulateMetadata<Conflict>(((Delegate)MyApi).GetMethodInfo(), builder); 67var result = new Conflict(); 78Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Conflict>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 79Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Conflict>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
ResultsTests.cs (3)
513var result = Results.Conflict() as Conflict; 1740(() => Results.Conflict(null), typeof(Conflict)),
TypedResultsTests.cs (1)
509var result = TypedResults.Conflict();