public CalendarUnshared(Tenant tenant, CalendarId calendarId, string name, CalendarSharer unsharedWith) { this.Tenant = tenant; this.CalendarId = calendarId; this.Name = name; this.UnsharedWith = unsharedWith; }
public CalendarShared(Tenant tenant, CalendarId calendarId, string name, CalendarSharer sharedWith) { Tenant = tenant; CalendarId = calendarId; Name = name; SharedWith = sharedWith; }
public void ShareCalendarWith(CalendarSharer calendarSharer) { AssertionConcern.AssertArgumentNotNull(calendarSharer, "The calendar sharer must be provided."); if (!this.sharedWith.Contains(calendarSharer)) { Apply(new CalendarShared(this.tenant, this.calendarId, this.name, calendarSharer)); } }
public void UnshareCalendarWith(CalendarSharer calendarSharer) { AssertionConcern.AssertArgumentNotNull(calendarSharer, "The calendar sharer must be provided."); if (_sharedWith.Contains(calendarSharer)) { Apply(new CalendarUnshared(_tenant, _calendarId, _name, calendarSharer)); } }