Пример #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>());
 }
Пример #2
0
 public IEnumerable<IWorkItemCheckinInfo> GetWorkItemInfos(IEnumerable<string> workItems, TfsWorkItemCheckinAction checkinAction)
 {
     throw new NotImplementedException();
 }
Пример #3
0
 public IEnumerable<IWorkItemCheckinInfo> GetWorkItemInfos(IEnumerable<string> workItems, TfsWorkItemCheckinAction checkinAction)
 {
     return workItems.Select(workItem => _bridge.Wrap(GetWorkItemInfo(workItem, _bridge.Convert(checkinAction))));
 }
Пример #4
0
 public IEnumerable <IWorkItemCheckedInfo> GetWorkItemCheckedInfos(IEnumerable <string> workItems, TfsWorkItemCheckinAction checkinAction)
 {
     throw new NotImplementedException();
 }
Пример #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>();
 }
Пример #6
0
 public IEnumerable <IWorkItemCheckedInfo> GetWorkItemCheckedInfos(IEnumerable <string> workItems, TfsWorkItemCheckinAction checkinAction)
 {
     return
         (GetWorkItemInfosHelper <IWorkItemCheckedInfo, WrapperForWorkItemCheckedInfo, WorkItemCheckedInfo>(
              workItems, checkinAction, GetWorkItemCheckedInfo));
 }
Пример #7
0
 public WorkItemCheckinAction Convert(TfsWorkItemCheckinAction action)
 {
     return (WorkItemCheckinAction) (int) action;
 }