This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user