Search in sources :

Example 11 with CommunityDto

use of de.symeda.sormas.api.infrastructure.community.CommunityDto 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);
}
Also used : DistrictDto(de.symeda.sormas.api.infrastructure.district.DistrictDto) CommunityDto(de.symeda.sormas.api.infrastructure.community.CommunityDto) RegionDto(de.symeda.sormas.api.infrastructure.region.RegionDto) FacilityDto(de.symeda.sormas.api.infrastructure.facility.FacilityDto)

Aggregations

CommunityDto (de.symeda.sormas.api.infrastructure.community.CommunityDto)11 DistrictDto (de.symeda.sormas.api.infrastructure.district.DistrictDto)3 FacilityDto (de.symeda.sormas.api.infrastructure.facility.FacilityDto)3 RegionDto (de.symeda.sormas.api.infrastructure.region.RegionDto)3 Date (java.util.Date)3 FacadeProvider (de.symeda.sormas.api.FacadeProvider)2 I18nProperties (de.symeda.sormas.api.i18n.I18nProperties)2 ImportErrorException (de.symeda.sormas.api.importexport.ImportErrorException)2 InvalidColumnException (de.symeda.sormas.api.importexport.InvalidColumnException)2 CommunityReferenceDto (de.symeda.sormas.api.infrastructure.community.CommunityReferenceDto)2 DistrictReferenceDto (de.symeda.sormas.api.infrastructure.district.DistrictReferenceDto)2 PointOfEntryDto (de.symeda.sormas.api.infrastructure.pointofentry.PointOfEntryDto)2 UserDto (de.symeda.sormas.api.user.UserDto)2 ValidationRuntimeException (de.symeda.sormas.api.utils.ValidationRuntimeException)2 AbstractBeanTest (de.symeda.sormas.backend.AbstractBeanTest)2 IOException (java.io.IOException)2 List (java.util.List)2 Test (org.junit.Test)2 Page (com.vaadin.server.Page)1 Alignment (com.vaadin.ui.Alignment)1