Search Results for

    Show / Hide Table of Contents

    Fundamentals #8: Encapsulating Business Logic in the Domain

    Learn how to encapsulate business logic within your domain models to build cleaner, more maintainable applications.

    Summary

    This video introduces rich domain modeling, demonstrating how to encapsulate business logic directly within your domains using Domain Operations. Gareth shows how to implement rules and invariants inside entities to create more maintainable, testable applications that better reflect real business behavior.

    Chapters

    • Add Operations to Domain Entities (0:22)
    • Implementing the Business Logic in the Codebase (2:44)
    • Calling Domain Operations from Services (4:57)
    • Querying Domain Operations from DTOs (6:13)
    • Testing the Implementation (7:36)
    • Adding Constructors in the Domain (10:00)
    • Setting Default Values in the Domain (10:37)
    • Calling Domain Constructors from Services (11:00)
    • Inspecting the Code Changes (11:58)

    ← #7 Application Settings and Migrating to SQLite
    • Edit this page
    ☀
    ☾
    In this article
    Back to top Copyright © 2017-, Intent Software Pte Ltd.