internal void Populate()

in Hands-on lab/lab-files/Tools/CustomerProfileJsonDataGenerator/DataObjects.cs [76:106]


        internal void Populate()
        {
            this.AccountID = accountData.AccountID;
            this.AccountAge = accountData.AccountAge;
            this.IsUserRegistered = accountData.IsUserRegistered;
            this.Gender = this.Random.Enum<Name.Gender>(Array.Empty<Name.Gender>());
            this.FirstName = this.DsName.FirstName(new Name.Gender?(this.Gender));
            this.LastName = this.DsName.LastName(new Name.Gender?(this.Gender));
            this.FullName = this.FirstName + " " + this.LastName;
            this.UserName = this.DsInternet.UserName(this.FirstName, this.LastName);
            this.Email = this.DsInternet.Email(this.FirstName, this.LastName, (string)null, (string)null);
            this.Website = this.DsInternet.DomainName();
            //this.Avatar = this.DsInternet.Avatar();
            this.CartId = Guid.NewGuid();
            this.DateOfBirth = this.DsDate.Past(50, new DateTime?(Date.SystemClock().AddYears(-20)));
            this.Phone = this.DsPhoneNumbers.PhoneNumber((string)null);
            this.Address = new CardAddress()
            {
                Street = this.DsAddress.StreetAddress(false),
                Suite = this.DsAddress.SecondaryAddress(),
                City = this.DsAddress.City(),
                State = this.accountData.AccountState,
                PostalCode = this.accountData.AccountPostalCode,
                Country = this.accountData.AccountCountry,
                Geo = new CardAddress.CardGeo()
                {
                    Lat = this.DsAddress.Latitude(-90.0, 90.0),
                    Lng = this.DsAddress.Longitude(-180.0, 180.0)
                }
            };
        }