/// <summary> /// Create a new retrospective with a name /// </summary> /// <param name="name">The name of the retrospective</param> /// <param name="project">The project this retrospective belongs to</param> /// <param name="attributes">Required attributes.</param> /// <returns>A newly minted Retrospective that exists in the VersionOne system.</returns> public Retrospective Retrospective(string name, Project project, IDictionary<string, object> attributes) { var retro = new Retrospective(instance) { Project = project, Name = name }; AddAttributes(retro, attributes); retro.Save(); return retro; }
/// <summary> /// Creates an Issue related to a Retrospective /// </summary> /// <param name="name">The name of the Issue</param> /// <param name="retrospective">The Retrospective to relate the Issue to</param> /// <param name="attributes">Required attributes.</param> /// <returns>The newly saved Issue</returns> public Issue Issue(string name, Retrospective retrospective, IDictionary<string, object> attributes) { var issue = new Issue(instance) { Name = name, Project = retrospective.Project }; AddAttributes(issue, attributes); issue.Save(); //TODO verify sequence issue.Retrospectives.Add(retrospective); return issue; }
/// <summary> /// Create a new story with a name. Set the story's IdentifiedIn to the given retrospective and the project to the retrospective's project. /// </summary> /// <param name="name">The initial name of the story.</param> /// <param name="retrospective">The retrospective this story was identified in.</param> /// <param name="attributes">Required attributes.</param> /// <returns>A newly minted Story that exists in the VersionOne system.</returns> public Story Story(string name, Retrospective retrospective, IDictionary<string, object> attributes) { var story = new Story(instance) { Name = name, IdentifiedIn = retrospective, Project = retrospective.Project }; AddAttributes(story, attributes); story.Save(); return story; }
/// <summary> /// Creates an Issue related to a Retrospective /// </summary> /// <param name="name">The name of the Issue</param> /// <param name="retrospective">The Retrospective to relate the Issue to</param> /// <returns>The newly saved Issue</returns> public Issue Issue(string name, Retrospective retrospective) { return Issue(name, retrospective, null); }
/// <summary> /// Create a new story with a name. Set the story's IdentifiedIn to the given retrospective and the project to the retrospective's project. /// </summary> /// <param name="name">The initial name of the story.</param> /// <param name="retrospective">The retrospective this story was identified in.</param> /// <returns>A newly minted Story that exists in the VersionOne system.</returns> public Story Story(string name, Retrospective retrospective) { return Story(name, retrospective, null); }