2 instantiations of CreatedAtRoute
Microsoft.AspNetCore.Http.Results (2)
TypedResults.cs (2)
945=> new(routeName, routeValues); 954=> new(routeName, routeValues);
34 references to CreatedAtRoute
Microsoft.AspNetCore.Http.Results (10)
CreatedAtRoute.cs (3)
23/// Initializes a new instance of the <see cref="CreatedAtRoute"/> class with the values 34/// Initializes a new instance of the <see cref="CreatedAtRoute"/> class with the values 46/// Initializes a new instance of the <see cref="CreatedAtRoute"/> class with the values
CreatedAtRouteOfT.cs (3)
24/// Initializes a new instance of the <see cref="CreatedAtRoute"/> class with the values 36/// Initializes a new instance of the <see cref="CreatedAtRoute"/> class with the values 49/// Initializes a new instance of the <see cref="CreatedAtRoute"/> class with the values
TypedResults.cs (4)
940/// <returns>The created <see cref="HttpResults.CreatedAtRoute"/> for the response.</returns> 943public static CreatedAtRoute CreatedAtRoute(string? routeName = null, object? routeValues = null) 952/// <returns>The created <see cref="HttpResults.CreatedAtRoute"/> for the response.</returns> 953public static CreatedAtRoute CreatedAtRoute(string? routeName, RouteValueDictionary? routeValues)
Microsoft.AspNetCore.Http.Results.Tests (24)
CreatedAtRouteResultTests.cs (8)
47var result = new CreatedAtRoute(routeName: null, routeValues: values); 63var result = new CreatedAtRoute( 77CreatedAtRoute MyApi() { throw new NotImplementedException(); } 82PopulateMetadata<CreatedAtRoute>(((Delegate)MyApi).GetMethodInfo(), builder); 94var result = new CreatedAtRoute(null); 105Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<CreatedAtRoute>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0))); 106Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<CreatedAtRoute>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null)); 113var rawResult = new CreatedAtRoute(
ResultsTests.cs (12)
786var result = Results.CreatedAtRoute(null, null) as CreatedAtRoute; 800var result = Results.CreatedAtRoute(null, null, null) as CreatedAtRoute; 884var result = Results.CreatedAtRoute<object>(null, null, null) as CreatedAtRoute; 899var result = Results.CreatedAtRoute(routeName, null, null) as CreatedAtRoute; 911var result = Results.CreatedAtRoute() as CreatedAtRoute; 1747(() => Results.CreatedAtRoute("routeName", (object)null, null), typeof(CreatedAtRoute)), 1749(() => Results.CreatedAtRoute("routeName", null, null), typeof(CreatedAtRoute)),
TypedResultsTests.cs (4)
734var result = TypedResults.CreatedAtRoute(routeName, default(object)); 746var result = TypedResults.CreatedAtRoute(); 761var result = TypedResults.CreatedAtRoute(routeValues: routeValues); 792var result = TypedResults.CreatedAtRoute(null, null);