public CalendarUnshared(Tenant tenant, CalendarId calendarId, string name, CalendarSharer unsharedWith)
 {
     this.Tenant       = tenant;
     this.CalendarId   = calendarId;
     this.Name         = name;
     this.UnsharedWith = unsharedWith;
 }
Exemple #2
0
 public CalendarShared(Tenant tenant, CalendarId calendarId, string name, CalendarSharer sharedWith)
 {
     Tenant     = tenant;
     CalendarId = calendarId;
     Name       = name;
     SharedWith = sharedWith;
 }
Exemple #3
0
 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));
     }
 }
Exemple #4
0
 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));
     }
 }