use of de.symeda.sormas.api.infrastructure.region.RegionDto in project SORMAS-Project by hzi-braunschweig.
the class TestDataCreator method createRDCF.
public RDCF createRDCF(String regionName, String districtName, String communityName, String facilityName) {
RegionDto region = createRegion(regionName);
DistrictDto district = createDistrict(districtName, region.toReference());
CommunityDto community = createCommunity(communityName, district.toReference());
FacilityDto facility = createFacility(facilityName, region.toReference(), district.toReference(), community.toReference());
return new RDCF(region, district, community, facility);
}
use of de.symeda.sormas.api.infrastructure.region.RegionDto in project SORMAS-Project by hzi-braunschweig.
the class TestDataCreator method createRegion.
public RegionDto createRegion(String regionName) {
RegionDto region = RegionDto.build();
region.setUuid(DataHelper.createUuid());
region.setName(regionName);
FacadeProvider.getRegionFacade().save(region);
return region;
}
Aggregations