src/MvcContrib.TestHelper/MvcContrib.TestHelper/FluentController/ActionExpectations.cs
/// <summary>
/// Specifies setup on the mock controller.  This should be used when setting
/// up the test case.
/// <example>
/// <code>
///     GivenController.As&lt;UserController>()
///         .WithSetup(x => x.SessionRepository = new Mock&lt;ISessionRepository>())
///         .WhenCalling(x => x.Get());
/// </code>
/// </example>
/// </summary>
/// <param name="setupAction">An action that is used to setup values on the mock controller.  It is passed
/// an instance of the mock controller.</param>
/// <returns>An instance of this option to allow chaining.</returns>
Specifies setup on the mock controller.  This should be used when setting
up the test case.


Specifies setup on the mock controller . This should be used when setting up the test case .
public ActionExpectations<T> WithSetup(Action<IController> setupAction)
		{
			if(setupAction != null)
			{
				setupAction(MockController);
			}
			return this;
		}
public ActionExpectations < T > WithSetup ( Action < IController > setupAction ) { if ( setupAction != null ) { setupAction ( MockController ) ; } return this ; }
Specifies setup on the mock controller.
Specifies setup on the mock controller .
An instance of this option to allow chaining.
An instance of this option to allow chaining .
setupAction
Action<IController>
An action that is used to setup values on the mock controller.  It is passed
an instance of the mock controller.
An action that is used to setup values on the mock controller . It is passed an instance of the mock controller .