示例#1
0
        private static Story CreateNewStory(string name, StoryTypeEnum type, string description)
        {
            var task = CreateNewStoryAsync(name, type, description);

            task.Wait();
            return(task.Result);
        }
示例#2
0
 private static async Task <Story> CreateNewStoryAsync(string name, StoryTypeEnum type, string description)
 {
     return((await
                 (await Pivotal.Projects().GetAsync(Project.Id))
             .Stories()
             .Create()
             .SetName(name)
             .SetType(type)
             .SetDescription(description)
             .SaveAsync()).Item);
 }
示例#3
0
 private static Story CreateNewStory(string name, StoryTypeEnum type, string description)
 {
     return(Pivotal
            .Projects()
            .Get(Project.Id)
            .Stories()
            .Create()
            .SetName(name)
            .SetType(type)
            .SetDescription(description)
            .Save().Item);
 }
 private static Story CreateNewStory(string name, StoryTypeEnum type, string description)
 {
     return Pivotal
         .Projects()
             .Get(Project.Id)
                 .Stories()
                     .Create()
                         .SetName(name)
                         .SetType(type)
                         .SetDescription(description)
                     .Save().Item;
 }
示例#5
0
        /// <summary>
        /// Set the story type
        /// </summary>
        /// <param name="type">story type</param>
        /// <returns>This</returns>
        public StoryCreationFacade SetType(StoryTypeEnum type)
        {
            Item.story_type = type.ToString().ToLowerInvariant();

            return(this);
        }
 public void CreateTask(string name, StoryTypeEnum type, string labels, int points, string description)
 {
     var stories = _pivotal.Projects().Get(_projectId).Stories();
     stories.Create().SetName(name)
         .SetType(type)
         .SetLabel(labels)
         .SetEstimate(points)
         .SetDescription(description).Save();
 }