3 writes to Location
Microsoft.AspNetCore.Http.Results (3)
CreatedOfT.cs (3)
28
Location
= location;
47
Location
= locationUri.AbsoluteUri;
51
Location
= locationUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
15 references to Location
Microsoft.AspNetCore.Http.Results (2)
CreatedOfT.cs (2)
78
if (!string.IsNullOrEmpty(
Location
))
80
httpContext.Response.Headers.Location =
Location
;
Microsoft.AspNetCore.Http.Results.Tests (13)
CreatedOfTResultTests.cs (1)
42
Assert.Same(location, result.
Location
);
ResultsTests.cs (7)
592
Assert.Equal(uri, result.
Location
);
608
Assert.Equal(uri, result.
Location
);
638
Assert.Equal(uri.ToString(), result.
Location
);
654
Assert.Equal(uri.ToString(), result.
Location
);
712
Assert.Null(result.
Location
);
726
Assert.Empty(result.
Location
);
740
Assert.Null(result.
Location
);
TypedResultsTests.cs (5)
589
Assert.Equal(uri, result.
Location
);
619
Assert.Equal(uri.ToString(), result.
Location
);
669
Assert.Null(result.
Location
);
679
Assert.Empty(result.
Location
);
689
Assert.Null(result.
Location
);