-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
BackendBackend oriented areaBackend oriented areajust betterOptimalization or just prettier code. Not a bug. Just betterOptimalization or just prettier code. Not a bug. Just better
Description
Description
Currently, the validation logic resides within the RegisterPage.cs and PersonalInfoPage.cs files. To improve maintainability, testability, and separation of concerns, this logic should be moved into a dedicated Validation Service.
Requirements
- Create a new Validation Service (e.g.,
IValidationServiceandValidationService). - Move all existing validation methods from
RegisterPage.csandPersonalInfoPage.csinto the new service. - Each validation method:
- Should be asynchronous (
Task<bool>return type). - Should return a boolean indicating whether the validation was successful.
- Should be asynchronous (
- Inject the validation service using the application's Dependency Injection (DI) system.
- Update all existing references in
RegisterPage.csandPersonalInfoPage.csto use the new service instead of inline logic.
Acceptance Criteria
- All validation logic is centralized in the
ValidationService. - Methods are async and return
Task<bool>. RegisterPage.csandPersonalInfoPage.csno longer contain direct validation logic.ValidationServiceis correctly registered in DI and used where needed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BackendBackend oriented areaBackend oriented areajust betterOptimalization or just prettier code. Not a bug. Just betterOptimalization or just prettier code. Not a bug. Just better