public void DisplayPrioritizedListOfStories()
        {
            var story1 = new Story();
             var story2 = new Story();

             var backlog = new StoryBacklog();
             backlog.Add(story1);
             backlog.Add(story2);

             backlog.Prioritize(story2).Above(story1);

             Assert.That(backlog.Stories, Is.EqualTo(new[] {story2, story1}));
        }
 public void Above(Story lowerPriorityStory)
 {
     prioritizedStories.Remove(story);
     var index = prioritizedStories.IndexOf(lowerPriorityStory);
     prioritizedStories.Insert(index, story);
 }
 public Prioritization(Story story, IList<Story> prioritizedStories)
 {
     this.story = story;
     this.prioritizedStories = prioritizedStories;
 }
Beispiel #4
0
 public Prioritization Prioritize(Story story)
 {
     return new Prioritization(story, prioritizedStories);
 }
Beispiel #5
0
 public void Add(Story story)
 {
     prioritizedStories.Add(story);
 }