2 instantiations of AcceptedAtRoute
Microsoft.AspNetCore.Http.Results (2)
TypedResults.cs (2)
1035=> new(routeName, routeValues); 1044=> new(routeName, routeValues);
33 references to AcceptedAtRoute
Microsoft.AspNetCore.Http.Results (10)
AcceptedAtRoute.cs (3)
23/// Initializes a new instance of the <see cref="AcceptedAtRoute"/> class with the values 34/// Initializes a new instance of the <see cref="AcceptedAtRoute"/> class with the values 46/// Initializes a new instance of the <see cref="AcceptedAtRoute"/> class with the values
AcceptedAtRouteOfT.cs (3)
24/// Initializes a new instance of the <see cref="AcceptedAtRoute"/> class with the values 36/// Initializes a new instance of the <see cref="AcceptedAtRoute"/> class with the values 49/// Initializes a new instance of the <see cref="AcceptedAtRoute"/> class with the values
TypedResults.cs (4)
1030/// <returns>The created <see cref="HttpResults.AcceptedAtRoute"/> for the response.</returns> 1033public static AcceptedAtRoute AcceptedAtRoute(string? routeName = null, object? routeValues = null) 1042/// <returns>The created <see cref="HttpResults.AcceptedAtRoute"/> for the response.</returns> 1043public static AcceptedAtRoute AcceptedAtRoute(string? routeName, RouteValueDictionary? routeValues)
Microsoft.AspNetCore.Http.Results.Tests (23)
AcceptedAtRouteResultTests.cs (7)
48var result = new AcceptedAtRoute(routeValues: values); 65var result = new AcceptedAtRoute( 79AcceptedAtRoute MyApi() { throw new NotImplementedException(); } 84PopulateMetadata<AcceptedAtRoute>(((Delegate)MyApi).GetMethodInfo(), builder); 96var result = new AcceptedAtRoute(null); 107Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<AcceptedAtRoute>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 108Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<AcceptedAtRoute>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
ResultsTests.cs (12)
122var result = Results.AcceptedAtRoute(null, null) as AcceptedAtRoute; 172var result = Results.AcceptedAtRoute<object>(null, null, null) as AcceptedAtRoute; 186var result = Results.AcceptedAtRoute(null, null, null) as AcceptedAtRoute; 202var result = Results.AcceptedAtRoute(routeName, routeValues) as AcceptedAtRoute; 214var result = Results.AcceptedAtRoute() as AcceptedAtRoute; 1732(() => Results.AcceptedAtRoute("routeName", (object)null, null), typeof(AcceptedAtRoute)), 1734(() => Results.AcceptedAtRoute("routeName", null, null), typeof(AcceptedAtRoute)),
TypedResultsTests.cs (4)
134var result = TypedResults.AcceptedAtRoute(routeName, routeValues); 148var result = TypedResults.AcceptedAtRoute(null, null); 174var result = TypedResults.AcceptedAtRoute(); 189var result = TypedResults.AcceptedAtRoute(routeValues: routeValues);