ModelFactoryGenerateAccountFromData Method

Generates a new AccountDto from data.

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
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