Esempio n. 1
0
 private IEnumerable <TInterface> GetWorkItemInfosHelper <TInterface, TWrapper, TInstance>(
     IEnumerable <string> workItems,
     TfsWorkItemCheckinAction checkinAction,
     Func <string, WorkItemCheckinAction, TInstance> func
     )
     where TWrapper : class
 {
     return((from workItem in workItems
             select _bridge.Wrap <TWrapper, TInstance>(
                 func(workItem, _bridge.Convert <WorkItemCheckinAction>(checkinAction))))
            .Cast <TInterface>());
 }
Esempio n. 2
0
 public IEnumerable<IWorkItemCheckinInfo> GetWorkItemInfos(IEnumerable<string> workItems, TfsWorkItemCheckinAction checkinAction)
 {
     throw new NotImplementedException();
 }
Esempio n. 3
0
 public IEnumerable<IWorkItemCheckinInfo> GetWorkItemInfos(IEnumerable<string> workItems, TfsWorkItemCheckinAction checkinAction)
 {
     return workItems.Select(workItem => _bridge.Wrap(GetWorkItemInfo(workItem, _bridge.Convert(checkinAction))));
 }
Esempio n. 4
0
 public IEnumerable <IWorkItemCheckedInfo> GetWorkItemCheckedInfos(IEnumerable <string> workItems, TfsWorkItemCheckinAction checkinAction)
 {
     throw new NotImplementedException();
 }
Esempio n. 5
0
 public IEnumerable<IWorkItemCheckinInfo> GetWorkItemInfos(IEnumerable<string> workItems, TfsWorkItemCheckinAction checkinAction)
 {
     return workItems.Select(workItem => _bridge.Wrap<WrapperForWorkItemCheckinInfo, WorkItemCheckinInfo>(GetWorkItemInfo(workItem, _bridge.Convert<WorkItemCheckinAction>(checkinAction)))).Cast<IWorkItemCheckinInfo>();
 }
 public IEnumerable <IWorkItemCheckedInfo> GetWorkItemCheckedInfos(IEnumerable <string> workItems, TfsWorkItemCheckinAction checkinAction)
 {
     return
         (GetWorkItemInfosHelper <IWorkItemCheckedInfo, WrapperForWorkItemCheckedInfo, WorkItemCheckedInfo>(
              workItems, checkinAction, GetWorkItemCheckedInfo));
 }
Esempio n. 7
0
 public WorkItemCheckinAction Convert(TfsWorkItemCheckinAction action)
 {
     return (WorkItemCheckinAction) (int) action;
 }