Skip to content

Large Class #67

Description

@EduardKrutii

The Booking class is responsible for multiple concerns, including storing booking details, handling business logic, and managing pricing-related data (such as discounts and taxes). This makes the class harder to understand, modify, and extend. It also violates the Single Responsibility Principle (SRP) by bundling different functionalities together instead of delegating them to separate components.

Link to file - https://github.com/CodelyTV/refactoring-code_smells-design_patterns/blob/main/examples/csharp/csharp-booking-01_base/src/Booking/Booking.cs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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