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