示例#1
0
 public User(Email email, UserName name, string password, UserGroup userGroup)
 {
     this.Email = email;
     this.Name = name;
     this.Password = password;
     UserGroup = userGroup;
 }
示例#2
0
 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);
 }