@Test public void shouldGetAllForFacility() throws Exception { service.getAllForFacility(2L); verify(repository).getAllForFacility(2L); }
public List<ServiceContract> getAllForFacility(Long facilityId){ return repository.getAllForFacility(facilityId); }
ServiceContractService { public List<ServiceContract> getAllForFacility(Long facilityId){ return repository.getAllForFacility(facilityId); } }
ServiceContractService { public List<ServiceContract> getAllForFacility(Long facilityId){ return repository.getAllForFacility(facilityId); }  }
ServiceContractService { public List<ServiceContract> getAllForFacility(Long facilityId){ return repository.getAllForFacility(facilityId); }  List<ServiceContract> getAll(); List<ServiceContract> getAllForFacility(Long facilityId); List<ServiceContract> getAllForVendor(Long vendorId); List<ServiceContract> getAllForEquipment(Long equipmentId); ServiceContract getById(Long id); void save(ServiceContract contract); }
ServiceContractService { public List<ServiceContract> getAllForFacility(Long facilityId){ return repository.getAllForFacility(facilityId); }  List<ServiceContract> getAll(); List<ServiceContract> getAllForFacility(Long facilityId); List<ServiceContract> getAllForVendor(Long vendorId); List<ServiceContract> getAllForEquipment(Long equipmentId); ServiceContract getById(Long id); void save(ServiceContract contract);  }