openactive / test-interface

OpenActive Open Booking API Test Interface
0 stars 1 forks source link

feat: `TestOpportunityBookableFreeCancellable` and `TestOpportunityBookableNonFreeCancellable` #18

Open nickevansuk opened 1 year ago

nickevansuk commented 1 year ago

Currently the test interface only includes TestOpportunityBookableCancellable, which randomly selects between free and non-free opportunities.

Many booking systems execute different business logic when cancelling a free vs a non-free booking.

In order to allow the test suite to consistently execute the business logic for both free and non-free cancellation scenarios, additional criteria TestOpportunityBookableFreeCancellable and TestOpportunityBookableNonFreeCancellable must be introduced.

This enables the implementation of https://github.com/openactive/openactive-test-suite/issues/548 at a later date.