10 references to new
Microsoft.AspNetCore.Http.Results (1)
TypedResults.cs (1)
911
return
new
(uri, value);
Microsoft.AspNetCore.Http.Results.Tests (9)
CreatedOfTResultTests.cs (9)
24
var result = new
Created
<HttpValidationProblemDetails>(expectedUrl, obj);
39
var result = new
Created
<string>(location, "testInput");
51
var result = new
Created
<string>(location, "testInput");
68
var result = new
Created
<string>(location, "testInput");
87
var result = new
Created
<string>(location, "testInput");
119
var result = new
Created
<object>("location", null);
141
var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new
Created
<string>(location, null));
153
var result = Assert.IsAssignableFrom<IValueHttpResult>(new
Created
<string>(location, value));
166
var result = Assert.IsAssignableFrom<IValueHttpResult<string>>(new
Created
<string>(location, value));