Class FluentEntityExtensions
Extension methods for the FluentEntity type.
Inheritance
Namespace: Stylelabs.M.Sdk.Fluent.Testing.Extensions
Assembly: Stylelabs.M.Sdk.Fluent.Testing.dll
Syntax
public static class FluentEntityExtensions : object
Methods
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. |
System.String | name | The property name. |
Returns
Type | Description |
---|---|
FluentEntity |
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. |
System.String | name | The property name. |
CultureInfo | culture | The culture. |
Returns
Type | Description |
---|---|
FluentEntity |
AssertPropertyEqual<T>(FluentEntity, String, T)
Asserts that the property value is equal to
Declaration
public static FluentEntity AssertPropertyEqual<T>(this FluentEntity entity, string name, T value)
Parameters
Type | Name | Description |
---|---|---|
FluentEntity | entity | The FluentEntity instance. |
System.String | name | The property name. |
T | value | The value. |
Returns
Type | Description |
---|---|
FluentEntity |
Type Parameters
Name | Description |
---|---|
T |
AssertPropertyEqual<T>(FluentEntity, String, CultureInfo, T)
Asserts that the property value is equal to
Declaration
public static FluentEntity AssertPropertyEqual<T>(this FluentEntity entity, string name, CultureInfo culture, T value)
Parameters
Type | Name | Description |
---|---|---|
FluentEntity | entity | The FluentEntity instance. |
System.String | name | The property name. |
CultureInfo | culture | The culture. |
T | value | The value. |
Returns
Type | Description |
---|---|
FluentEntity |
Type Parameters
Name | Description |
---|---|
T |
AssertPropertyGreater<T>(FluentEntity, String, T)
Asserts that the property value is greater than
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. |
System.String | name | The property name. |
T | value | The value. |
Returns
Type | Description |
---|---|
FluentEntity |
Type Parameters
Name | Description |
---|---|
T |
AssertPropertyGreater<T>(FluentEntity, String, CultureInfo, T)
Asserts that the property value is greater than
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. |
System.String | name | The property name. |
CultureInfo | culture | The culture. |
T | value | The value. |
Returns
Type | Description |
---|---|
FluentEntity |
Type Parameters
Name | Description |
---|---|
T |
AssertPropertyGreaterOrEqual<T>(FluentEntity, String, T)
Asserts that the property value is greater than or equal to
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. |
System.String | name | The property name. |
T | value | The value. |
Returns
Type | Description |
---|---|
FluentEntity |
Type Parameters
Name | Description |
---|---|
T |
AssertPropertyGreaterOrEqual<T>(FluentEntity, String, CultureInfo, T)
Asserts that the property value is greater than or equal to
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. |
System.String | name | The property name. |
CultureInfo | culture | The culture. |
T | value | The value. |
Returns
Type | Description |
---|---|
FluentEntity |
Type Parameters
Name | Description |
---|---|
T |
AssertPropertyLess<T>(FluentEntity, String, T)
Asserts that the property value is less than
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. |
System.String | name | The property name. |
T | value | The value. |
Returns
Type | Description |
---|---|
FluentEntity |
Type Parameters
Name | Description |
---|---|
T |
AssertPropertyLess<T>(FluentEntity, String, CultureInfo, T)
Asserts that the property value is less than
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. |
System.String | name | The property name. |
CultureInfo | culture | The culture. |
T | value | The value. |
Returns
Type | Description |
---|---|
FluentEntity |
Type Parameters
Name | Description |
---|---|
T |
AssertPropertyLessOrEqual<T>(FluentEntity, String, T)
Asserts that the property value is less than or equal to
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. |
System.String | name | The property name. |
T | value | The value. |
Returns
Type | Description |
---|---|
FluentEntity |
Type Parameters
Name | Description |
---|---|
T |
AssertPropertyLessOrEqual<T>(FluentEntity, String, CultureInfo, T)
Asserts that the property value is less than or equal to
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. |
System.String | name | The property name. |
CultureInfo | culture | The culture. |
T | value | The value. |
Returns
Type | Description |
---|---|
FluentEntity |
Type Parameters
Name | Description |
---|---|
T |
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. |
System.String | name | The property name. |
Returns
Type | Description |
---|---|
FluentEntity |
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. |
System.String | name | The property name. |
CultureInfo | culture | The culture. |
Returns
Type | Description |
---|---|
FluentEntity |
AssertPropertyNotEqual<T>(FluentEntity, String, T)
Asserts that the property value is not equal to
Declaration
public static FluentEntity AssertPropertyNotEqual<T>(this FluentEntity entity, string name, T value)
Parameters
Type | Name | Description |
---|---|---|
FluentEntity | entity | The FluentEntity instance. |
System.String | name | The property name. |
T | value | The value. |
Returns
Type | Description |
---|---|
FluentEntity |
Type Parameters
Name | Description |
---|---|
T |
AssertPropertyNotEqual<T>(FluentEntity, String, CultureInfo, T)
Asserts that the property value is not equal to
Declaration
public static FluentEntity AssertPropertyNotEqual<T>(this FluentEntity entity, string name, CultureInfo culture, T value)
Parameters
Type | Name | Description |
---|---|---|
FluentEntity | entity | The FluentEntity instance. |
System.String | name | The property name. |
CultureInfo | culture | The culture. |
T | value | The value. |
Returns
Type | Description |
---|---|
FluentEntity |
Type Parameters
Name | Description |
---|---|
T |
AssertRelation(FluentEntity, String, Nullable<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. |
System.String | name | The relation name. |
System.Nullable<RelationRole> | role | The relation role. |
FluentEntity | relatedEntity | The related FluentEntity. |
Returns
Type | Description |
---|---|
FluentEntity |
Can we improve this article ? Provide feedback