You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: