C# Class CardShopTest.ControllerTests.ControllerUtility

Afficher le fichier Open project: egreene/PracticeGDVP

Méthodes publiques

Свойство Type Description
httpContext Mock
httpRequest Mock

Méthodes publiques

Méthode Description
mockRequest ( Type type ) : Controller
mockRequestWithNVC ( Type type, NameValueCollection collection ) : Controller

The properties of the controller are added as public static attributes so that tests can edit them and setup whatever they need for their tests. all of the setups used in the mockRequestWithNVC are verifyable so that tests can verify anything further.

setSession ( ) : void

Method Details

mockRequest() public static méthode

public static mockRequest ( Type type ) : Controller
type System.Type
Résultat Controller

mockRequestWithNVC() public static méthode

The properties of the controller are added as public static attributes so that tests can edit them and setup whatever they need for their tests. all of the setups used in the mockRequestWithNVC are verifyable so that tests can verify anything further.
public static mockRequestWithNVC ( Type type, NameValueCollection collection ) : Controller
type System.Type
collection System.Collections.Specialized.NameValueCollection
Résultat Controller

setSession() public static méthode

public static setSession ( ) : void
Résultat void

Property Details

httpContext public_oe static_oe property

public static Mock httpContext
Résultat Mock

httpRequest public_oe static_oe property

public static Mock httpRequest
Résultat Mock