DomainRegistry.calendarRepository().save(calendar);
Set<Participant> invitees = new TreeSet<Participant>();
invitees.add(new Participant("zoe", "Zoe Doe", "zoe@saasovation.com"));
CalendarEntry calendarEntry1 =
calendar.scheduleCalendarEntry(
DomainRegistry.calendarIdentityService(),
"A Doctor Checkup",
"Family Practice Offices",
new Owner("jdoe", "John Doe", "jdoe@saasovation.com"),
this.daysFromNowOneHourTimeSpan(1),
Repetition.doesNotRepeatInstance(new Date()),
this.oneHourBeforeAlarm(),
invitees);
CalendarEntry calendarEntry2 =
calendar.scheduleCalendarEntry(
DomainRegistry.calendarIdentityService(),
"A Break Replacement",
"Breaks R Us",
new Owner("jdoe", "John Doe", "jdoe@saasovation.com"),
this.daysFromNowOneHourTimeSpan(2),
Repetition.doesNotRepeatInstance(new Date()),
this.oneHourBeforeAlarm(),
invitees);
CalendarEntry calendarEntry3 =
calendar.scheduleCalendarEntry(
DomainRegistry.calendarIdentityService(),
"Dinner with Family",
"Burritos Grandes",
new Owner("jdoe", "John Doe", "jdoe@saasovation.com"),