-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
19 lines (15 loc) · 842 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from domain.event import Event
from domain.participant import Participant
from repository.repository import Repository
from service.event_service import EventService
from service.participant_service import ParticipantService
from service.utility_service import UtilityService
from ui.console import ConsoleUI
import datetime
event_repository = Repository([Event("Untold Event", "Untold", "Cluj-Napoca", 12, 55, datetime.date(2023, 7, 29), datetime.date(2023, 12, 6)),
Event("Electric Castle Event", "Electric", "Cluj-Napoca", 32, 55, datetime.date(2023, 7, 29), datetime.date(2023, 7, 30))])
participant_repository = Repository([])
event_service = EventService(event_repository)
participant_service = ParticipantService(participant_repository)
ui = ConsoleUI(event_service, participant_service)
ui.run()