3 writes to Location
Microsoft.AspNetCore.Mvc.Core (3)
CreatedResult.cs (3)
39
Location
= location;
58
Location
= location.AbsoluteUri;
62
Location
= location.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
10 references to Location
Microsoft.AspNetCore.Mvc.Core (1)
CreatedResult.cs (1)
85
context.HttpContext.Response.Headers.Location =
Location
;
Microsoft.AspNetCore.Mvc.Core.Test (8)
ControllerBaseTest.cs (5)
1301
Assert.Same(uri, result.
Location
);
1316
Assert.Null(result.
Location
);
1332
Assert.Equal(uri.OriginalString, result.
Location
);
1347
Assert.Null(result.
Location
);
1363
Assert.Equal(uri.OriginalString, result.
Location
);
CreatedResultTests.cs (3)
38
Assert.Same(location, result.
Location
);
48
Assert.Null(result.
Location
);
58
Assert.Null(result.
Location
);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ControllerUnitTestabilityTests.cs (1)
97
Assert.Equal(uri, createdResult.
Location
);