C# Класс FluentAssertions.Mvc.RouteDataAssertions

Contains a number of methods to assert that a RouteData is in the expected state.
Наследование: ObjectAssertions
Показать файл Открыть проект

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

Метод Описание
HaveAction ( string expectedActionName, string reason = "" ) : RouteDataAssertions

Asserts that the route data has the expected action name.

HaveController ( string expectedControllerName, string reason = "" ) : RouteDataAssertions

Asserts that the route data has the expected controller name.

HaveDataToken ( string key, object expectedValue, string reason = "" ) : RouteDataAssertions

Asserts that the route data has the expected data token.

HaveValue ( string key, object expectedValue, string reason = "" ) : RouteDataAssertions

Asserts that the route data has the expected value.

RouteDataAssertions ( RouteData subject ) : System

Initializes a new instance of the T:RouteDataAssertions class.

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

HaveAction() публичный Метод

Asserts that the route data has the expected action name.
public HaveAction ( string expectedActionName, string reason = "" ) : RouteDataAssertions
expectedActionName string The expected action name.
reason string /// A formatted phrase as is supported by explaining why the assertion /// is needed. If the phrase does not start with the word because, it is prepended automatically. ///
Результат RouteDataAssertions

HaveController() публичный Метод

Asserts that the route data has the expected controller name.
public HaveController ( string expectedControllerName, string reason = "" ) : RouteDataAssertions
expectedControllerName string The expected controller name.
reason string /// A formatted phrase as is supported by explaining why the assertion /// is needed. If the phrase does not start with the word because, it is prepended automatically. ///
Результат RouteDataAssertions

HaveDataToken() публичный Метод

Asserts that the route data has the expected data token.
public HaveDataToken ( string key, object expectedValue, string reason = "" ) : RouteDataAssertions
key string The expected data token key value.
expectedValue object The expected data token value.
reason string /// A formatted phrase as is supported by explaining why the assertion /// is needed. If the phrase does not start with the word because, it is prepended automatically. ///
Результат RouteDataAssertions

HaveValue() публичный Метод

Asserts that the route data has the expected value.
public HaveValue ( string key, object expectedValue, string reason = "" ) : RouteDataAssertions
key string The expected key.
expectedValue object The expected value.
reason string /// A formatted phrase as is supported by explaining why the assertion /// is needed. If the phrase does not start with the word because, it is prepended automatically. ///
Результат RouteDataAssertions

RouteDataAssertions() публичный Метод

Initializes a new instance of the T:RouteDataAssertions class.
public RouteDataAssertions ( RouteData subject ) : System
subject RouteData
Результат System