public void Apply(LoginResultResponse evn)
 {
     if (evn.IsSucceed)
     {
         this.MemberId = evn.MemberId;
         this.LastSuccessFullLoginAttempt = new LastSuccessFullLoginAttempt(DateTime.UtcNow);
     }
     else
     {
         this.MemberId = evn.MemberId;
         this.LastUnSuccessFullLoginAttempt = new LastUnSuccessFullLoginAttempt(DateTime.UtcNow);
     }
 }
 public CredentialState(CredentialId credentialId, IIdentity memberId, Username username, Password password, LastSuccessFullLoginAttempt lastSuccessFullLoginAttempt, LastUnSuccessFullLoginAttempt lastUnSuccessFullLoginAttempt)
 {
     this.CredentialId = credentialId;
     this.MemberId     = memberId;
     this.Username     = username;
     this.Password     = password;
     this.LastSuccessFullLoginAttempt   = lastSuccessFullLoginAttempt;
     this.LastUnSuccessFullLoginAttempt = lastUnSuccessFullLoginAttempt;
 }