public CalendarApplicationService(ICalendarRepository calendarRepository, ICalendarEntryRepository calendarEntryRepository, ICollaboratorService collaboratorService)
 {
     this.calendarRepository = calendarRepository;
     this.calendarEntryRepository = calendarEntryRepository;
     this.calendarIdentityService = new CalendarIdentityService(calendarRepository, calendarEntryRepository);
     this.collaboratorService = collaboratorService;
 }
 public CalendarEntry ScheduleCalendarEntry(
     CalendarIdentityService calendarIdService,
     string description,
     string location,
     Owner owner,
     DateRange timeSpan,
     Repetition repetition,
     Alarm alarm,
     IEnumerable<Participant> invitees = null)
 {
     return new CalendarEntry(
         this.tenant,
         this.calendarId,
         calendarIdService.GetNextCalendarEntryId(),
         description,
         location,
         owner,
         timeSpan,
         repetition,
         alarm,
         invitees);
 }
Beispiel #3
0
 public CalendarEntry ScheduleCalendarEntry(
     CalendarIdentityService calendarIdService,
     string description,
     string location,
     Owner owner,
     DateRange timeSpan,
     Repetition repetition,
     Alarm alarm,
     IEnumerable <Participant> invitees = null)
 {
     return(new CalendarEntry(
                this.tenant,
                this.calendarId,
                calendarIdService.GetNextCalendarEntryId(),
                description,
                location,
                owner,
                timeSpan,
                repetition,
                alarm,
                invitees));
 }