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)
25
var result = new
Created
<HttpValidationProblemDetails>(expectedUrl, obj);
40
var result = new
Created
<string>(location, "testInput");
52
var result = new
Created
<string>(location, "testInput");
69
var result = new
Created
<string>(location, "testInput");
88
var result = new
Created
<string>(location, "testInput");
140
var result = new
Created
<object>("location", null);
162
var result = Assert.IsAssignableFrom<IStatusCodeHttpResult>(new
Created
<string>(location, null));
174
var result = Assert.IsAssignableFrom<IValueHttpResult>(new
Created
<string>(location, value));
187
var result = Assert.IsAssignableFrom<IValueHttpResult<string>>(new
Created
<string>(location, value));