10 references to new
Microsoft.AspNetCore.Http.Results (1)
TypedResults.cs (1)
664public static NotFound<TValue> NotFound<TValue>(TValue? value) => new(value);
Microsoft.AspNetCore.Http.Results.Tests (9)
HttpResultsHelperTests.cs (1)
236_ = new NotFound<ProblemDetails>(value);
NotFoundOfTResultTests.cs (8)
23var result = new NotFound<HttpValidationProblemDetails>(obj); 35var notFound = new NotFound<object>(null); 45var notFound = new NotFound<string>("Test Content"); 57var result = new NotFound<string>("Test Content"); 108var result = new NotFound<object>(null); 127var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new NotFound<object>(null)); 138var result = Assert.IsAssignableFrom<IValueHttpResult>(new NotFound<string>(value)); 150var result = Assert.IsAssignableFrom<IValueHttpResult<string>>(new NotFound<string>(value));