AddTask() public method

Adds the given task
public AddTask ( Task task ) : void
task Task The task.
return void
        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();
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Task"/> class for the given story.
 /// </summary>
 /// <param name="story">The story.</param>
 public Task(Story story)
 {
     story.AddTask(this);
 }