Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Clean Architecture with .NET
  • Table Of Contents Toc
Clean Architecture with .NET

Clean Architecture with .NET

By : Casey Crouse, Steve "Ardalis" Smith
1 (1)
close
close
Clean Architecture with .NET

Clean Architecture with .NET

1 (1)
By: Casey Crouse, Steve "Ardalis" Smith

Overview of this book

Learn how to apply Clean Architecture in real-world .NET applications with Azure in this guide. Designed around an e-commerce project - Project Odyssey, you’ll design and build every architectural layer, from core domain logic and application orchestration to infrastructure and presentation. This book equips you to apply DDD, CQRS, MediatR, and dependency injection, enabling loosely coupled, testable systems. You’ll build reusable and modular code structures that scale with your application’s complexity and learn how to persist data using EF Core with a code-first approach, managing schema evolution with migrations while keeping infrastructure concerns isolated from your domain logic. Learn how to develop secure systems by integrating Azure External ID, Azure Key Vault, and application-level authentication and authorization. Gain practical experience with Blazor Server, Razor components, and MudBlazor UI, all integrated within a layered architecture. Learn to enforce business logic boundaries, reduce boilerplate with generic request handlers, and use real-world use cases like payment processing and shopping cart management. Whether you're new to Clean Architecture or scaling up enterprise solutions, this book provides the patterns, tools, and mindset to succeed. *Email sign-up and proof of purchase required
Table of Contents (23 chapters)
close
close
Lock Free Chapter
1
Part 1: Introduction and Overview of Clean Architecture
4
Part 2: Design and Implementation of Clean Architecture
12
Part 3: Advanced Topics in Clean Architecture
17
Part 4: Additional Topics and Resources
21
Other Books You May Enjoy
22
Index

5

Implementing the Core Layer

In this chapter, we move from design to implementation as we turn Clean Architecture principles into working code for Project Odyssey. We'll begin by reinforcing the importance of starting in the Application and Domain layers, where the core business logic resides. From there, we'll implement essential use cases that define how users interact with the system and verify their correctness through unit testing with xUnit and NSubstitute.

By the end of this chapter, you'll have seen how the concepts from previous chapters come together in cohesive, testable code that forms the backbone of the application. The following topics are covered in this chapter:

  • Why application-first is critical in Clean Architecture
  • Implementing the use cases
  • Testing the core layers using xUnit and NSubstitute
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Clean Architecture with .NET
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon