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