GitHubLearning and foundations
Cab Invoice Generator
C# fare and invoice domain modeling with normal/premium ride rules and NUnit.
THE PROBLEM
What it sets out
to solve.
Aggregate ride charges while keeping fare rules explicit and testable.
THE APPROACH
How it comes
together.
Ride objects and a ride repository feed normal/premium distance-and-time calculations; invoice summaries aggregate charges and are exercised by NUnit cases.
UNDER THE HOOD
Follow the workflow.
Trace the components.
Select a node for its role in the system.
Documented implementation workflow4 COMPONENTS
INTERACTIVE 3DCab Invoice Generator
C#.NET Core 3.1NUnit
Trace connections 3 relationships
- Ride records→Fare rules
- Fare rules→Invoice summary
- Invoice summary→NUnit assertions
Select a component to see how it fits into the system.
CAPABILITIES
What’s inside.
- 01
Distance/time fares and minimum charges
- 02
Normal and premium rule variants
- 03
Ride repository and invoice summaries
- 04
NUnit tests