use of de.metas.handlingunits.reservation.HUReservationRepository in project metasfresh-webui-api by metasfresh.
the class PickingV2TestHelper method createProductsToPickRowsDataFactory.
public ProductsToPickRowsDataFactory createProductsToPickRowsDataFactory() {
final IBPartnerBL bpartnersService = createAndRegisterBPartnerBL();
final HUReservationRepository huReservationRepository = new HUReservationRepository();
final HUReservationService huReservationService = new HUReservationService(huReservationRepository);
final PickingCandidateRepository pickingCandidateRepository = new PickingCandidateRepository();
final HUTraceRepository huTraceRepository = new HUTraceRepository();
final HuId2SourceHUsService sourceHUsRepository = new HuId2SourceHUsService(huTraceRepository);
final PickingCandidateService pickingCandidateService = new PickingCandidateService(new PickingConfigRepository(), pickingCandidateRepository, sourceHUsRepository);
return ProductsToPickRowsDataFactory.builder().bpartnersService(bpartnersService).huReservationService(huReservationService).pickingCandidateService(pickingCandidateService).locatorLookup(this::generateLocatorLookupById).build();
}
Aggregations