2 instantiations of AcceptedAtRoute
Microsoft.AspNetCore.Http.Results (2)
26 references to AcceptedAtRoute
Microsoft.AspNetCore.Http.Results (4)
Microsoft.AspNetCore.Http.Results.Tests (22)
AcceptedAtRouteOfTResultTests.cs (9)
27var result = new AcceptedAtRoute<HttpValidationProblemDetails>(routeValues, obj);
52var result = new AcceptedAtRoute<string>(
94var result = new AcceptedAtRoute<object>(routeValues: values, value: null);
111var result = new AcceptedAtRoute<object>(
126AcceptedAtRoute<Todo> MyApi() { throw new NotImplementedException(); }
130PopulateMetadata<AcceptedAtRoute<Todo>>(((Delegate)MyApi).GetMethodInfo(), builder);
143var result = new AcceptedAtRoute<object>(null, null);
154Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<AcceptedAtRoute<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0)));
155Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<AcceptedAtRoute<object>>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
ResultsTests.cs (10)
89var result = Results.AcceptedAtRoute(routeName, routeValues, value) as AcceptedAtRoute<object>;
107var result = Results.AcceptedAtRoute(routeName, routeValues, value) as AcceptedAtRoute<object>;
139var result = Results.AcceptedAtRoute(routeName, routeValues, value) as AcceptedAtRoute<Todo>;
157var result = Results.AcceptedAtRoute(routeName, routeValues, value) as AcceptedAtRoute<Todo>;
1733(() => Results.AcceptedAtRoute("routeName", (object)null, new()), typeof(AcceptedAtRoute<object>)),
1735(() => Results.AcceptedAtRoute("routeName", null, new()), typeof(AcceptedAtRoute<object>)),