All Tasks
Buildintermediate
60 min

Build the OrderFlow Domain Layer

Start from a blank classlib project named OrderFlow.Domain. Implement the four core entities (Order, OrderLine, Product, Customer) with private constructors, factory methods, and encapsulated business rules. The domain should enforce: orders can't be confirmed when empty, stock can't go negative, order lines can't be added to a non-Draft order.

Your progress0%

Requirements

Skills you'll use

.NETDomain-Driven DesignClean ArchitectureC#

Read this first

This task is based on the lesson below. Complete the reading before attempting it.

Go to lesson

What to expect

Difficulty
intermediate
Time
60 min
Steps
6
Type
Build