← Back to all work
GitHubLearning and foundations

Cab Invoice Generator

C# fare and invoice domain modeling with normal/premium ride rules and NUnit.

STATUSHistorical learning project; current execution not revalidated in this review.
FOCUSLearning and foundations
DIAGRAM SCOPEWorkflow overview

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
Move to tilt · Drag to rotate · Arrow keysDrag to rotate · Tap a component4 components · 3 connections
2D diagram
Trace connections 3 relationships
  1. Ride recordsFare rules
  2. Fare rulesInvoice summary
  3. Invoice summaryNUnit 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

Let’s build something useful.

Start a conversation ↗