-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor domain primitives and update validation methods
This commit includes a major refactoring of domain primitives and updates to validation methods. - The `Validate` method now returns a `PrimitiveValidationResult` instead of throwing an `InvalidDomainValueException`. - New `TryCreate` methods have been added to all domain primitive classes, which attempt to create an instance and return a boolean indicating success or failure. - The `InvalidDomainValueException` now includes a reference to the instance that caused the exception. - A new type `PrimitiveValidationResult` has been introduced, which includes `IsValid` and `ErrorMessage` properties. - NuGet packages in all projects have been updated to the latest versions. - Tests have been modified to support the new signatures.
- Loading branch information
Temo Nikolaishvili
committed
Jun 3, 2024
1 parent
58006f0
commit 4c77528
Showing
57 changed files
with
1,909 additions
and
591 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/AltaSoft.DomainPrimitives.Generator/DomainPrimitiveGenerator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 0 additions & 78 deletions
78
src/AltaSoft.DomainPrimitives.Generator/Helpers/ExceptionHelper.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.