Week 2 Part I · C# and .NET Foundations
Instructor lesson plan: lecture (2 h) and practice (2 h).
C# 12+domain examplesLINQLINQPad optional
| 0:00-0:10 | 10 min | Recap and retrieval
|
| 0:10-0:35 | 25 min | Modern C# type choices
|
| 0:35-1:00 | 25 min | Generics and reusable policies
|
| 1:00-1:10 | 10 min | LINQ and exceptionsQueries, transformations, and domain-specific failures. |
| 1:10-1:20 | 10 min | Break |
| 1:20-1:45 | 25 min | Async and await at boundaries
|
| 1:45-2:00 | 15 min | From use case to modelTurn a use-case sentence into entities, value objects, and first invariants. |
Students often think: a record is always better because it is shorter.
Set it straight: records are excellent for values and immutable data. Entities with identity and lifecycle need explicit modelling.
| 0:00-0:15 | 15 min | Warm-up kata
|
| 0:15-0:50 | 35 min | Domain entities
|
| 0:50-1:10 | 20 min | LINQ and collections
|
| 1:10-1:20 | 10 min | Break |
| 1:20-1:50 | 30 min | Domain-rule examples
|
| 1:50-2:00 | 10 min | Project-integration briefCommit initial domain entities, value objects, and rule examples. |