src/MvcContrib.TestHelper/MvcContrib.TestHelper/FluentController/ActionExpectations.cs
/// <summary>
/// Creates the UserAgent Header on a Requestfor a <see cref="GivenController"/>.As with the <see cref="RequestContext"/>.
/// <example>
/// <code>
///     GivenController.As&lt;UserController>()
///         .Should(x => x.WithUserAgent("Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.12) Gecko/2009070611 Firefox/3.0.12 (.NET CLR 3.5.30729)"))
///         .WhenCalling(x => x.Show());
/// </code>
/// </example>
/// </summary>
/// <param name="headerUserAgent">The header location.</param>
/// <returns></returns>
Creates the UserAgent Header on a Requestfor a .As with the .


Creates the UserAgent Header on a Requestfor a . As with the .
public ActionExpectations<T> WithUserAgent(string headerUserAgent)
		{
			WithRequest(x => x.Stub(location => location.UserAgent).Return(headerUserAgent));
			return this;
		}
public ActionExpectations < T > WithUserAgent ( string headerUserAgent ) { WithRequest ( x => x . Stub ( location => location . UserAgent ) . Return ( headerUserAgent ) ) ; return this ; }
Creates the UserAgent Header on a Requestfor a .As with the .
Creates the UserAgent Header on a Requestfor a . As with the .
None
headerUserAgent
string
The header location.
The header location .