Skip to content

Code Smells in BookingShould Duplicate Code #61

Open
@Mykyta-Panchenko

Description

@Mykyta-Panchenko

Problem:
Each test method repeats the same object instantiation for the Booking class. This makes it harder to maintain and increases the chances of errors when updating the test data.

Fix:
Extract the Booking creation logic into a separate private method.
Allow passing custom dates to make tests more readable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions