public IdentityUser()
        {
            Id = GenerateId();

            CreatedOn = new Occurrence();
            //DeletedOn = new Occurrence(null);
            LockoutEndDate = new FutureOccurrence(null);
            Email          = new UserEmail();
            PhoneNumber    = new UserPhoneNumber();

            _claims = new List <IdentityClaim>();
            _logins = new List <IdentityExternalLogin>();
            //_roles = new List<string>();
        }
 public virtual void SetPhoneNumber(UserPhoneNumber userPhoneNumber)
 {
     PhoneNumber = userPhoneNumber;
 }
        public virtual void SetPhoneNumber(string phoneNumber)
        {
            var userPhoneNumber = new UserPhoneNumber(phoneNumber);

            SetPhoneNumber(userPhoneNumber);
        }