コード例 #1
0
 public User(string username, ILoginPasswordHasher hasher, IBusinessDataMediator businessEvents) : base(businessEvents)
 {
     _username   = username;
     _active     = true;
     this.hasher = hasher;
     _isIdSetted = false;
 }
コード例 #2
0
 public User(int id, string username, string hash, bool active, ILoginPasswordHasher hasher, IBusinessDataMediator businessEvents) : base(businessEvents)
 {
     _id         = id;
     _username   = username;
     _hash       = hash;
     _active     = active;
     this.hasher = hasher;
     _isIdSetted = true;
 }