private static string UpdateUserStory(UserStory firstStory, WebClient client) { var ns = new XmlSerializerNamespaces(); ns.Add("", ""); var storySerializer = new XmlSerializer(typeof (UserStory)); var output = new StringWriter(); storySerializer.Serialize(output, firstStory, ns); var serialized = output.ToString(); var result = client.UploadString(PathToTp + string.Format("api/v1/UserStories/{0}?include=[Id,Name,Project[Id,Name]]", firstStory.Id), "POST", serialized); return result; }
private static string UpdateUserStory(UserStory firstStory, WebClient client) { var ns = new XmlSerializerNamespaces(); ns.Add("", ""); var storySerializer = new XmlSerializer(typeof(UserStory)); var output = new StringWriter(); storySerializer.Serialize(output, firstStory, ns); var serialized = output.ToString(); var result = client.UploadString(PathToTp + string.Format("api/v1/UserStories/{0}?include=[Id,Name,Project[Id,Name]]", firstStory.Id), "POST", serialized); return(result); }
public UserStoryCollection() { UserStories = new UserStory[0]; }