Beispiel #1
0
        public User()
        {
            Name = RandomData.Get(RandomData.Names);

            var randomAddress = RandomData.Get(RandomData.Addresses);

            Address = randomAddress.Address;
            City    = randomAddress.City;
            State   = randomAddress.State;
            Zip     = randomAddress.Zip;

            IsActive = RandomData.GetBoolean();
            Email    = Name + "@" + RandomData.Get(RandomData.EmailDomains);

            PrimaryPhone = "9";
            for (int i = 0; i < 9; i++)
            {
                PrimaryPhone += RandomData.Next(10);
            }

            ModifiedDate = DateTime.Now.AddDays(-1 * RandomData.Next(100));
            CreatedDate  = DateTime.Now.AddDays(-1 * RandomData.Next(100));
        }