From dcf388fd74e001218fd9638cad2ab673a285744f Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 11 Nov 2020 18:27:38 +0000 Subject: [PATCH] --- server/AyaNova/util/Seeder.cs | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/server/AyaNova/util/Seeder.cs b/server/AyaNova/util/Seeder.cs index 20274927..76cdc711 100644 --- a/server/AyaNova/util/Seeder.cs +++ b/server/AyaNova/util/Seeder.cs @@ -278,7 +278,7 @@ namespace AyaNova.Util //10 limited customer users await GenSeedUserAsync(log, 10, AuthorizationRoles.CustomerLimited, UserType.Customer); - + //WIDGETS await GenSeedWidgetAsync(log, 500); @@ -354,7 +354,7 @@ namespace AyaNova.Util await GenSeedUserAsync(log, 20, AuthorizationRoles.CustomerLimited, UserType.Customer); - //WIDGETS + //WIDGETS await GenSeedWidgetAsync(log, 5000); //CUSTOMERS @@ -428,7 +428,7 @@ namespace AyaNova.Util //limited customer users await GenSeedUserAsync(log, 50, AuthorizationRoles.CustomerLimited, UserType.Customer); - + //WIDGETS await GenSeedWidgetAsync(log, 20000); @@ -628,7 +628,7 @@ namespace AyaNova.Util //Children and relations u.UserOptions = new UserOptions(); u.UserOptions.TranslationId = translationId; - u.UserOptions.EmailAddress = p.Email.Replace("gmail.com", "helloayanova.com").Replace("hotmail.com", "helloayanova.com").Replace("yahoo.com", "helloayanova.com"); + u.UserOptions.EmailAddress = Fake.Internet.ExampleEmail(); u.UserOptions.Hour12 = true; u.UserOptions.CurrencyName = "USD"; u.UserOptions.UiColor = Fake.Internet.Color(); @@ -725,6 +725,22 @@ namespace AyaNova.Util o.Notes = Fake.Company.CatchPhrase(); o.Tags = RandomTags(); + o.AccountNumber=Fake.Finance.Account(); + o.Latitude = (decimal)Fake.Address.Latitude(); + o.Longitude = (decimal)Fake.Address.Longitude(); + o.Address = Fake.Address.StreetAddress(); + o.City = Fake.Address.City(); + o.Region = Fake.Address.State(); + o.Country = Fake.Address.Country(); + + o.Phone1=Fake.Phone.PhoneNumber(); + o.Phone2=Fake.Phone.PhoneNumber(); + o.Phone3=Fake.Phone.PhoneNumber(); + o.WebAddress=Fake.Internet.Url(); + o.EmailAddress=Fake.Internet.ExampleEmail(); + + + //This seems wrong to do in a loop but is 4 times faster this way ?!? using (AyContext ct = ServiceProviderProvider.DBContext) {