public void SetLastname(string lastname) { if (string.IsNullOrEmpty(lastname)) { throw new DatingAppException(ErrorCode.Empty(nameof(lastname))); } this.Lastname = lastname; }
public void SetFristname(string firstname) { if (string.IsNullOrEmpty(firstname)) { throw new DatingAppException(ErrorCode.Empty(nameof(firstname))); } this.Firstname = firstname; }
public void SetUsername(string username) { if (string.IsNullOrEmpty(username)) { throw new DatingAppException(ErrorCode.Empty(nameof(username))); } this.Username = username; }
public void SetEmail(string email) { if (string.IsNullOrEmpty(email)) { throw new DatingAppException(ErrorCode.Empty(nameof(email))); } this.Email = email; }
public void SetPassword(string hash, string salt) { if (string.IsNullOrEmpty(hash) || string.IsNullOrEmpty(salt)) { throw new DatingAppException(ErrorCode.Empty("password")); } this.Hash = hash; this.Salt = salt; }