public void GeneratePasswordReset_Pass() { // Arrange var emailAddress = "*****@*****.**"; var expected = new OkObjectResult("A password reset link has been sent to your email"); // Clear all previously created tokens var tokens = rs.GetTokensByUserId(uas.ReadUserFromDBUsingEmail(emailAddress).UserAccountId); foreach (var token in tokens) { rs.DeleteToken(token.Token); } // Act var actual = uam.GenerateResetPasswordToken(emailAddress); //Assert Assert.AreEqual(expected, actual); }