public void CreatePatientContact_GivenValidArguments_ContactIsEditable() { using (var serviceLocatorFixture = new ServiceLocatorFixture()) { // Setup SetupServiceLocatorFixture(serviceLocatorFixture); var patientContactRepository = new Mock <IPatientContactRepository>(); var patientContactFactory = new PatientContactFactory( patientContactRepository.Object); var patient = new Mock <Patient>(); PatientContact patientContact = patientContactFactory.CreatePatientContact( patient.Object, "Fred", "Smith"); patientContact.ReviseNote("some note"); } }
private bool MapProperties(PatientContact patientContact, PatientContactProfileDto patientContactDto) { patientContact.RenamePatientContact(patientContactDto.FirstName, patientContactDto.MiddleName, patientContactDto.LastName); patientContact.ReviseCanContactIndicator(patientContactDto.CanContactIndicator); patientContact.ReviseConsentExpirationDate(patientContactDto.ConsentExpirationDate); patientContact.ReviseConsentOnFileIndicator(patientContactDto.ConsentOnFileIndicator); patientContact.ReviseLegalAuthorizationType( _mappingHelper.MapLookupField <LegalAuthorizationType> (patientContactDto.LegalAuthorizationType)); patientContact.ReviseNote(patientContactDto.Note); patientContact.RevisePrimaryIndicator(patientContactDto.PrimaryIndicator); patientContact.RevisePatientContactRelationshipType(_mappingHelper.MapLookupField <PatientContactRelationshipType> (patientContactDto.PatientContactRelationshipType)); patientContact.ReviseSocialSecurityNumber(patientContactDto.SocialSecurityNumber); patientContact.ReviseEmergencyIndicator(patientContactDto.EmergencyIndicator); patientContact.ReviseDesignatedFollowUpIndicator(patientContactDto.DesignatedFollowUpIndicator); patientContact.ReviseGender(_mappingHelper.MapLookupField <Gender> (patientContactDto.Gender)); patientContact.ReviseBirthDate(patientContactDto.BirthDate); return(true); }