public User(string username, ILoginPasswordHasher hasher, IBusinessDataMediator businessEvents) : base(businessEvents) { _username = username; _active = true; this.hasher = hasher; _isIdSetted = false; }
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; }