C# Class TweetHarbor.Tests.Helpers.MvcMockHelpers

Exibir arquivo Open project: sethwebster/TweetHarbor

Public Methods

Method Description
CreateCachePolicy ( ) : System.Web.HttpCachePolicyBase
FakeHttpContext ( ) : System.Web.HttpContextBase
FakeHttpContext ( string url ) : System.Web.HttpContextBase
SetFakeControllerContext ( this controller ) : void
SetFakeControllerContext ( this controller, IPrincipal Principal ) : void
SetHttpMethodResult ( this request, string httpMethod ) : void
SetupRequestUrl ( this request, string url ) : void

Private Methods

Method Description
GetQueryStringParameters ( string url ) : NameValueCollection
GetUrlFileName ( string url ) : string

Method Details

CreateCachePolicy() public static method

public static CreateCachePolicy ( ) : System.Web.HttpCachePolicyBase
return System.Web.HttpCachePolicyBase

FakeHttpContext() public static method

public static FakeHttpContext ( ) : System.Web.HttpContextBase
return System.Web.HttpContextBase

FakeHttpContext() public static method

public static FakeHttpContext ( string url ) : System.Web.HttpContextBase
url string
return System.Web.HttpContextBase

SetFakeControllerContext() public static method

public static SetFakeControllerContext ( this controller ) : void
controller this
return void

SetFakeControllerContext() public static method

public static SetFakeControllerContext ( this controller, IPrincipal Principal ) : void
controller this
Principal IPrincipal
return void

SetHttpMethodResult() public static method

public static SetHttpMethodResult ( this request, string httpMethod ) : void
request this
httpMethod string
return void

SetupRequestUrl() public static method

public static SetupRequestUrl ( this request, string url ) : void
request this
url string
return void