public void Create(BookingRequestId id, UserId userId, ResourceId resourceId, BookingInterval interval) { RaiseEvent(new BookingRequestCreated(id, userId, resourceId, interval)); }
public bool Overlaps(BookingInterval other) { return(this.From <= other.To && this.To >= other.From); }