C# Класс CardShopTest.ControllerTests.ControllerUtility

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
httpContext Mock
httpRequest Mock

Открытые методы

Метод Описание
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

Описание методов

mockRequest() публичный статический Метод

public static mockRequest ( Type type ) : Controller
type System.Type
Результат Controller

mockRequestWithNVC() публичный статический Метод

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
Результат Controller

setSession() публичный статический Метод

public static setSession ( ) : void
Результат void

Описание свойств

httpContext публичное статическое свойство

public static Mock httpContext
Результат Mock

httpRequest публичное статическое свойство

public static Mock httpRequest
Результат Mock