示例#1
0
 public void ChangePriorityOfExistingStory()
 {
     ScrumTimeEntities scrumTimeEntities = new ScrumTimeEntities();
     StoryService storyService = new StoryService(scrumTimeEntities);
     Story story = storyService.GetStoryById(2);
     story.Priority = 0;
     storyService.SaveStory(story);
 }
示例#2
0
 public void AddNewStory()
 {
     ScrumTimeEntities scrumTimeEntities = new ScrumTimeEntities();
     StoryService storyService = new StoryService(scrumTimeEntities);
     Story story = new Story()
     {
         Narrative = "Test story",
         Points = 8,
         Priority = 2,
         ProductId = 1,
         UserDefinedId = "not set"
     };
     storyService.SaveStory(story);
 }
示例#3
0
        public void DeleteStory()
        {
            ScrumTimeEntities scrumTimeEntities = new ScrumTimeEntities();
            StoryService storyService = new StoryService(scrumTimeEntities);
            Story story = new Story()
            {
                Narrative = "Test story for deletion test.",
                Points = 8,
                Priority = 2,
                ProductId = 1,
                UserDefinedId = "not set"
            };
            storyService.SaveStory(story);

            storyService.DeleteStory(story.StoryId);
        }