Package com.saasovation.collaboration.application.calendar.data

Examples of com.saasovation.collaboration.application.calendar.data.CalendarData


        calendar.shareCalendarWith(sharerJoe);

        DomainRegistry.calendarRepository().save(calendar);

        CalendarData calendarData =
                calendarQueryService.calendarDataOfId(
                        calendar.tenant().id(),
                        calendar.calendarId().id());

        assertNotNull(calendarData);
        assertEquals(calendar.calendarId().id(), calendarData.getCalendarId());
        assertEquals(calendar.description(), calendarData.getDescription());
        assertEquals(calendar.name(), calendarData.getName());
        assertEquals(calendar.owner().emailAddress(), calendarData.getOwnerEmailAddress());
        assertEquals(calendar.owner().identity(), calendarData.getOwnerIdentity());
        assertEquals(calendar.owner().name(), calendarData.getOwnerName());
        assertEquals(calendar.tenant().id(), calendarData.getTenantId());
        assertNotNull(calendarData.getSharers());
        assertFalse(calendarData.getSharers().isEmpty());
        assertEquals(2, calendarData.getSharers().size());

        for (CalendarSharerData sharer : calendarData.getSharers()) {
            if (sharer.getParticipantIdentity().equals("zoe")) {
                assertEquals(calendar.calendarId().id(), sharer.getCalendarId());
                assertEquals(sharerZoe.participant().emailAddress(), sharer.getParticipantEmailAddress());
                assertEquals(sharerZoe.participant().identity(), sharer.getParticipantIdentity());
                assertEquals(sharerZoe.participant().name(), sharer.getParticipantName());
View Full Code Here

TOP

Related Classes of com.saasovation.collaboration.application.calendar.data.CalendarData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.