atdd-flight-reserve

System Behavior (Use Cases)

Use Case Diagram

---
config:
  layout: fixed
---
flowchart TD
 subgraph subGraph0["<b>Flight Reservation System (FRS)</b>"]
        UC1["Search One Way Trip & Display Inventory"]
        UC2["Book & Create Reservation"]
  end
 subgraph subGraph1["External Systems"]
        GDS["Global Distribution Systems"]
        CRS["Central Reservation System - Airline Backend"]
        EmailSMS["Email/SMS Provider"]
  end
    A["Customer"] --> UC1 & UC2
    B["Airline Staff/Agent"] --> UC1 & UC2
    UC1 --> UC2 & GDS & CRS
    UC2 --> CGDS & CRS & EmailSMS

     UC1:::usecase
     UC2:::usecase
     EmailSMS:::external
     DCS:::external
     A:::actor
     B:::actor
    classDef actor fill:#9FF,stroke:#007,stroke-width:2px
    classDef external fill:#f9f,stroke:#333,stroke-width:2px
    classDef usecase fill:#DDF,stroke:#333,stroke-width:2px

Use Case Diagram

Primary Actors:

Use Cases:

Secondary Actors:

Use Case Narrative: Search One Way Trip & Display Inventory

Use Case Name

Search & Display Inventory

Primary Actor

Customer, Airline Staff/Agent

Goal

The customer or agent searches for a flight (origin, destination, dates). The FRS must fetch and present an up-to-the-minute list of all available flights, seats, and their current prices.

Preconditions

Main Success Scenario

  1. The customer/airline staff selects departure city.
  2. The customer/airline staff selects departure airport in the selected city.
  3. The customer/airline staff selects destination city.
  4. The customer/airline staff selects departure date.
  5. The customer/airline staff submits the search for available flights.
  6. The system validates the customer inputs.
  7. The system retrieves the real time inventory and fare.
  8. The system displays the consolidated results to the customer.

Extensions (Alternative Flows)

Postconditions

Use Case Narrative: Book & Create Reservation

Use Case Name

Book & Create Reservation

Primary Actor

Goal

Preconditions

Main Success Scenario

  1. The customer/airline staff selects one flight from the displayed inventory.
  2. The system prompts the user to enter passenger information.
  3. The system saves the passenger information.
  4. The system confirms the flight reservation.

Extensions (Alternative Flows)

Postconditions