JesseMattson / PurrgentCare

0 stars 0 forks source link

Chore: Refactor tests #71

Open RandallKeur opened 1 month ago

RandallKeur commented 1 month ago

Description: Refactor tests to encapsulate nested fake data inside Fake Data Generator

Technical Details:

  1. Pull back embedded fake data into the parent object.
    • Example: generateAccount(accountId, name, etc.) --> generateAccount(). Under this theory, generateAccount would generate all of its needed attributes within the method as opposed to passing them in to the method itself.
  2. Apply setters to Model objects as necessary
    • Example PetId, AccountId, etc.

Acceptance Criteria:

Depends on #59 and #69 being completed first.

JesseMattson commented 2 weeks ago

Accomplished by #59, #79, #69

This issue can be closed after a final walkthrough with the team to determine if any more optimizations are possible.