public void ShouldAuthenticateTokenWithExpiration() { _userManager.CreateUser(new UserDisplay { Username = Username, Password = Password, SessionLifetime = 7 }); var passwordAuthedUser = _authenticationManager.AuthenticateUser(Username, Password); var tokenAuthedUser = _authenticationManager.AuthenticateToken(passwordAuthedUser.Token); Assert.NotNull(tokenAuthedUser); Assert.AreEqual(passwordAuthedUser.Token, tokenAuthedUser.Token); }