private static Story CreateNewStory(string name, StoryTypeEnum type, string description) { var task = CreateNewStoryAsync(name, type, description); task.Wait(); return(task.Result); }
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); }
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; }
/// <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(); }