9 instantiations of Accepted
Microsoft.AspNetCore.Http.Results (2)
Microsoft.AspNetCore.Http.Results.Tests (7)
21 references to Accepted
Microsoft.AspNetCore.Http.Results (4)
Microsoft.AspNetCore.Http.Results.Tests (17)
AcceptedOfTResultTests.cs (10)
25var result = new Accepted<string>("my-location", value: "Hello world");
41var result = new Accepted<string>(expectedUrl, value: "some-value");
55var result = new Accepted<HttpValidationProblemDetails>(expectedUrl, obj);
67Accepted<Todo> MyApi() { throw new NotImplementedException(); }
71PopulateMetadata<Accepted<Todo>>(((Delegate)MyApi).GetMethodInfo(), builder);
86Accepted<ProblemDetails> MyApi() { throw new NotImplementedException(); }
90PopulateMetadata<Accepted<ProblemDetails>>(((Delegate)MyApi).GetMethodInfo(), builder);
105var result = new Accepted<object>("location", null);
116Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Accepted<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0)));
117Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Accepted<object>>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));