Exemple #1
0
        public WorkItemParent(string id, WorkItemParentType type)
        {
            if (id == null)
            {
                throw new ArgumentNullException("id");
            }

            Id   = id;
            Type = type;
        }
Exemple #2
0
 public WorkItemParent AsParent(WorkItemParentType parentType)
 {
     return(new WorkItemParent(Id, parentType));
 }
Exemple #3
0
        public WorkItem UpdateParent(string parentId, WorkItemParentType parentType)
        {
            var parent = new WorkItemParent(parentId, parentType);

            return(new WorkItem(Id, Path, Classes, Status, parent, _ordinal, _properties, Timestamp, LastMoved));
        }
Exemple #4
0
        public WorkItem CreateChildItem(string id, WorkItemParentType parentType)
        {
            var parent = new WorkItemParent(Id, parentType);

            return(new WorkItem(id, Path, Classes, Status, parent, _ordinal, _properties, Timestamp, LastMoved));
        }
        public WorkItemParent(string id, WorkItemParentType type)
        {
            if(id==null)
            {
                throw new ArgumentNullException("id");
            }

            Id = id;
            Type = type;
        }
 public WorkItem UpdateParent(string parentId, WorkItemParentType parentType)
 {
     var parent = new WorkItemParent(parentId, parentType);
     return new WorkItem(Id, Path, Classes, Status, parent, _ordinal, _properties, Timestamp, LastMoved);
 }
 public WorkItem CreateChildItem(string id, WorkItemParentType parentType)
 {
     var parent = new WorkItemParent(Id, parentType);
     return new WorkItem(id, Path, Classes, Status, parent, _ordinal, _properties, Timestamp, LastMoved);
 }
 public WorkItemParent AsParent(WorkItemParentType parentType)
 {
     return new WorkItemParent(Id,parentType);
 }