Skip to content

Add Icon field to Goal model and unit tests#155

Open
srivilliamsai wants to merge 1 commit intofencer-so:mainfrom
srivilliamsai:feature/add-icon-field
Open

Add Icon field to Goal model and unit tests#155
srivilliamsai wants to merge 1 commit intofencer-so:mainfrom
srivilliamsai:feature/add-icon-field

Conversation

@srivilliamsai
Copy link
Copy Markdown

Summary

Added Icon field support to the Goal model and implemented unit tests for the GetGoalsForUser route.

Changes Made

  • Goal.cs: Added Icon property (nullable string) to store emoji icons for goals
  • FakeCollections.cs: Added UserId to test goal data for proper user association
  • GoalControllerTests.cs: Implemented GetForUser test method with assertions for:
    • Result is not null
    • Each goal is assignable from Goal type
    • Each goal has the expected UserId

Testing

Unit tests follow the existing xUnit pattern and verify the GetGoalsForUser endpoint behavior.

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