ModelFactoryGenerateAccountFromData Method

Generates a new AccountDto from data.

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public static AccountDto GenerateAccountFromData(
	Guid id,
	string emailAddress,
	Guid companyId,
	Guid environmentId,
	string firstName,
	string lastName,
	Guid roleId,
	TimeZoneInfo timeZone
)

Parameters

id  Guid
Account ID
emailAddress  String
Account label
companyId  Guid
Company the account belongs to
environmentId  Guid
Environment ID
firstName  String
First name
lastName  String
Last name
roleId  Guid
Role ID
timeZone  TimeZoneInfo
Time zone

Return Value

AccountDto
Newly generated Account

Remarks

This method is only to be invoked for unittests!

See Also