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
RequestResponse

public static class FluentEntityExtensions

Methods

AssertPropertyEmpty(FluentEntity, string, CultureInfo)

Asserts that the property value is empty.

Declaration
RequestResponse

public static FluentEntity AssertPropertyEmpty(this FluentEntity entity, string name, CultureInfo culture)
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The property name.

CultureInfoculture

The culture.

Returns
TypeDescription
FluentEntity

A FluentEntity.

AssertPropertyEmpty(FluentEntity, string)

Asserts that the property value is empty.

Declaration
RequestResponse

public static FluentEntity AssertPropertyEmpty(this FluentEntity entity, string name)
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The property name.

Returns
TypeDescription
FluentEntity

A FluentEntity.

AssertPropertyEqual<T>(FluentEntity, string, T)

Asserts that the property value is equal to value.

Declaration
RequestResponse

public static FluentEntity AssertPropertyEqual<T>(this FluentEntity entity, string name, T value)
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The property name.

Tvalue

The value.

Returns
TypeDescription
FluentEntity

A FluentEntity.

Type Parameters
NameDescription
T

The type of the property.

AssertPropertyEqual<T>(FluentEntity, string, CultureInfo, T)

Asserts that the property value is equal to value.

Declaration
RequestResponse

public static FluentEntity AssertPropertyEqual<T>(this FluentEntity entity, string name, CultureInfo culture, T value)
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The property name.

CultureInfoculture

The culture.

Tvalue

The value.

Returns
TypeDescription
FluentEntity

A FluentEntity.

Type Parameters
NameDescription
T

The type of the property.

AssertPropertyGreater<T>(FluentEntity, string, T)

Asserts that the property value is greater than value.

Declaration
RequestResponse

public static FluentEntity AssertPropertyGreater<T>(this FluentEntity entity, string name, T value) where T : IComparable<T>
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The property name.

Tvalue

The value.

Returns
TypeDescription
FluentEntity

A FluentEntity.

Type Parameters
NameDescription
T

The type of the property.

AssertPropertyGreater<T>(FluentEntity, string, CultureInfo, T)

Asserts that the property value is greater than value.

Declaration
RequestResponse

public static FluentEntity AssertPropertyGreater<T>(this FluentEntity entity, string name, CultureInfo culture, T value) where T : IComparable<T>
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The property name.

CultureInfoculture

The culture.

Tvalue

The value.

Returns
TypeDescription
FluentEntity

A FluentEntity.

Type Parameters
NameDescription
T

The type of the property.

AssertPropertyGreaterOrEqual<T>(FluentEntity, string, T)

Asserts that the property value is greater than or equal to value.

Declaration
RequestResponse

public static FluentEntity AssertPropertyGreaterOrEqual<T>(this FluentEntity entity, string name, T value) where T : IComparable<T>
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The property name.

Tvalue

The value.

Returns
TypeDescription
FluentEntity

A FluentEntity.

Type Parameters
NameDescription
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
RequestResponse

public static FluentEntity AssertPropertyGreaterOrEqual<T>(this FluentEntity entity, string name, CultureInfo culture, T value) where T : IComparable<T>
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The property name.

CultureInfoculture

The culture.

Tvalue

The value.

Returns
TypeDescription
FluentEntity

A FluentEntity.

Type Parameters
NameDescription
T

The type of the property.

AssertPropertyLess<T>(FluentEntity, string, T)

Asserts that the property value is less than value.

Declaration
RequestResponse

public static FluentEntity AssertPropertyLess<T>(this FluentEntity entity, string name, T value) where T : IComparable<T>
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The property name.

Tvalue

The value.

Returns
TypeDescription
FluentEntity

A FluentEntity.

Type Parameters
NameDescription
T

The type of the property.

AssertPropertyLess<T>(FluentEntity, string, CultureInfo, T)

Asserts that the property value is less than value.

Declaration
RequestResponse

public static FluentEntity AssertPropertyLess<T>(this FluentEntity entity, string name, CultureInfo culture, T value) where T : IComparable<T>
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The property name.

CultureInfoculture

The culture.

Tvalue

The value.

Returns
TypeDescription
FluentEntity

A FluentEntity.

Type Parameters
NameDescription
T

The type of the property.

AssertPropertyLessOrEqual<T>(FluentEntity, string, T)

Asserts that the property value is less than or equal to value.

Declaration
RequestResponse

public static FluentEntity AssertPropertyLessOrEqual<T>(this FluentEntity entity, string name, T value) where T : IComparable<T>
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The property name.

Tvalue

The value.

Returns
TypeDescription
FluentEntity

A FluentEntity.

Type Parameters
NameDescription
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
RequestResponse

public static FluentEntity AssertPropertyLessOrEqual<T>(this FluentEntity entity, string name, CultureInfo culture, T value) where T : IComparable<T>
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The property name.

CultureInfoculture

The culture.

Tvalue

The value.

Returns
TypeDescription
FluentEntity

A FluentEntity.

Type Parameters
NameDescription
T

The type of the property.

AssertPropertyNotEmpty(FluentEntity, string, CultureInfo)

Asserts that the property value is not empty.

Declaration
RequestResponse

public static FluentEntity AssertPropertyNotEmpty(this FluentEntity entity, string name, CultureInfo culture)
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The property name.

CultureInfoculture

The culture.

Returns
TypeDescription
FluentEntity

A FluentEntity.

AssertPropertyNotEmpty(FluentEntity, string)

Asserts that the property value is not empty.

Declaration
RequestResponse

public static FluentEntity AssertPropertyNotEmpty(this FluentEntity entity, string name)
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The property name.

Returns
TypeDescription
FluentEntity

A FluentEntity.

AssertPropertyNotEqual<T>(FluentEntity, string, T)

Asserts that the property value is not equal to value.

Declaration
RequestResponse

public static FluentEntity AssertPropertyNotEqual<T>(this FluentEntity entity, string name, T value)
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The property name.

Tvalue

The value.

Returns
TypeDescription
FluentEntity

A FluentEntity.

Type Parameters
NameDescription
T

The property type.

AssertPropertyNotEqual<T>(FluentEntity, string, CultureInfo, T)

Asserts that the property value is not equal to value.

Declaration
RequestResponse

public static FluentEntity AssertPropertyNotEqual<T>(this FluentEntity entity, string name, CultureInfo culture, T value)
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The property name.

CultureInfoculture

The culture.

Tvalue

The value.

Returns
TypeDescription
FluentEntity

A FluentEntity.

Type Parameters
NameDescription
T

The type of the property.

AssertRelation(FluentEntity, string, RelationRole?, FluentEntity)

Asserts that the specified relation exists.

Declaration
RequestResponse

public static FluentEntity AssertRelation(this FluentEntity entity, string name, RelationRole? role = null, FluentEntity relatedEntity = null)
Parameters
TypeNameDescription
FluentEntityentity

The FluentEntity instance.

stringname

The relation name.

RelationRolerole

The relation role.

FluentEntityrelatedEntity

The related FluentEntity.

Returns
TypeDescription
FluentEntity

A FluentEntity.

Do you have some feedback for us?

If you have suggestions for improving this article,