Class FluentEntityExtensions
Extension methods for the FluentEntity type.
Inheritance
Namespace: StylelabsStylelabs.MSdkFluentStylelabs.M.Sdk.Fluent.TestingExtensions
Assembly: Stylelabs.M.Sdk.Fluent.Testing.dll
Syntax
public static class FluentEntityExtensions
Methods
AssertPropertyEmpty(FluentEntity, string, CultureInfo)
Asserts that the property value is empty.
Declaration
public static FluentEntity AssertPropertyEmpty(this FluentEntity entity, string name, CultureInfo culture)
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
public static FluentEntity AssertPropertyEmpty(this FluentEntity entity, string name)
Parameters
Type | Name | Description |
---|---|---|
FluentEntity | entity |
The FluentEntity instance. |
string | name |
The property name. |
Returns
Type | Description |
---|---|
FluentEntity |
A FluentEntity. |
AssertPropertyEqual<T>(FluentEntity, string, T)
Asserts that the property value is equal to value
.
Declaration
public static FluentEntity AssertPropertyEqual<T>(this FluentEntity entity, string name, T value)
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<T>(FluentEntity, string, CultureInfo, T)
Asserts that the property value is equal to value
.
Declaration
public static FluentEntity AssertPropertyEqual<T>(this FluentEntity entity, string name, CultureInfo culture, T value)
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<T>(FluentEntity, string, T)
Asserts that the property value is greater than value
.
Declaration
public static FluentEntity AssertPropertyGreater<T>(this FluentEntity entity, string name, T value) where T : IComparable<T>
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<T>(FluentEntity, string, CultureInfo, T)
Asserts that the property value is greater than value
.
Declaration
public static FluentEntity AssertPropertyGreater<T>(this FluentEntity entity, string name, CultureInfo culture, T value) where T : IComparable<T>
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<T>(FluentEntity, string, T)
Asserts that the property value is greater than or equal to value
.
Declaration
public static FluentEntity AssertPropertyGreaterOrEqual<T>(this FluentEntity entity, string name, T value) where T : IComparable<T>
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<T>(FluentEntity, string, CultureInfo, T)
Asserts that the property value is greater than or equal to value
.
Declaration
public static FluentEntity AssertPropertyGreaterOrEqual<T>(this FluentEntity entity, string name, CultureInfo culture, T value) where T : IComparable<T>
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<T>(FluentEntity, string, T)
Asserts that the property value is less than value
.
Declaration
public static FluentEntity AssertPropertyLess<T>(this FluentEntity entity, string name, T value) where T : IComparable<T>
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<T>(FluentEntity, string, CultureInfo, T)
Asserts that the property value is less than value
.
Declaration
public static FluentEntity AssertPropertyLess<T>(this FluentEntity entity, string name, CultureInfo culture, T value) where T : IComparable<T>
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<T>(FluentEntity, string, T)
Asserts that the property value is less than or equal to value
.
Declaration
public static FluentEntity AssertPropertyLessOrEqual<T>(this FluentEntity entity, string name, T value) where T : IComparable<T>
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<T>(FluentEntity, string, CultureInfo, T)
Asserts that the property value is less than or equal to value
.
Declaration
public static FluentEntity AssertPropertyLessOrEqual<T>(this FluentEntity entity, string name, CultureInfo culture, T value) where T : IComparable<T>
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
public static FluentEntity AssertPropertyNotEmpty(this FluentEntity entity, string name, CultureInfo culture)
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
public static FluentEntity AssertPropertyNotEmpty(this FluentEntity entity, string name)
Parameters
Type | Name | Description |
---|---|---|
FluentEntity | entity |
The FluentEntity instance. |
string | name |
The property name. |
Returns
Type | Description |
---|---|
FluentEntity |
A FluentEntity. |
AssertPropertyNotEqual<T>(FluentEntity, string, T)
Asserts that the property value is not equal to value
.
Declaration
public static FluentEntity AssertPropertyNotEqual<T>(this FluentEntity entity, string name, T value)
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<T>(FluentEntity, string, CultureInfo, T)
Asserts that the property value is not equal to value
.
Declaration
public static FluentEntity AssertPropertyNotEqual<T>(this FluentEntity entity, string name, CultureInfo culture, T value)
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
public static FluentEntity AssertRelation(this FluentEntity entity, string name, RelationRole? role = null, FluentEntity relatedEntity = null)
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. |