use of alfio.repository.TicketCategoryDescriptionRepository in project alf.io by alfio-event.
the class EventManagerCategoriesTest method init.
@BeforeEach
void init() {
ticketCategoryRepository = mock(TicketCategoryRepository.class);
TicketCategoryDescriptionRepository ticketCategoryDescriptionRepository = mock(TicketCategoryDescriptionRepository.class);
EventRepository eventRepository = mock(EventRepository.class);
event = mock(Event.class);
when(event.getId()).thenReturn(eventId);
eventManager = new EventManager(null, eventRepository, null, ticketCategoryRepository, ticketCategoryDescriptionRepository, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, clockProvider(), mock(SubscriptionRepository.class));
when(eventRepository.countExistingTickets(0)).thenReturn(availableSeats);
when(event.getZoneId()).thenReturn(ZoneId.systemDefault());
}
Aggregations