MockPerson
public sealed class MockPersonInternally consistent person. Email and username are derived from the drawn name,
MockPerson.DateOfBirth gives exactly MockPerson.Age on the reference date set through
Mock.UseDateReference (the wall clock by default), and the address follows the captured data locale. Default retains its US city, state and ZIP-prefix conventions.
Profiles without complete address data keep their street, city, region and country parts but leave MockPerson.ZipCode
and MockPerson.FullAddress empty; profiles without phone data leave MockPerson.Phone empty.
Uses explicit data and setters, so it is AOT/IL2CPP safe.
Fields
Section titled “Fields”
FirstName
Section titled “FirstName”public string FirstNameReturns
System.String
LastName
Section titled “LastName”public string LastNameReturns
System.String
Honorific
Section titled “Honorific”public string HonorificReturns
System.String
public string EmailReturns
System.String
Username
Section titled “Username”public string UsernameReturns
System.String
public string PhoneReturns
System.String
Website
Section titled “Website”public string WebsiteReturns
System.String
Avatar
Section titled “Avatar”public string AvatarReturns
System.String
public int AgeReturns
System.Int32
DateOfBirth
Section titled “DateOfBirth”public string DateOfBirthReturns
System.String
Street
Section titled “Street”public string StreetReturns
System.String
public string CityReturns
System.String
public string StateReturns
System.String
ZipCode
Section titled “ZipCode”public string ZipCodeReturns
System.String
Country
Section titled “Country”public string CountryReturns
System.String
FullAddress
Section titled “FullAddress”public string FullAddressReturns
System.String
Company
Section titled “Company”public string CompanyReturns
System.String
JobTitle
Section titled “JobTitle”public string JobTitleReturns
System.String
Methods
Section titled “Methods”
public static MockPerson New()Create a fresh person with consistent fields.
Returns
MockMagic.MockPerson
New(int)
Section titled “New(int)”public static MockPerson[] New(int count)Create count people with consistent fields.
Parameters
| Name | Type |
|---|---|
count | System.Int32 |
Returns
MockMagic.MockPerson[]
ToString()
Section titled “ToString()”public override string ToString()Returns
System.String
Constructors
Section titled “Constructors”
MockPerson()
Section titled “MockPerson()”public MockPerson()Properties
Section titled “Properties”
LocaleId
Section titled “LocaleId”public string LocaleId { get; }Returns
System.String
FullName
Section titled “FullName”public string FullName { get; }Returns
System.String