refactoring-code_smells-design_patterns
refactoring-code_smells-design_patterns copied to clipboard
Large Class
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