Skip to content

test: add unit tests for GetGoalsForUser route#226

Open
Zish19 wants to merge 1 commit into
fencer-so:mainfrom
Zish19:icons
Open

test: add unit tests for GetGoalsForUser route#226
Zish19 wants to merge 1 commit into
fencer-so:mainfrom
Zish19:icons

Conversation

@Zish19

@Zish19 Zish19 commented Jun 14, 2026

Copy link
Copy Markdown

Description

Adds unit tests to cover the newly introduced GetGoalsForUser route.

Key Changes

  • Implemented the GetForUser test method in GoalControllerTests.cs using the mock Goals/Users services.
  • Asserted target user matches the retrieved goals and that the response is assignable from the Goal model.
  • Upgraded TargetFrameworks to net8.0 in .csproj files to support local build & test execution.

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