Examples of allSharedWith()


Examples of com.saasovation.collaboration.domain.model.calendar.Calendar.allSharedWith()

        assertEquals(tenantId, calendar.tenant().id());
        assertEquals(calendarId, calendar.calendarId().id());
        assertEquals("Personal Training", calendar.name());
        assertEquals("My personal training calendar.", calendar.description());
        assertEquals("owner1", calendar.owner().identity());
        assertEquals(1, calendar.allSharedWith().size());
        assertEquals("participant1", calendar.allSharedWith().iterator().next().participant().identity());
    }

    public void testRenameCalendar() throws Exception {
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.calendar.Calendar.allSharedWith()

        assertEquals(calendarId, calendar.calendarId().id());
        assertEquals("Personal Training", calendar.name());
        assertEquals("My personal training calendar.", calendar.description());
        assertEquals("owner1", calendar.owner().identity());
        assertEquals(1, calendar.allSharedWith().size());
        assertEquals("participant1", calendar.allSharedWith().iterator().next().participant().identity());
    }

    public void testRenameCalendar() throws Exception {

        Calendar calendar = this.calendarAggregate();
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.calendar.Calendar.allSharedWith()

                    .calendarOfId(
                            calendar.tenant(),
                            calendar.calendarId());

        assertNotNull(sharedCalendar);
        assertEquals(2, sharedCalendar.allSharedWith().size());

        for (CalendarSharer sharer : sharedCalendar.allSharedWith()) {
            assertTrue(sharer.participant().identity().equals("participant1") ||
                       sharer.participant().identity().equals("participant2"));
        }
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.calendar.Calendar.allSharedWith()

                            calendar.calendarId());

        assertNotNull(sharedCalendar);
        assertEquals(2, sharedCalendar.allSharedWith().size());

        for (CalendarSharer sharer : sharedCalendar.allSharedWith()) {
            assertTrue(sharer.participant().identity().equals("participant1") ||
                       sharer.participant().identity().equals("participant2"));
        }
    }
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.calendar.Calendar.allSharedWith()

                    .calendarOfId(
                            calendar.tenant(),
                            calendar.calendarId());

        assertNotNull(sharedCalendar);
        assertEquals(3, sharedCalendar.allSharedWith().size());

        Set<String> unsharerWith = new HashSet<String>(sharerWith);
        assertTrue(unsharerWith.remove("participant2"));

        calendarApplicationService
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.calendar.Calendar.allSharedWith()

                    .calendarRepository()
                    .calendarOfId(
                            calendar.tenant(),
                            calendar.calendarId());

        assertEquals(1, sharedCalendar.allSharedWith().size());
        assertEquals("participant2", sharedCalendar.allSharedWith().iterator().next().participant().identity());
    }
}
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.calendar.Calendar.allSharedWith()

                    .calendarOfId(
                            calendar.tenant(),
                            calendar.calendarId());

        assertEquals(1, sharedCalendar.allSharedWith().size());
        assertEquals("participant2", sharedCalendar.allSharedWith().iterator().next().participant().identity());
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.