/// <summary>記事に共同編集者を追加します</summary> /// <param name="collaborator"></param> internal void AddCollaborator(Collaborator collaborator) { if (collaborator == null) throw new ArgumentNullException("collaborator"); if (_collaborators.Contains(collaborator)) throw new InvalidOperationException("target user is already included in collaborators."); _collaborators.Add(collaborator); }
internal void AddCollaborator(Collaborator collaborator) { if (collaborator == null) { throw new ArgumentNullException("collaborator"); } _item.AddCollaborator(collaborator); }
internal void RemoveCollaborator(Collaborator collaborator) { if (collaborator == null) { throw new ArgumentNullException("collaborator"); } if (!_collaborators.Contains(collaborator)) { throw new InvalidOperationException("target user is not included in collaborators."); } _collaborators.Remove(collaborator); }
/// <summary>記事に共同編集者を追加します</summary> /// <param name="collaborator"></param> internal void AddCollaborator(Collaborator collaborator) { if (collaborator == null) { throw new ArgumentNullException("collaborator"); } if (_collaborators.Contains(collaborator)) { throw new InvalidOperationException("target user is already included in collaborators."); } _collaborators.Add(collaborator); }
internal void AddCollaborator(Collaborator collaborator) { if (collaborator == null) throw new ArgumentNullException("collaborator"); _item.AddCollaborator(collaborator); }
internal void RemoveCollaborator(Collaborator collaborator) { if (collaborator == null) throw new ArgumentNullException("collaborator"); if (!_collaborators.Contains(collaborator)) throw new InvalidOperationException("target user is not included in collaborators."); _collaborators.Remove(collaborator); }