Skip to content

feat(infrastructure): implement BookingRepository with CRUD and trans…#9

Merged
Priya-49 merged 1 commit into
mainfrom
feature/2d-booking-repository
Jun 17, 2026
Merged

feat(infrastructure): implement BookingRepository with CRUD and trans…#9
Priya-49 merged 1 commit into
mainfrom
feature/2d-booking-repository

Conversation

@Priya-49

Copy link
Copy Markdown
Owner

…action handling

  • Add BookingRepository class implementing IBookingRepository
  • Implement SaveAsync with retry logic for reference code collisions (3 retries with exponential backoff)
  • Implement GetByIdAsync and GetByReferenceAsync for retrieval
  • Implement GetAllAsync for listing all bookings
  • Add 12 integration tests covering happy path, edge cases, and concurrency
  • Update IBookingRepository interface to include GetByIdAsync method
  • All tests pass with InMemory database

…action handling

- Add BookingRepository class implementing IBookingRepository
- Implement SaveAsync with retry logic for reference code collisions (3 retries with exponential backoff)
- Implement GetByIdAsync and GetByReferenceAsync for retrieval
- Implement GetAllAsync for listing all bookings
- Add 12 integration tests covering happy path, edge cases, and concurrency
- Update IBookingRepository interface to include GetByIdAsync method
- All tests pass with InMemory database

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Priya-49 Priya-49 merged commit 2ac1880 into main Jun 17, 2026
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.

1 participant