public void AcquireEmailConfirmationToken_VerifyForTokenParametersData() { var parser = new JwtParser(); AcquireTokenModel tokenModel = parser.AcquireEmailConfirmationToken("*****@*****.**", 1); var handler = new JwtSecurityTokenHandler(); var param = parser.GetParameters(); JwtSecurityToken readToken = handler.ReadJwtToken(tokenModel.Token); var iss = parser.GetClaim(readToken, "iss"); var email = parser.GetClaim(readToken, "email"); var userId = parser.GetClaim(readToken, "userId"); Assert.Equal(param.ValidIssuer, iss); Assert.Equal("*****@*****.**", email); Assert.Equal("1", userId); }