... PM3/17/08 2:37:05 PM
.NET Domain-Driven
Design with C#
Problem – Design – Solution
Tim McCarthy
Wiley Publishing, Inc.
ffirs.indd iiiffirs.indd iii 4/14/08 10: 39: 48 AM4/14/08 10: 39: 48 AM
Contents
x
Chapter ... Implementations 90
The Project Information ViewModel Implementation 92
The Project Information View Implementation 102
Summary 107
Chapter 4: Companies an...
... [DeploymentItem(“SmartCA.sdf”), TestMethod()]
public void UpdateTest()
{
// Set the Key value
object key = “ 594 27e22-0c9e-4821 -95 d6-9c9f541bf37a”;
// Find the Company
Company company = this.repository.FindBy(key);
...
be on the domain model. If the domain model is designed properly, it can handle this problem.
Remember, one of the tenets of Domain - Driven Design, which I disc...
... RollDrawings,
FilingCabinet,
FilingCabinetUnderSubmittalNumber,
Other
}
}
This property indicates the location of the rest of the items associated with the Submittal. This is for
Smart Design ’ s use ... refactoring going on with the
ProjectRepository and the new ViewModel
classes.
c04.indd 156c04.indd 156 3/18/08 5:14: 29 PM3/18/08 5:14: 29 PM
Chapter 4: Companies and Conta...
... particularly
with the service classes being used almost like a fa ç ade in front of the repositories from all of the
ViewModel classes.
c05.indd 197 c05.indd 197 3/18/08 5:15: 49 PM3/18/08 5:15: 49 PM
Chapter ... /DataTemplate >
< /xcdg:TableView.Footers >
(continued)
c05.indd 196 c05.indd 196 3/18/08 5:15: 49 PM3/18/08 5:15: 49 PM
Proposal Requests
In the last chapte...
... Create a new ProposalRequest
(continued)
c07.indd 239c07.indd 2 39 3/18/08 5:17:32 PM3/18/08 5:17:32 PM
Chapter 7: Proposal Requests
242
The Solution
Now for the fun part! I have just shown ... Proposal Request came, and with which
Contractor it is associated. The “ To ” class represents for what Project Contact the Proposal Request is
intended.
Just as with the Submittal Transm...
... sections, I will be designing the domain model, determining the Change Order
Aggregate and its boundaries, and designing the Repository for Change Orders.
c 09. indd 295 c 09. indd 295 3/18/08 5:56:03 ... hand with the
DescriptionSpecification < TCandidate > class, and I will
cover both of these later in the chapter.
c 09. indd 297 c 09. indd 297 3/18/08 5:56:04 PM3/18/08 5:56:04...