/// <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 Issue with a name. /// </summary> /// <param name="name">The initial name of the entity.</param> /// <param name="project">The Project this Issue will be in.</param> /// <param name="attributes">Required attributes.</param> /// <returns>A newly minted Issue that exists in the VersionOne system.</returns> public Issue Issue(string name, Project project, IDictionary<string, object> attributes) { var issue = new Issue(instance) { Name = name, Project = project }; AddAttributes(issue, attributes); issue.Save(); return issue; }