C# Class N2.Tests.Fakes.FakeHttpRequest

Inheritance: System.Web.HttpRequestBase
Show file Open project: n2cms/n2cms Class Usage Examples

Public Properties

Property Type Description
appRelativeCurrentExecutionFilePath string
contentLength int
httpMethod string
input string
pathInfo string
query System.Collections.Specialized.NameValueCollection
rawUrl string
serverVariables System.Collections.Specialized.NameValueCollection

Public Methods

Method Description
CreatePost ( Url url, string contentType, string input, NameValueCollection queries = null, string pathInfo = null ) : void
MapPath ( string virtualPath ) : string
SetQuery ( string queryString ) : void
ValidateInput ( ) : void
this ( string key ) : string

Method Details

CreatePost() public method

public CreatePost ( Url url, string contentType, string input, NameValueCollection queries = null, string pathInfo = null ) : void
url Url
contentType string
input string
queries System.Collections.Specialized.NameValueCollection
pathInfo string
return void

MapPath() public method

public MapPath ( string virtualPath ) : string
virtualPath string
return string

SetQuery() public method

public SetQuery ( string queryString ) : void
queryString string
return void

ValidateInput() public method

public ValidateInput ( ) : void
return void

this() public method

public this ( string key ) : string
key string
return string

Property Details

appRelativeCurrentExecutionFilePath public property

public string appRelativeCurrentExecutionFilePath
return string

contentLength public property

public int contentLength
return int

httpMethod public property

public string httpMethod
return string

input public property

public string input
return string

pathInfo public property

public string pathInfo
return string

query public property

public NameValueCollection,System.Collections.Specialized query
return System.Collections.Specialized.NameValueCollection

rawUrl public property

public string rawUrl
return string

serverVariables public property

public NameValueCollection,System.Collections.Specialized serverVariables
return System.Collections.Specialized.NameValueCollection