Examples of tenant()


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

        DomainRegistry.calendarRepository().save(calendar);

        calendarApplicationService
            .changeCalendarDescription(
                    calendar.tenant().id(),
                    calendar.calendarId().id(),
                    "This is a changed description.");

        Calendar changedCalendar =
                DomainRegistry
View Full Code Here

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

                    .calendarOfId(
                            new Tenant(tenantId),
                            new CalendarId(calendarId));

        assertNotNull(calendar);
        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());
View Full Code Here

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

        DomainRegistry.calendarRepository().save(calendar);

        calendarApplicationService
            .renameCalendar(
                    calendar.tenant().id(),
                    calendar.calendarId().id(),
                    "My Training Calendar");

        Calendar changedCalendar =
                DomainRegistry
View Full Code Here

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

        Date nextWeek = new Date(now.getTime() + (86400000L * 7L));
        Date nextWeekPlusOneHour = new Date(nextWeek.getTime() + (1000 * 60 * 60));

        calendarApplicationService
            .scheduleCalendarEntry(
                    calendar.tenant().id(),
                    calendar.calendarId().id(),
                    "My annual checkup appointment",
                    "Family Health Offices",
                    "owner1",
                    nextWeek,
View Full Code Here

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

        CalendarEntry calendarEntry =
                DomainRegistry
                    .calendarEntryRepository()
                    .calendarEntryOfId(
                            calendar.tenant(),
                            new CalendarEntryId(calendarEntryId));

        assertNotNull(calendarEntry);
        assertEquals("My annual checkup appointment", calendarEntry.description());
        assertEquals("Family Health Offices", calendarEntry.location());
View Full Code Here

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

        sharerWith.add("participant1");
        sharerWith.add("participant2");

        calendarApplicationService
            .shareCalendarWith(
                    calendar.tenant().id(),
                    calendar.calendarId().id(),
                    sharerWith);

        Calendar sharedCalendar =
                DomainRegistry
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.calendar.CalendarEntry.tenant()

        invitees.add("participant2");
        invitees.add("participant3");

        calendarEntryApplicationService
            .inviteCalendarEntryParticipant(
                    calendarEntry.tenant().id(),
                    calendarEntry.calendarEntryId().id(),
                    invitees);

        CalendarEntry changedCalendarEntry =
                DomainRegistry
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.calendar.CalendarEntry.tenant()

        DomainRegistry.calendarEntryRepository().save(calendarEntry);

        calendarEntryApplicationService
            .relocateCalendarEntry(
                    calendarEntry.tenant().id(),
                    calendarEntry.calendarEntryId().id(),
                    "A changed calendar entry location.");

        CalendarEntry changedCalendarEntry =
                DomainRegistry
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.calendar.CalendarEntry.tenant()

        Date nextWeek = new Date(now.getTime() + (86400000L * 7L));
        Date nextWeekAndOneHour = new Date(nextWeek.getTime() + (1000 * 60 * 60));

        calendarEntryApplicationService
            .rescheduleCalendarEntry(
                    calendarEntry.tenant().id(),
                    calendarEntry.calendarEntryId().id(),
                    "A changed description.",
                    "A changed location.",
                    nextWeek,
                    nextWeekAndOneHour,
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.calendar.CalendarEntry.tenant()

        invitees.add("participant2");
        invitees.add("participant3");

        calendarEntryApplicationService
            .inviteCalendarEntryParticipant(
                    calendarEntry.tenant().id(),
                    calendarEntry.calendarEntryId().id(),
                    invitees);

        Set<String> uninvitees = new HashSet<String>(invitees);
        assertTrue(uninvitees.remove("participant2"));
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.