RequestReceivedEventArgsHelperCreate Method |
Creates a
RequestReceivedEventArgs, attaches the mock request and response objects passed across and sets a few key properties.
Namespace: Test.FrameworkAssembly: Test.Framework (in Test.Framework.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static RequestReceivedEventArgs Create(
Mock<IRequest> request,
Mock<IResponse> response,
string pathAndFile,
bool internetClient = false
)
Public Shared Function Create (
request As Mock(Of IRequest),
response As Mock(Of IResponse),
pathAndFile As String,
Optional internetClient As Boolean = false
) As RequestReceivedEventArgs
public:
static RequestReceivedEventArgs^ Create(
Mock<IRequest^>^ request,
Mock<IResponse^>^ response,
String^ pathAndFile,
bool internetClient = false
)
static member Create :
request : Mock<IRequest> *
response : Mock<IResponse> *
pathAndFile : string *
?internetClient : bool
(* Defaults:
let _internetClient = defaultArg internetClient false
*)
-> RequestReceivedEventArgs
Parameters
- request
- Type: MockIRequest
- response
- Type: MockIResponse
- pathAndFile
- Type: SystemString
- internetClient (Optional)
- Type: SystemBoolean
Return Value
Type:
RequestReceivedEventArgsSee Also