public async Task CREATE_AllPointsTestUsers() { DataFactory = ConfigurationHelper.SetPlatform(TenantsEnum.AllPoints); TestContactInformation genericContactInfo = new TestContactInformation { CompanyName = "allpoints company", Email = "*****@*****.**", FirstName = "johnny", LastName = "doe", PhoneNumber = "1234567890", }; List <TestUserAccount> allpointsUserAcounts = new List <TestUserAccount> { new TestUserAccount { Email = "*****@*****.**", ContactInformation = genericContactInfo, AccountExternalIds = new TestExternalIdentifiers { AccountMasterExtId = "elitest123", ContactExtId = "elitest123", LoginExtId = "elitest123", UserExtId = "elitest123" } }, new TestUserAccount { Email = "*****@*****.**", ContactInformation = genericContactInfo, AccountExternalIds = new TestExternalIdentifiers { AccountMasterExtId = "test-123", LoginExtId = "test-123", ContactExtId = "test-123", UserExtId = "test-123" } }, new TestUserAccount { Email = "*****@*****.**", ContactInformation = genericContactInfo, AccountExternalIds = new TestExternalIdentifiers { AccountMasterExtId = "1257-B", LoginExtId = "1257-B", ContactExtId = "1257-B", UserExtId = "1257-B" } }, new TestUserAccount { Email = "*****@*****.**", ContactInformation = genericContactInfo, AccountExternalIds = new TestExternalIdentifiers { AccountMasterExtId = "1509", ContactExtId = "contact-1509", LoginExtId = "login-1509", UserExtId = "user-1509" } }, new TestUserAccount { Email = "*****@*****.**", AccountExternalIds = new TestExternalIdentifiers { AccountMasterExtId = "A-1509-2", ContactExtId = "contact-A-1509-2", LoginExtId = "login-A-1509-2", UserExtId = "user-A-1509-2" }, ContactInformation = genericContactInfo } }; foreach (var user in allpointsUserAcounts) { await DataFactory.UserAccounts.CreateUserAccount(user); } }
public async Task CREATE_FmpTestUsers() { DataFactory = ConfigurationHelper.SetPlatform(TenantsEnum.Fmp); //generic contact information TestContactInformation contactInfo = new TestContactInformation { CompanyName = "fmp company", Email = "*****@*****.**", FirstName = "johnny", LastName = "doe", PhoneNumber = "1234567890" }; List <TestUserAccount> fmpUserAccounts = new List <TestUserAccount> { new TestUserAccount { Email = "*****@*****.**", AccountExternalIds = new TestExternalIdentifiers { AccountMasterExtId = "9509", ContactExtId = "contact-A-1923", LoginExtId = "login-A-1923", UserExtId = "user-A-1923" }, ContactInformation = contactInfo }, new TestUserAccount { Email = "*****@*****.**", AccountExternalIds = new TestExternalIdentifiers { AccountMasterExtId = "A-1923", ContactExtId = "contact-A-1923", LoginExtId = "login-A-1923", UserExtId = "user-A-1923" }, ContactInformation = contactInfo }, new TestUserAccount { Email = "*****@*****.**", AccountExternalIds = new TestExternalIdentifiers { AccountMasterExtId = "19411", ContactExtId = "contact-19411", LoginExtId = "login-19411", UserExtId = "user-19411" }, ContactInformation = contactInfo }, new TestUserAccount { Email = "*****@*****.**", AccountExternalIds = new TestExternalIdentifiers { AccountMasterExtId = "A-1941", ContactExtId = "contact-A-1941", LoginExtId = "login-A-1941", UserExtId = "user-A-1941" }, ContactInformation = contactInfo } }; foreach (var user in fmpUserAccounts) { await DataFactory.UserAccounts.CreateUserAccount(user); } }