Пример #1
0
        public void RemoveUserAccount(string testUserIdentifier)
        {
            var userAccountIds = new TestExternalIdentifiers
            {
                AccountMasterExtId = testUserIdentifier,
                ContactExtId       = testUserIdentifier,
                LoginExtId         = testUserIdentifier,
                UserExtId          = testUserIdentifier
            };

            _processor.RemoveUserAccount(userAccountIds).Wait();
            //TODO
            //remove related addresses
        }
Пример #2
0
        public async Task RemoveUserAccount(TestExternalIdentifiers userExternals)
        {
            //remove login
            await _client.Logins.Remove(userExternals.LoginExtId);

            //remove accountmaster
            await _client.AccountMasters.Remove(userExternals.AccountMasterExtId);

            //remove user
            await _client.Users.Remove(userExternals.UserExtId);

            //remove contact info
            await _client.Contacts.Remove(userExternals.ContactExtId);
        }