ModelFactoryGenerateAccountFromData Method

Generates a new AccountDto from data.

Definition

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