@Test public void shouldGetRefrigeratorsForADeliveryZoneAndProgram() throws Exception { service.getRefrigeratorsForADeliveryZoneAndProgram(1L, 1L); verify(repository).getRefrigeratorsForADeliveryZoneAndProgram(1L, 1L); }
public List<Refrigerator> getRefrigeratorsForADeliveryZoneAndProgram(Long deliveryZoneId, Long programId) { return repository.getRefrigeratorsForADeliveryZoneAndProgram(deliveryZoneId, programId); }
RefrigeratorService { public List<Refrigerator> getRefrigeratorsForADeliveryZoneAndProgram(Long deliveryZoneId, Long programId) { return repository.getRefrigeratorsForADeliveryZoneAndProgram(deliveryZoneId, programId); } }
RefrigeratorService { public List<Refrigerator> getRefrigeratorsForADeliveryZoneAndProgram(Long deliveryZoneId, Long programId) { return repository.getRefrigeratorsForADeliveryZoneAndProgram(deliveryZoneId, programId); }  }
RefrigeratorService { public List<Refrigerator> getRefrigeratorsForADeliveryZoneAndProgram(Long deliveryZoneId, Long programId) { return repository.getRefrigeratorsForADeliveryZoneAndProgram(deliveryZoneId, programId); }  List<Refrigerator> getRefrigeratorsForADeliveryZoneAndProgram(Long deliveryZoneId, Long programId); void disableAllFor(Long facilityId); List<Refrigerator> getAllBy(Long facilityId); void save(Refrigerator refrigerator); }
RefrigeratorService { public List<Refrigerator> getRefrigeratorsForADeliveryZoneAndProgram(Long deliveryZoneId, Long programId) { return repository.getRefrigeratorsForADeliveryZoneAndProgram(deliveryZoneId, programId); }  List<Refrigerator> getRefrigeratorsForADeliveryZoneAndProgram(Long deliveryZoneId, Long programId); void disableAllFor(Long facilityId); List<Refrigerator> getAllBy(Long facilityId); void save(Refrigerator refrigerator);  }