JelloScrum.Model.Entities.Story.AddSprintStory C# (CSharp) Method

AddSprintStory() protected method

Adds the given sprintstory
protected AddSprintStory ( SprintStory sprintStory ) : void
sprintStory SprintStory The sprintstory.
return void
        protected internal virtual void AddSprintStory(SprintStory sprintStory)
        {
            if (!sprintStories.Contains(sprintStory))
                sprintStories.Add(sprintStory);
            sprintStory.Story = this;
        }

Usage Example

コード例 #1
0
ファイル: SprintStory.cs プロジェクト: auxilium/JelloScrum
        /// <summary>
        /// Initializes a new instance of the <see cref="SprintStory"/> class.
        /// </summary>
        /// <param name="sprint">The sprint.</param>
        /// <param name="story">The story.</param>
        /// <param name="schatting">The schatting.</param>
        public SprintStory(Sprint sprint, Story story, TimeSpan schatting)
        {
            if (sprint == null)
                throw new ArgumentNullException("sprint", "De sprint mag niet null zijn.");
            if (story == null)
                throw new ArgumentNullException("story", "De story mag niet null zijn.");

            sprint.AddSprintStory(this);
            story.AddSprintStory(this);

            this.estimation = schatting;
        }