コード例 #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;
        }