Let's refactor a test: Store and Update OAuth connections

from blog Just Some Code, | ↗ original
This post is part of my Advent of Code 2022. Last time, in the Unit Testing 101 series, we refactored a unit test for a method that fed a report of transactions in a payment system. This time, let’s refactor another test. This test is based on a real test I had to refactor in one of my client’s projects. Before looking at our test, a bit of...