Skip to content

Add account controller not-found test - #345

Open
ShriyaM50 wants to merge 1 commit into
fencer-so:mainfrom
ShriyaM50:test/account-controller-missing-coverage
Open

Add account controller not-found test#345
ShriyaM50 wants to merge 1 commit into
fencer-so:mainfrom
ShriyaM50:test/account-controller-missing-coverage

Conversation

@ShriyaM50

Copy link
Copy Markdown

What does this PR do?

Adds test coverage for the AccountController.Get() endpoint when an account does not exist.

Changes

  • Updated FakeAccountsService to support a nullable account.
  • Added a test verifying that a missing account returns NotFoundResult.

Testing

  • dotnet test Server.sln
  • 12 tests passed
  • 0 tests failed

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.

2 participants