コード例 #1
0
        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;
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public UserStoryCollection()
 {
     UserStories = new UserStory[0];
 }
コード例 #4
0
 public UserStoryCollection()
 {
     UserStories = new UserStory[0];
 }