IAccountBuilder Interface
Namespace: PTS.Modules.Tests.Builders.Accounts
Assembly: Modules.Tests.dll
An interface to define builders for Account entity.
Syntax
public interface IAccountBuilder : IBuilder<Account>
Methods
HasId(Int64)
Sets id to the entity.
Declaration
IAccountBuilder HasId(long id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id | The id. |
Returns
| Type | Description |
|---|---|
| IAccountBuilder | The builder instance. |
HasIdAndOwnerId(Int64, Int64)
Sets id and owner id to the entity.
Declaration
IAccountBuilder HasIdAndOwnerId(long id, long ownerId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id | The id. |
| System.Int64 | ownerId | The owner id. |
Returns
| Type | Description |
|---|---|
| IAccountBuilder | The builder instance. |
HasName(String)
Sets name to the entity.
Declaration
IAccountBuilder HasName(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
Returns
| Type | Description |
|---|---|
| IAccountBuilder | The builder instance. |