Skip to content

Conversation

@rpi-repos
Copy link

Description

Added unit test coverage for the SendVerificationEmail action in ManageController.

To enable proper unit testing without changing behavior, a minimal refactor was introduced to extract the email-sending logic into a protected method.

Changes

  • Refactored SendVerificationEmail to delegate logic to a protected method
  • Added unit tests for the extracted logic in ManageControllerTests
  • Added Moq to the test project for mocking dependencies

Notes

  • No functional behavior was changed
  • The refactor follows existing test patterns in the repository
  • All tests pass locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant