C# Class TweetHarbor.Tests.Helpers.MvcMockHelpers

Afficher le fichier Open project: sethwebster/TweetHarbor

Méthodes publiques

Méthode 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

Méthode Description
GetQueryStringParameters ( string url ) : NameValueCollection
GetUrlFileName ( string url ) : string

Method Details

CreateCachePolicy() public static méthode

public static CreateCachePolicy ( ) : System.Web.HttpCachePolicyBase
Résultat System.Web.HttpCachePolicyBase

FakeHttpContext() public static méthode

public static FakeHttpContext ( ) : System.Web.HttpContextBase
Résultat System.Web.HttpContextBase

FakeHttpContext() public static méthode

public static FakeHttpContext ( string url ) : System.Web.HttpContextBase
url string
Résultat System.Web.HttpContextBase

SetFakeControllerContext() public static méthode

public static SetFakeControllerContext ( this controller ) : void
controller this
Résultat void

SetFakeControllerContext() public static méthode

public static SetFakeControllerContext ( this controller, IPrincipal Principal ) : void
controller this
Principal IPrincipal
Résultat void

SetHttpMethodResult() public static méthode

public static SetHttpMethodResult ( this request, string httpMethod ) : void
request this
httpMethod string
Résultat void

SetupRequestUrl() public static méthode

public static SetupRequestUrl ( this request, string url ) : void
request this
url string
Résultat void