public void GetTerritoryGetsHospitalPartnerOwnerIdsForHospitalPartnerTerritory() { var expectedHospitalPartnerIds = new List <long> { 1 }; Territory territory = _territoryRepository.GetTerritory(HOSPITAL_PARTNER_TERRITORY_ID_WITH_ZIPS); Assert.IsInstanceOf <HospitalPartnerTerritory>(territory, "Incorrect type of territory given: ", territory.GetType()); Assert.AreEqual(expectedHospitalPartnerIds, ((HospitalPartnerTerritory)territory).HospitalPartnerOwnerIds, "Incorrect Hospital Partner Owner IDs returned."); }
public void GetTerritoryGetsFranchiseeOwnerIdForFranchiseeTerritory() { const long expectedFranchiseeOwnerId = 97; Territory territory = _territoryRepository.GetTerritory(FRANCHISEE_TERRITORY_ID_WITH_ZIPS); Assert.IsInstanceOf <FranchiseeTerritory>(territory, "Incorrect type of territory given: ", territory.GetType()); Assert.AreEqual(expectedFranchiseeOwnerId, ((FranchiseeTerritory)territory).FranchiseeOwnerId, "Incorrect Franchisee Owner ID returned."); }