Class FluentEntityExtensions
Extension methods for the FluentEntity type.
Inheritance
object
FluentEntityExtensions
Namespace: StylelabsStylelabs.MSdkFluentStylelabs.M.Sdk.Fluent.TestingExtensions
Assembly: Stylelabs.M.Sdk.Fluent.Testing.dll
Syntax
Methods
AssertPropertyEmpty(FluentEntity, string, CultureInfo)
Asserts that the property value is empty.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The property name. |
| CultureInfo | culture | The culture. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |
AssertPropertyEmpty(FluentEntity, string)
Asserts that the property value is empty.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The property name. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |
AssertPropertyEqual(FluentEntity, string, T)
Asserts that the property value is equal to value.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The property name. |
| T | value | The value. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property. |
AssertPropertyEqual(FluentEntity, string, CultureInfo, T)
Asserts that the property value is equal to value.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The property name. |
| CultureInfo | culture | The culture. |
| T | value | The value. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property. |
AssertPropertyGreater(FluentEntity, string, T)
Asserts that the property value is greater than value.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The property name. |
| T | value | The value. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property. |
AssertPropertyGreater(FluentEntity, string, CultureInfo, T)
Asserts that the property value is greater than value.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The property name. |
| CultureInfo | culture | The culture. |
| T | value | The value. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property. |
AssertPropertyGreaterOrEqual(FluentEntity, string, T)
Asserts that the property value is greater than or equal to value.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The property name. |
| T | value | The value. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property. |
AssertPropertyGreaterOrEqual(FluentEntity, string, CultureInfo, T)
Asserts that the property value is greater than or equal to value.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The property name. |
| CultureInfo | culture | The culture. |
| T | value | The value. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property. |
AssertPropertyLess(FluentEntity, string, T)
Asserts that the property value is less than value.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The property name. |
| T | value | The value. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property. |
AssertPropertyLess(FluentEntity, string, CultureInfo, T)
Asserts that the property value is less than value.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The property name. |
| CultureInfo | culture | The culture. |
| T | value | The value. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property. |
AssertPropertyLessOrEqual(FluentEntity, string, T)
Asserts that the property value is less than or equal to value.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The property name. |
| T | value | The value. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property. |
AssertPropertyLessOrEqual(FluentEntity, string, CultureInfo, T)
Asserts that the property value is less than or equal to value.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The property name. |
| CultureInfo | culture | The culture. |
| T | value | The value. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property. |
AssertPropertyNotEmpty(FluentEntity, string, CultureInfo)
Asserts that the property value is not empty.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The property name. |
| CultureInfo | culture | The culture. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |
AssertPropertyNotEmpty(FluentEntity, string)
Asserts that the property value is not empty.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The property name. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |
AssertPropertyNotEqual(FluentEntity, string, T)
Asserts that the property value is not equal to value.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The property name. |
| T | value | The value. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |
Type Parameters
| Name | Description |
|---|---|
| T | The property type. |
AssertPropertyNotEqual(FluentEntity, string, CultureInfo, T)
Asserts that the property value is not equal to value.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The property name. |
| CultureInfo | culture | The culture. |
| T | value | The value. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property. |
AssertRelation(FluentEntity, string, RelationRole?, FluentEntity)
Asserts that the specified relation exists.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntity | entity | The FluentEntity instance. |
| string | name | The relation name. |
| RelationRole | role | The relation role. |
| FluentEntity | relatedEntity | The related FluentEntity. |
Returns
| Type | Description |
|---|---|
| FluentEntity | A FluentEntity. |