Esempio n. 1
0
        private string GetNumbers()
        {
            var numbers = new StringBuilder();

            PhoneNumbers.ForEach(s => numbers.Append($"{s}\n"));

            numbers.Remove(numbers.Length - 2, 1);

            return(numbers.ToString());
        }
Esempio n. 2
0
        public void Anonymize()
        {
            this.PersonalNumber = null;
            this.FirstName      = null;
            this.LastName       = null;
            AssociatedAddresses?.ForEach(p => p?.Anonymize());
            this.CurrentAddressId = null;
            EmailAddresses?.ForEach(p => p?.Anonymize());
            this.PreferredEmailAddressId = null;
            PhoneNumbers?.ForEach(p => p?.Anonymize());
            this.PreferredMobilePhoneNumberId = null;
            this.PreferredHomePhoneNumberId   = null;

            this.IsAnonymized = true;
        }