JelloScrum.Model.Entities.Story.AddTask C# (CSharp) 메소드

AddTask() 공개 메소드

Adds the given task
public AddTask ( Task task ) : void
task Task The task.
리턴 void
        public virtual void AddTask(Task task)
        {
            if (!tasks.Contains(task))
                tasks.Add(task);
            task.Story = this;
        }

Usage Example

        public override void SetUp()
        {
            project = new Project();

            task = new Task();
            gebruiker = new User();
            sprint = new Sprint();
            project.AddSprint(sprint);
            tijd = new TimeSpan(1, 30, 00); //1,5 uur

            story = new Story(project, gebruiker, null, StoryType.UserStory);
            story.AddTask(task);

            base.SetUp();
        }
All Usage Examples Of JelloScrum.Model.Entities.Story::AddTask