Skip to content

Fix inverted bearer token condition and Person mock serialization#42

Merged
DaraOladapo merged 2 commits into
mainfrom
fix/issue-35-person-mock-private-properties
May 17, 2026
Merged

Fix inverted bearer token condition and Person mock serialization#42
DaraOladapo merged 2 commits into
mainfrom
fix/issue-35-person-mock-private-properties

Conversation

@DaraOladapo

@DaraOladapo DaraOladapo commented May 17, 2026

Copy link
Copy Markdown
Owner

Summary

Test plan

  • Valid bearer token now sets Authorization: Bearer <token> correctly
  • Passing null or "" results in no Authorization header
  • POST/PUT/PATCH tests now send a non-empty JSON body
  • All 21 existing tests pass

🤖 Generated with Claude Code

DaraOladapo and others added 2 commits May 17, 2026 21:37
…loses #34)

The IsNullOrEmpty check was missing the negation operator, causing the
Authorization header to be set when Token was empty and cleared when it
had a value. Added ! to all active token overloads in Get, Post, Delete,
Put, and Patch.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Made FirstName, LastName, and FullName public so Newtonsoft.Json
serializes them correctly in POST/PUT/PATCH test payloads.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@DaraOladapo DaraOladapo changed the title Fix inverted bearer token condition across all HTTP verb overloads Fix inverted bearer token condition and Person mock serialization May 17, 2026
@DaraOladapo DaraOladapo merged commit 94e5089 into main May 17, 2026
11 checks passed
@DaraOladapo DaraOladapo deleted the fix/issue-35-person-mock-private-properties branch May 17, 2026 20:43
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.

Bug: Person mock serializes as empty JSON due to private properties Bug: Bearer token condition is inverted — auth header never set correctly

1 participant