public CalendarEntry( Tenant tenant, CalendarId calendarId, CalendarEntryId calendarEntryId, string description, string location, Owner owner, DateRange timeSpan, Repetition repetition, Alarm alarm, IEnumerable <Participant> invitees = null) { AssertionConcern.AssertArgumentNotNull(tenant, "The tenant must be provided."); AssertionConcern.AssertArgumentNotNull(calendarId, "The calendar id must be provided."); AssertionConcern.AssertArgumentNotNull(calendarEntryId, "The calendar entry id must be provided."); AssertionConcern.AssertArgumentNotEmpty(description, "The description must be provided."); AssertionConcern.AssertArgumentNotEmpty(location, "The location must be provided."); AssertionConcern.AssertArgumentNotNull(owner, "The owner must be provided."); AssertionConcern.AssertArgumentNotNull(timeSpan, "The time span must be provided."); AssertionConcern.AssertArgumentNotNull(repetition, "The repetition must be provided."); AssertionConcern.AssertArgumentNotNull(alarm, "The alarm must be provided."); if (repetition.Repeats == RepeatType.DoesNotRepeat) { repetition = Repetition.DoesNotRepeat(timeSpan.Ends); } AssertTimeSpans(repetition, timeSpan); Apply(new CalendarEntryScheduled(tenant, calendarId, calendarEntryId, description, location, owner, timeSpan, repetition, alarm, invitees)); }
public CalendarEntry( Tenant tenant, CalendarId calendarId, CalendarEntryId calendarEntryId, string description, string location, Owner owner, DateRange timeSpan, Repetition repetition, Alarm alarm, IEnumerable<Participant> invitees = null) { AssertionConcern.AssertArgumentNotNull(tenant, "The tenant must be provided."); AssertionConcern.AssertArgumentNotNull(calendarId, "The calendar id must be provided."); AssertionConcern.AssertArgumentNotNull(calendarEntryId, "The calendar entry id must be provided."); AssertionConcern.AssertArgumentNotEmpty(description, "The description must be provided."); AssertionConcern.AssertArgumentNotEmpty(location, "The location must be provided."); AssertionConcern.AssertArgumentNotNull(owner, "The owner must be provided."); AssertionConcern.AssertArgumentNotNull(timeSpan, "The time span must be provided."); AssertionConcern.AssertArgumentNotNull(repetition, "The repetition must be provided."); AssertionConcern.AssertArgumentNotNull(alarm, "The alarm must be provided."); if (repetition.Repeats == RepeatType.DoesNotRepeat) repetition = Repetition.DoesNotRepeat(timeSpan.Ends); AssertTimeSpans(repetition, timeSpan); Apply(new CalendarEntryScheduled(tenant, calendarId, calendarEntryId, description, location, owner, timeSpan, repetition, alarm, invitees)); }
public CalendarEntryDescriptionChanged( Tenant tenant, CalendarId calendarId, CalendarEntryId calendarEntryId, string description) { this.Tenant = tenant; this.CalendarId = calendarId; this.CalendarEntryId = calendarEntryId; this.Description = description; }
public CalendarEntryRelocated( Tenant tenant, CalendarId calendarId, CalendarEntryId calendarEntryId, string location) { this.Tenant = tenant; this.CalendarId = calendarId; this.CalendarEntryId = calendarEntryId; this.Location = location; }
public CalendarEntryDescriptionChanged( Tenant tenant, CalendarId calendarId, CalendarEntryId calendarEntryId, string description) { Tenant = tenant; CalendarId = calendarId; CalendarEntryId = calendarEntryId; Description = description; }
public CalendarEntryRelocated( Tenant tenant, CalendarId calendarId, CalendarEntryId calendarEntryId, string location) { this.Tenant = tenant; this.CalendarId = calendarId; this.CalendarEntryId = calendarEntryId; this.Location = location; }
public CalendarEntryParticipantInvited( Tenant tenant, CalendarId calendarId, CalendarEntryId calendarEntryId, Participant participant) { Tenant = tenant; CalendarId = calendarId; CalendarEntryId = calendarEntryId; Participant = participant; }
public CalendarEntryDescriptionChanged( Tenant tenant, CalendarId calendarId, CalendarEntryId calendarEntryId, string description) { this.Tenant = tenant; this.CalendarId = calendarId; this.CalendarEntryId = calendarEntryId; this.Description = description; }
public CalendarEntryRelocated( Tenant tenant, CalendarId calendarId, CalendarEntryId calendarEntryId, string location) { Tenant = tenant; CalendarId = calendarId; CalendarEntryId = calendarEntryId; Location = location; }
public CalendarEntryParticipantUninvited( Tenant tenant, CalendarId calendarId, CalendarEntryId calendarEntryId, Participant participant) { this.Tenant = tenant; this.CalendarId = calendarId; this.CalendarEntryId = calendarEntryId; this.Participant = participant; }
public CalendarEntryParticipantInvited( Tenant tenant, CalendarId calendarId, CalendarEntryId calendarEntryId, Participant participant) { this.Tenant = tenant; this.CalendarId = calendarId; this.CalendarEntryId = calendarEntryId; this.Participant = participant; }
void When(CalendarEntryScheduled e) { this.tenant = e.Tenant; this.calendarId = e.CalendarId; this.calendarEntryId = e.CalendarEntryId; this.description = e.Description; this.location = e.Location; this.owner = e.Owner; this.timeSpan = e.TimeSpan; this.repetition = e.Repetition; this.alarm = e.Alarm; this.invitees = new HashSet <Participant>(e.Invitees ?? Enumerable.Empty <Participant>()); }
private void When(CalendarEntryScheduled e) { _tenant = e.Tenant; _calendarId = e.CalendarId; _calendarEntryId = e.CalendarEntryId; _description = e.Description; _location = e.Location; _owner = e.Owner; _timeSpan = e.TimeSpan; _repetition = e.Repetition; _alarm = e.Alarm; _invitees = new HashSet <Participant>(e.Invitees ?? Enumerable.Empty <Participant>()); }
void When(CalendarEntryScheduled e) { this.tenant = e.Tenant; this.calendarId = e.CalendarId; this.calendarEntryId = e.CalendarEntryId; this.description = e.Description; this.location = e.Location; this.owner = e.Owner; this.timeSpan = e.TimeSpan; this.repetition = e.Repetition; this.alarm = e.Alarm; this.invitees = new HashSet<Participant>(e.Invitees ?? Enumerable.Empty<Participant>()); }
public CalendarEntryRescheduled( Tenant tenant, CalendarId calendarId, CalendarEntryId calendarEntryId, DateRange timeSpan, Repetition repetition, Alarm alarm) { this.Tenant = tenant; this.CalendarId = calendarId; this.CalendarEntryId = calendarEntryId; this.TimeSpan = timeSpan; this.Repetition = repetition; this.Alarm = alarm; }
public CalendarEntryRescheduled( Tenant tenant, CalendarId calendarId, CalendarEntryId calendarEntryId, DateRange timeSpan, Repetition repetition, Alarm alarm) { Tenant = tenant; CalendarId = calendarId; CalendarEntryId = calendarEntryId; TimeSpan = timeSpan; Repetition = repetition; Alarm = alarm; }
public CalendarEntryRescheduled( Tenant tenant, CalendarId calendarId, CalendarEntryId calendarEntryId, DateRange timeSpan, Repetition repetition, Alarm alarm) { this.Tenant = tenant; this.CalendarId = calendarId; this.CalendarEntryId = calendarEntryId; this.TimeSpan = timeSpan; this.Repetition = repetition; this.Alarm = alarm; }
public CalendarEntryScheduled( Tenant tenant, CalendarId calendarId, CalendarEntryId calendarEntryId, string description, string location, Owner owner, DateRange timeSpan, Repetition repetition, Alarm alarm, IEnumerable<Participant> invitees) { this.Tenant = tenant; this.CalendarId = calendarId; this.CalendarEntryId = calendarEntryId; this.Description = description; this.Location = location; this.Owner = owner; this.TimeSpan = timeSpan; this.Repetition = repetition; this.Alarm = alarm; this.Invitees = invitees; }
public CalendarEntryScheduled( Tenant tenant, CalendarId calendarId, CalendarEntryId calendarEntryId, string description, string location, Owner owner, DateRange timeSpan, Repetition repetition, Alarm alarm, IEnumerable <Participant> invitees) { Tenant = tenant; CalendarId = calendarId; CalendarEntryId = calendarEntryId; Description = description; Location = location; Owner = owner; TimeSpan = timeSpan; Repetition = repetition; Alarm = alarm; Invitees = invitees; }