示例#1
0
        private string GetResetTokenFromEmail(string username)
        {
            var email = FileReadingUtilities.ReadPasswordResetEmail(username);

            Assert.Single(email.Recipients);
            Assert.Equal("Reset Password", email.Subject);
            return(System.Web.HttpUtility.UrlDecode(email.Token));
        }
 public void ThenIExpectToRecieveAnEmailWithALinkToResetMyPassword()
 {
     _passwordResetEmail = FileReadingUtilities.ReadPasswordResetEmail(_userEntity.EmailAddress);
     Assert.NotNull(_passwordResetEmail.Link);
 }