... RepositoryFactory.GetRepository < IContactRepository, Contact > (); object contactKey = “cae9eb 86- 5a 86- 4 965 -9744-18326fd56a3b”; Contact contact = contactRepository.FindBy(contactKey); // Create a Project ... 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 discussed in Chapter 2 , is persistence ... [DeploymentItem(“SmartCA.sdf”), TestMethod()] public void RemoveTest() { // Set the Key value object key = “8b6a05be -61 06- 45fb-b6cc-b03cfa5ab74b”; // Find the Company Company company = this.repository.FindBy(key);...