This commit is contained in:
2020-12-15 17:59:51 +00:00
parent 477c0e90b1
commit dc4b6a1349

View File

@@ -562,17 +562,21 @@ namespace AyaNova.Util
await SeedUserAsync(log, 1, AuthorizationRoles.OpsAdminLimited, UserType.NotService, "OpsAdminLimited", "OpsAdminLimited", KnownUserTags);
await SeedUserAsync(log, 1, AuthorizationRoles.OpsAdminFull, UserType.NotService, "OpsAdminFull", "OpsAdminFull", KnownUserTags);
//PRIVACY TEST USER - this is used for a test to see if user info leaks into the logs
await SeedUserAsync(log, 1, AuthorizationRoles.OpsAdminLimited, UserType.NotService, "TEST_PRIVACY_USER_ACCOUNT", "TEST_PRIVACY_USER_ACCOUNT", KnownUserTags);
//TEST NOT ACTIVE - this is used for a test to see if inactive user can login
await SeedUserAsync(log, 1, AuthorizationRoles.OpsAdminLimited, UserType.NotService, false, "TEST_INACTIVE", "TEST_INACTIVE", 0, KnownUserTags);
//Alternate translation users for each stock translation
await SeedUserAsync(log, 1, AuthorizationRoles.All, UserType.NotService, true, "de", "de", await TranslationBiz.TranslationNameToIdStaticAsync("de"), KnownUserTags);
await SeedUserAsync(log, 1, AuthorizationRoles.All, UserType.NotService, true, "es", "es", await TranslationBiz.TranslationNameToIdStaticAsync("es"), KnownUserTags);
await SeedUserAsync(log, 1, AuthorizationRoles.All, UserType.NotService, true, "fr", "fr", await TranslationBiz.TranslationNameToIdStaticAsync("fr"), KnownUserTags);
#if(DEBUG)
//PRIVACY TEST USER - this is used for a test to see if user info leaks into the logs
await SeedUserAsync(log, 1, AuthorizationRoles.OpsAdminLimited, UserType.NotService, "TEST_PRIVACY_USER_ACCOUNT", "TEST_PRIVACY_USER_ACCOUNT", KnownUserTags);
//TEST NOT ACTIVE - this is used for a test to see if inactive user can login
await SeedUserAsync(log, 1, AuthorizationRoles.OpsAdminLimited, UserType.NotService, false, "TEST_INACTIVE", "TEST_INACTIVE", 0, KnownUserTags);
#endif
{
long HeadOfficeIdForCustomer = 0;
@@ -710,13 +714,13 @@ namespace AyaNova.Util
/////////////////////////////////////////////////////
//Seed some test memos
{
for (int x = 0; x < 100; x++)
for (int x = 0; x < 200; x++)
{
Memo memo = new Memo();
memo.Name = Fake.Lorem.Sentence();
memo.Notes = Fake.Lorem.Paragraphs();
memo.ToId = Fake.Random.Long(1, 15);
memo.FromId = Fake.Random.Long(1, 15);
memo.ToId = Fake.Random.Long(1, 17);
memo.FromId = Fake.Random.Long(1, 17);
memo.Tags = RandomTags();
using (AyContext ct = ServiceProviderProvider.DBContext)
{