Click or drag to resize

HttpContextHelperSetHttpContextWithSimulatedRequest Method

Sets the HTTP context with a valid simulated request.

Namespace:  Enkoni.Framework.Testing
Assembly:  Enkoni.Framework.Testing (in Enkoni.Framework.Testing.dll) Version: 1.3.0.1
Syntax
public static void SetHttpContextWithSimulatedRequest(
	string host,
	string application
)

Parameters

host
Type: SystemString
The host that must be associated with the session. Normally 'localhost' will suffice.
application
Type: SystemString
The name of the application that requires the session. Any name will do.
Exceptions
ExceptionCondition
ArgumentNullExceptionhost or application is or empty.
See Also