@Test public void shouldGetAvailableProductsToLink() throws Exception { service.getAvailableProductsToLink(4L, 6L); verify(repository).getAvailableProductsToLink(4L, 6L); }
public List<Product> getAvailableProductsToLink(Long programId, Long equipmentId) { return repository.getAvailableProductsToLink(programId, equipmentId); }
ProgramEquipmentTypeProductService { public List<Product> getAvailableProductsToLink(Long programId, Long equipmentId) { return repository.getAvailableProductsToLink(programId, equipmentId); } }
ProgramEquipmentTypeProductService { public List<Product> getAvailableProductsToLink(Long programId, Long equipmentId) { return repository.getAvailableProductsToLink(programId, equipmentId); }  }
ProgramEquipmentTypeProductService { public List<Product> getAvailableProductsToLink(Long programId, Long equipmentId) { return repository.getAvailableProductsToLink(programId, equipmentId); }  List<EquipmentTypeProduct> getByProgramEquipmentId(Long programEquipmentId); void Save(EquipmentTypeProduct equipmentTypeProduct); void remove(Long programEquipmentId); void removeAllByEquipmentProducts(Long programEquipmentId); List<Product> getAvailableProductsToLink(Long programId, Long equipmentId); }
ProgramEquipmentTypeProductService { public List<Product> getAvailableProductsToLink(Long programId, Long equipmentId) { return repository.getAvailableProductsToLink(programId, equipmentId); }  List<EquipmentTypeProduct> getByProgramEquipmentId(Long programEquipmentId); void Save(EquipmentTypeProduct equipmentTypeProduct); void remove(Long programEquipmentId); void removeAllByEquipmentProducts(Long programEquipmentId); List<Product> getAvailableProductsToLink(Long programId, Long equipmentId);  }