Class FluentEntityDefinitionExtensions
Extension methods for the FluentEntityDefinition type.
Inheritance
object
FluentEntityDefinitionExtensions
Namespace: StylelabsStylelabs.MSdkFluentStylelabs.M.Sdk.Fluent.TestingExtensions
Assembly: Stylelabs.M.Sdk.Fluent.Testing.dll
Syntax
RequestResponse
public static class FluentEntityDefinitionExtensions
Methods
AssertMemberGroup(FluentEntityDefinition, string, string)
Asserts whether the FluentEntityDefinition has the specified FluentMemberGroup.
Declaration
RequestResponse
public static FluentEntityDefinition AssertMemberGroup(this FluentEntityDefinition entityDefinition, string name, string message = null)
Parameters
Type | Name | Description |
---|---|---|
FluentEntityDefinition | entityDefinition | |
string | name |
The name of the member group. |
string | message |
The validation message. |
Returns
Type | Description |
---|---|
FluentEntityDefinition |
The fluent entity definition. |
AssertRelation(FluentEntityDefinition, string, RelationRole, string)
Asserts whether the FluentEntityDefinition has the specified relation.
Declaration
RequestResponse
public static FluentEntityDefinition AssertRelation(this FluentEntityDefinition entityDefinition, string name, RelationRole role, string message = null)
Parameters
Type | Name | Description |
---|---|---|
FluentEntityDefinition | entityDefinition | |
string | name |
The name of the relation. |
RelationRole | role |
The relation role. |
string | message |
The validation message. |
Returns
Type | Description |
---|---|
FluentEntityDefinition |
The fluent entity definition. |