src/MvcContrib.TestHelper/MvcContrib.TestHelper/FluentController/ActionExpectations.cs
/// <summary>
/// Creates the Location Header on a Requestfor a <see cref="GivenController"/>.As with the <see cref="RequestContext"/>.
/// <example>
/// <code>
///     GivenController.As&lt;UserController>()
///         .Should(x => x.WithLocation("http://from-somewhere.com"))
///         .WhenCalling(x => x.Show());
/// </code>
/// </example>
/// </summary>
/// <param name="headerLocation">The header location.</param>
/// <returns></returns>
Creates the Location Header on a Requestfor a .As with the .


Creates the Location Header on a Requestfor a . As with the .
public ActionExpectations<T> WithLocation(string headerLocation)
		{
			WithRequest(x => x.Stub(location => location.Url).Return(new Uri(headerLocation)));
			return this;
		}
public ActionExpectations < T > WithLocation ( string headerLocation ) { WithRequest ( x => x . Stub ( location => location . Url ) . Return ( new Uri ( headerLocation ) ) ) ; return this ; }
Creates the Location Header on a Requestfor a .As with the .
Creates the Location Header on a Requestfor a . As with the .
None
headerLocation
string
The header location.
The header location .