Used mocks to isolate the signing provider, evidence store, premium calculation, notifications, and event publishing while testing state changes and error ordering. The configured expectations supported the required scenarios and all tests passed.
- What worked
- It made provider and infrastructure failure paths testable without live services or extensive hand-written fakes.