IDynamicTextBuilder Interface
Namespace: PTS.Modules.Tests.Builders.DynamicTexts
Assembly: Modules.Tests.dll
An interface to define builders for DynamicText entity.
Syntax
public interface IDynamicTextBuilder : IBuilder<DynamicText>
Methods
HasId(Int64)
Sets id to the entity.
Declaration
IDynamicTextBuilder HasId(long id)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | id | The id. |
Returns
Type | Description |
---|---|
IDynamicTextBuilder | The builder instance. |
HasIdAndOwnerId(Int64, Int64)
Sets id and owner id to the entity.
Declaration
IDynamicTextBuilder HasIdAndOwnerId(long id, long ownerId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | id | The id. |
System.Int64 | ownerId | The owner id. |
Returns
Type | Description |
---|---|
IDynamicTextBuilder | The builder instance. |
HasLanguageCode(LanguageCode)
Sets language code to the entity.
Declaration
IDynamicTextBuilder HasLanguageCode(LanguageCode languageCode)
Parameters
Type | Name | Description |
---|---|---|
LanguageCode | languageCode | The language code. |
Returns
Type | Description |
---|---|
IDynamicTextBuilder | The builder instance. |
HasTextValue(String)
Sets text value to the entity.
Declaration
IDynamicTextBuilder HasTextValue(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The text value. |
Returns
Type | Description |
---|---|
IDynamicTextBuilder | The builder instance. |
HasType(TextType)
Sets text type to the entity.
Declaration
IDynamicTextBuilder HasType(TextType type)
Parameters
Type | Name | Description |
---|---|---|
TextType | type | The type. |
Returns
Type | Description |
---|---|
IDynamicTextBuilder | The builder instance. |