1

new eventbuilderservice + projectionservice + searchservice, some renamings etc

This commit is contained in:
Christoph
2020-04-06 00:07:46 +02:00
parent 5a5d1586ed
commit 3d66f58af8
17 changed files with 503 additions and 389 deletions

View File

@ -38,7 +38,7 @@ class ControllerServiceTest {
Account account2;
Account account3;
ControllerService controllerService;
EventService eventService;
EventStoreService eventStoreService;
UserService userService;
ValidationService validationService;
@Autowired
@ -46,14 +46,18 @@ class ControllerServiceTest {
GroupService groupService;
@Autowired
InviteService inviteService;
@Autowired
SearchService searchService;
@Autowired
ProjectionService projectionService;
@BeforeEach
void setUp() {
eventService = new EventService(eventRepository);
groupService = new GroupService(eventService, eventRepository);
userService = new UserService(groupService, eventService);
validationService = new ValidationService(userService, groupService);
controllerService = new ControllerService(eventService, userService, validationService, inviteService);
eventStoreService = new EventStoreService(eventRepository);
groupService = new GroupService(eventStoreService, eventRepository);
userService = new UserService(groupService, eventStoreService, projectionService);
validationService = new ValidationService(userService, searchService);
controllerService = new ControllerService(eventStoreService, userService, validationService, inviteService);
Set<String> roles = new HashSet<>();
roles.add("l");
account = new Account("ich", "ich@hhu.de", "l", "ichdude", "jap", roles);