示例#1
0
文件: Person.cs 项目: ros32/Fauxtomer
        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;
        }