public void FixtureSetup_Succeeds() { Assert.IsTrue(SafeHarborAgency.Key > 0); AgencyAddressAndPhone addressAndPhone = SafeHarborAgency.AddressesAndPhones.Single(); Assert.IsTrue(addressAndPhone.Key > 0); AgencyPhone tollFreeNumber = addressAndPhone.PhoneNumbers.Where(a => a.AgencyPhoneType == TollFreeAgencyPhoneType).Single(); Assert.IsTrue(tollFreeNumber.Key > 0); AgencyPhone faxNumber = addressAndPhone.PhoneNumbers.Where(a => a.AgencyPhoneType == FaxAgencyPhoneType).Single(); Assert.IsTrue(faxNumber.Key > 0); Assert.IsTrue(LeoSmithStaff.Key > 0); Assert.IsTrue(WendyJonesStaff.Key > 0); Assert.IsTrue(SheilaAndersonStaff.Key > 0); Assert.IsTrue(BethKnoxStaff.Key > 0); Assert.IsTrue(AnthonyBellStaff.Key > 0); AgencyIdentifier npiIdentifier = SafeHarborAgency.AgencyIdentifiers.Single(); Assert.IsTrue(npiIdentifier.Key > 0); Assert.IsTrue(AlbertSmithPatient.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseOne.Key > 0); Assert.IsTrue(AlbertSmithPatientAllergyOne.Key > 0); Assert.IsTrue(AlbertSmithPatientMedicationOne.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseOne.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseTwo.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseOneProblemOne.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseOneProblemTwo.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseOneVisitOne.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseOneVisitTwo.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseOneVisitThree.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseOneVisitFour.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseOneVisitOneLabSpecimenOne.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseOneVisitOneLabSpecimenTwo.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseOneVisitOneLabSpecimenOneLabTestOne.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseOneVisitOneLabSpecimenOneLabTestTwo.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseOneVisitOneLabSpecimenOneLabTestOneLabResultOne.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseOneVisitOneLabSpecimenOneLabTestOneLabResultTwo.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseOneVisitFourImmunizationOne.Key > 0); Assert.IsTrue(AlbertSmithPatientClinicalCaseOneVisitOneVitalSignOne.Key > 0); }
private static void RemoveAgencyIdentifier(AgencyIdentifierDto agencyIdentifierDto, Agency agency, AgencyIdentifier agencyIdentifier) { agency.RemoveIdentifier(agencyIdentifier); }
private void ChangeAgencyIdentifier(AgencyIdentifierDto agencyIdentifierDto, Agency agency, AgencyIdentifier agencyIdentifier) { RemoveAgencyIdentifier(agencyIdentifierDto, agency, agencyIdentifier); AddAgencyIdentifier(agencyIdentifierDto, agency); }