Refactor CompletedOrder_TotalIsCorrect to express intent with IsFullyPaid()

This commit is contained in:
2026-10-01 11:38:06 +01:00
parent 9f7d4e6a4f
commit 98f649f46b
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -15,4 +15,7 @@ public class Order
=> Lines[lineIndex].ApplyDiscount();
public void Complete() => IsCompleted = true;
public bool IsFullyPaid(decimal expectedTotal)
=> IsCompleted && Total == expectedTotal;
}