MicroSwift.Chassis.Domain provides essential domain primitives for DDD (Domain-Driven Design) applications, such as entities, value objects, aggregate roots, and domain events.
- AggregateRoot
- ValueObject
- Entity
- IDomainEvent
To install MicroSwift.Chassis.Domain, add the following package reference to your .csproj file:
<ItemGroup>
<PackageReference Include="MicroSwift.Chassis.Domain" Version="1.0.0" />
</ItemGroup>
Alternatively, you can install it via NuGet Package Manager:
dotnet add package MicroSwift.Chassis.Domain
Contributions are welcome! If you have any ideas, suggestions, or improvements for the MicroSwift.Chassis.Domain, please feel free to submit a pull request or open an issue on GitHub.
This project is licensed under the MIT License - see the LICENSE file for details.
To build the project, run:
dotnet build
To run the tests and see the code coverage, execute:
dotnet test --collect:"XPlat Code Coverage"
To use ReportGenerator for generating code coverage reports, you'll need to install it globally using .NET CLI tooling. Run the following command in your terminal:
dotnet tool install -g dotnet-reportgenerator-globaltool
Code coverage reports can be generated using the provided script generate_coverage_reports.sh. This script will search for coverage report files (coverage.cobertura.xml) in the current directory and its subdirectories, and then generate HTML reports for each file.
To execute the script, run the following command in your terminal from the root directory of the project:
./generate_coverage_reports.sh