Refactor WarehouseRepo to accept a view as argument. Pass tests in HolapClientImpl test