2 instantiations of Accepted
Microsoft.AspNetCore.Http.Results (2)
19 references to Accepted
Microsoft.AspNetCore.Http.Results (4)
Microsoft.AspNetCore.Http.Results.Tests (15)
AcceptedOfTResultTests.cs (8)
24var result = new Accepted<string>("my-location", value: "Hello world");
40var result = new Accepted<string>(expectedUrl, value: "some-value");
54var result = new Accepted<HttpValidationProblemDetails>(expectedUrl, obj);
66Accepted<Todo> MyApi() { throw new NotImplementedException(); }
71PopulateMetadata<Accepted<Todo>>(((Delegate)MyApi).GetMethodInfo(), builder);
84var result = new Accepted<object>("location", null);
95Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Accepted<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0)));
96Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Accepted<object>>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));