This commit is contained in:
@@ -354,7 +354,7 @@ namespace AyaNova.Util
|
|||||||
await GenSeedUserAsync(log, 20, AuthorizationRoles.CustomerLimited, UserType.Customer);
|
await GenSeedUserAsync(log, 20, AuthorizationRoles.CustomerLimited, UserType.Customer);
|
||||||
|
|
||||||
|
|
||||||
//WIDGETS
|
//WIDGETS
|
||||||
await GenSeedWidgetAsync(log, 5000);
|
await GenSeedWidgetAsync(log, 5000);
|
||||||
|
|
||||||
//CUSTOMERS
|
//CUSTOMERS
|
||||||
@@ -628,7 +628,7 @@ namespace AyaNova.Util
|
|||||||
//Children and relations
|
//Children and relations
|
||||||
u.UserOptions = new UserOptions();
|
u.UserOptions = new UserOptions();
|
||||||
u.UserOptions.TranslationId = translationId;
|
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.Hour12 = true;
|
||||||
u.UserOptions.CurrencyName = "USD";
|
u.UserOptions.CurrencyName = "USD";
|
||||||
u.UserOptions.UiColor = Fake.Internet.Color();
|
u.UserOptions.UiColor = Fake.Internet.Color();
|
||||||
@@ -725,6 +725,22 @@ namespace AyaNova.Util
|
|||||||
o.Notes = Fake.Company.CatchPhrase();
|
o.Notes = Fake.Company.CatchPhrase();
|
||||||
o.Tags = RandomTags();
|
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 ?!?
|
//This seems wrong to do in a loop but is 4 times faster this way ?!?
|
||||||
using (AyContext ct = ServiceProviderProvider.DBContext)
|
using (AyContext ct = ServiceProviderProvider.DBContext)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user