IHostnameBuilder Interface
Namespace: PTS.Modules.Tests.Builders.Hostnames
Assembly: Modules.Tests.dll
An interface to define builders for Hostname entity.
Syntax
public interface IHostnameBuilder : IBuilder<Hostname>
Methods
HasDomain(String)
Sets domain to the entity.
Declaration
IHostnameBuilder HasDomain(string domain)
Parameters
Type | Name | Description |
---|---|---|
System.String | domain | The domain. |
Returns
Type | Description |
---|---|
IHostnameBuilder | The builder instance. |
HasId(Int64)
Sets id to the entity.
Declaration
IHostnameBuilder HasId(long id)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | id | The id. |
Returns
Type | Description |
---|---|
IHostnameBuilder | The builder instance. |
HasIdAndOwnerId(Int64, Int64)
Sets id and owner id to the entity.
Declaration
IHostnameBuilder HasIdAndOwnerId(long id, long ownerId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | id | The id. |
System.Int64 | ownerId | The owner id. |
Returns
Type | Description |
---|---|
IHostnameBuilder | The builder instance. |
HasRedirect(String)
Sets redirect to the entity.
Declaration
IHostnameBuilder HasRedirect(string redirect)
Parameters
Type | Name | Description |
---|---|---|
System.String | redirect | The redirect. |
Returns
Type | Description |
---|---|
IHostnameBuilder | The builder instance. |
HasRegistrant(Account)
Sets registrant to the entity.
Declaration
IHostnameBuilder HasRegistrant(Account account)
Parameters
Type | Name | Description |
---|---|---|
Account | account | The registrant. |
Returns
Type | Description |
---|---|
IHostnameBuilder | The builder instance. |
HasStatus(HostnameStatus)
Sets status to the entity.
Declaration
IHostnameBuilder HasStatus(HostnameStatus status)
Parameters
Type | Name | Description |
---|---|---|
HostnameStatus | status | The hostname status. |
Returns
Type | Description |
---|---|
IHostnameBuilder | The builder instance |