Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SprintUser"/> class for the given user, sprint and role.
        /// </summary>
        /// <param name="user">The user.</param>
        /// <param name="sprint">The sprint.</param>
        /// <param name="role">The role.</param>
        public SprintUser(User user, Sprint sprint, SprintRole role)
        {
            if (user == null)
                throw new ArgumentNullException("user", "The user can not be null.");
            if (sprint == null)
                throw new ArgumentNullException("sprint", "The sprint can not be null.");

            user.AddSprintUser(this);
            sprint.AddSprintUser(this);
            this.sprintRole = role;
        }