Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
        internal void AddCollaborator(Collaborator collaborator)
        {
            if (collaborator == null)
            {
                throw new ArgumentNullException("collaborator");
            }

            _item.AddCollaborator(collaborator);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        /// <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);
        }
Esempio n. 5
0
        internal void AddCollaborator(Collaborator collaborator)
        {
            if (collaborator == null) throw new ArgumentNullException("collaborator");

            _item.AddCollaborator(collaborator);
        }
Esempio n. 6
0
        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);
        }