@Test public void shouldGetByProgramEquipmentId() throws Exception { service.getByProgramEquipmentId(3L); verify(repository).getByProgramEquipmentId(3L); }
public List<EquipmentTypeProduct> getByProgramEquipmentId(Long programEquipmentId){ return repository.getByProgramEquipmentId(programEquipmentId); }
ProgramEquipmentTypeProductService { public List<EquipmentTypeProduct> getByProgramEquipmentId(Long programEquipmentId){ return repository.getByProgramEquipmentId(programEquipmentId); } }
ProgramEquipmentTypeProductService { public List<EquipmentTypeProduct> getByProgramEquipmentId(Long programEquipmentId){ return repository.getByProgramEquipmentId(programEquipmentId); }  }
ProgramEquipmentTypeProductService { public List<EquipmentTypeProduct> getByProgramEquipmentId(Long programEquipmentId){ return repository.getByProgramEquipmentId(programEquipmentId); }  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<EquipmentTypeProduct> getByProgramEquipmentId(Long programEquipmentId){ return repository.getByProgramEquipmentId(programEquipmentId); }  List<EquipmentTypeProduct> getByProgramEquipmentId(Long programEquipmentId); void Save(EquipmentTypeProduct equipmentTypeProduct); void remove(Long programEquipmentId); void removeAllByEquipmentProducts(Long programEquipmentId); List<Product> getAvailableProductsToLink(Long programId, Long equipmentId);  }