Composite objects – (how) do you assert them?
Let me start with a code sample (in java) that will demonstrate what I am going to talk about: … private IMAPService _mapService; public RealEstateField createField(List<Coordinate> coordinates) { RealEstateField field = new RealEstateField(); field.setCoordinates(coordinates)); field.setAddress(_mapService.findAddress(coordinates)); double surface = _mapService.calcSurface(coordinates)); field.setSurface(surface); field.setCenter(_mapService.findCenter(coordinates)); field.setPrice(surface * _pricePerMeter); //… […]