public User(Email email, UserName name, string password, UserGroup userGroup) { this.Email = email; this.Name = name; this.Password = password; UserGroup = userGroup; }
public virtual bool Equals(UserGroup other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return other.Id == Id && Equals(other.Name, Name); }