Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 435 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
435
Dung lượng
6,7 MB
Nội dung
[...]... Problem The Design 265 266 Designing the Domain Model Designing the Change Order Aggregate Defining the Aggregate Boundaries Designing the Repository Writing the Unit Tests The Solution The The The The Change Change Change Change 271 Order Order Order Order Repository Implementation Service Implementation View Model Class View Summary The Problem The Design 295 295 295 Designing the Domain Model Designing... Synchronizing With the Server The Problem The Design Redesigning the Unit of Work Designing the Synchronization Writing the Unit Tests 300 307 313 314 324 325 327 327 327 328 330 331 xii ftoc.indd xii 3/20/08 2:05:44 PM Contents The Solution Unit of Work Refactoring Synchronizing with the Synchronizer Class Summary Chapter 11: The Client Membership System The Problem The Design Password Security Designing... API will enable It should be noted that I will not be talking much about databases in this book, since the focus of this book is on Domain- DrivenDesign One of the main tenants of Domain- DrivenDesign is persistence ignorance, and therefore, while the application is being designed, as far as you and I are concerned, the data could be coming from a text file Therefore, from this point on, I will only... 2:57:30 PM Introduction After reading Eric Evans’ book Domain- Driven Design, Tackling Complexity in the Heart of Software, my way of designing software systems completely changed Before that, I used to design software object models in a very data-centric way, and I did not really focus on how to combine behavior and data in objects I was so inspired with this new way of thinking that I started trying... along came Jimmy Nilsson’s book Applying Domain- DrivenDesign and Patterns, and it was then that I started to see a lot more of the patterns that could be used in conjunction with the DDD concepts Jimmy tied together some of the concepts from Martin Fowler ’s excellent book Patterns of Enterprise Application Architecture and showed how they could help with good DDD design principles Jimmy also did a great... with Generics Chapter 10, “Synchronizing with the Server” — In this chapter, I design and implement how to synchronize the client’s offline data with the server I show how to store transaction messages on the client, and also show how to synchronize those messages on the client with the messages on the server I also show how to make sure that all of the synchronization logic is implemented in the domain. .. 2: Designing the Layered Architecture The Problem The Design Designing the Visual Studio Solution Designing the Architectural Layers The Solution Implementing the Visual Studio Solution Implementing the Architectural Layers Summary ftoc.indd ix xv xvii 1 1 4 4 5 5 5 5 5 5 5 6 6 7 9 11 11 11 13 13 13 13 14 18 19 19 53 3/20/08 2:05:43 PM Contents Chapter 3: Managing Projects The Problem The Design Designing... the Domain Model Defining the Project Aggregate Defining the Aggregate Boundaries Designing the Repositories Writing the Unit Tests The Solution The The The The The Project Class Repository Implementations Service Class Implementations Project Information ViewModel Implementation Project Information View Implementation Summary Chapter 4: Companies and Contacts The Problem The Design Designing the Domain. .. 2:05:44 PM Contents Defining the Aggregate Boundaries Designing the Repository Writing the Unit Tests The Solution The The The The Submittal Submittal Submittal Submittal 164 Repository Implementation Service Implementation View Model View Summary The Problem The Design Designing the Domain Model Defining the RFI Aggregate Defining the Aggregate Boundaries Designing the Repository Writing the Unit Tests... module with a problem, design, and solution that adds some new aspect of functionality to the application that is being built, followed by a summary at the end of the chapter Most of the time, the Problem sections are fairly short, whereas the Design and Solution sections make up most of the bulk of the chapters The Solution section will always contain the code that implements what was designed in the Design .